Skip to content

Commit 24fd47c

Browse files
trevorsmithgajus
authored andcommitted
fix: the ajv-keywords "keyword select requires $data option" warning. (#116)
* Fix the ajv-keywords "keyword select requires $data option" warning. * Disable the id-match eslint rule when configuring the ajv $data property. * Upgrade ajv to ^5.0.0. * style:
1 parent d7d3f5c commit 24fd47c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"url": "http://gajus.com"
66
},
77
"dependencies": {
8-
"ajv": "^4.11.4",
8+
"ajv": "^5.0.0",
99
"ajv-keywords": "^2.1.0",
1010
"babel-plugin-syntax-jsx": "^6.18.0",
1111
"babel-types": "^6.19.0",

src/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ import requireCssModule from './requireCssModule';
1414
import resolveStringLiteral from './resolveStringLiteral';
1515
import replaceJsxExpressionContainer from './replaceJsxExpressionContainer';
1616

17-
const ajv = new Ajv();
17+
const ajv = new Ajv({
18+
// eslint-disable-next-line id-match
19+
$data: true
20+
});
1821

1922
ajvKeywords(ajv);
2023

0 commit comments

Comments
 (0)