mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[kbn-plugin-generator] add eslint-plugin-jsx-a11y to plugin devDeps (#25606)
* [kbn-plugin-generator] add eslint-plugin-jsx-a11y to plugin devDeps, specify react version in config * [eslint/react] use semver package to coerce version range * fix semicolons
This commit is contained in:
parent
b5334ec077
commit
707a0359c8
2 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
|||
const RESTRICTED_GLOBALS = require('./restricted_globals')
|
||||
const semver = require('semver');
|
||||
|
||||
const PKG = require('../../package.json');
|
||||
const RESTRICTED_GLOBALS = require('./restricted_globals');
|
||||
|
||||
module.exports = {
|
||||
parser: 'babel-eslint',
|
||||
|
@ -12,7 +15,13 @@ module.exports = {
|
|||
'prefer-object-spread',
|
||||
'jsx-a11y',
|
||||
],
|
||||
|
||||
|
||||
settings: {
|
||||
react: {
|
||||
version: semver.coerce(PKG.dependencies.react),
|
||||
},
|
||||
},
|
||||
|
||||
env: {
|
||||
es6: true,
|
||||
node: true,
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
"eslint-plugin-babel": "^5.2.0",
|
||||
"eslint-plugin-import": "^2.14.0",
|
||||
"eslint-plugin-jest": "^21.22.1",
|
||||
"eslint-plugin-jsx-a11y": "^6.1.2",
|
||||
"eslint-plugin-mocha": "^5.2.0",
|
||||
"eslint-plugin-no-unsanitized": "^3.0.2",
|
||||
"eslint-plugin-prefer-object-spread": "^1.2.1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue