mirror of
https://github.com/zhigang1992/react-jsonschema-form.git
synced 2026-04-29 12:45:34 +08:00
* Bump eslint and related packages These aren't the most up-to-date versions of these dependencies as of this writing (babel-eslint released v8.0.1 and jsx-a11y has a 6.0 release), but these are the peer dependencies required by eslint-config-react-app. The new version of eslint appears to have slightly different configuration than the old version. * Fix new eslint-flagged errors * Fix formatting * Update to react-codemirror2 This appears to be better-maintained. See also Kinto/kinto-admin#448.
39 lines
923 B
Plaintext
39 lines
923 B
Plaintext
{
|
|
"parser": "babel-eslint",
|
|
"rules": {
|
|
"react/jsx-uses-react": 2,
|
|
"react/jsx-uses-vars": 2,
|
|
"react/react-in-jsx-scope": 2,
|
|
"react/jsx-tag-spacing": [1, {
|
|
"beforeSelfClosing": "always"
|
|
}],
|
|
"curly": [2],
|
|
"linebreak-style": [2, "unix"],
|
|
"semi": [2, "always"],
|
|
"comma-dangle": [0],
|
|
"no-unused-vars": [2, {
|
|
"vars": "all",
|
|
"args": "none",
|
|
"ignoreRestSiblings": true
|
|
}],
|
|
"no-console": [0],
|
|
"object-curly-spacing": [2, "always"],
|
|
"keyword-spacing": ["error"]
|
|
},
|
|
"env": {
|
|
"es6": true,
|
|
"browser": true,
|
|
"node": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"ecmaFeatures": {
|
|
"modules": true,
|
|
"jsx": true,
|
|
"experimentalObjectRestSpread": true
|
|
},
|
|
"plugins": [
|
|
"jsx-a11y",
|
|
"react"
|
|
]
|
|
}
|