73 lines
1.3 KiB
JavaScript
73 lines
1.3 KiB
JavaScript
module.exports = {
|
|
parser: "babel-eslint",
|
|
env: {
|
|
browser: true,
|
|
es6: true,
|
|
jest: true,
|
|
},
|
|
extends: 'airbnb',
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: [
|
|
'react',
|
|
'react-hooks',
|
|
],
|
|
rules: {
|
|
"react/jsx-filename-extension": [
|
|
1,
|
|
{
|
|
"extensions": [
|
|
".js",
|
|
".jsx"
|
|
]
|
|
}
|
|
],
|
|
"no-console": 0,
|
|
"camelcase": 0,
|
|
"arrow-body-style": 0,
|
|
"jsx-a11y/anchor-is-valid": [
|
|
"error",
|
|
{
|
|
"aspects": [
|
|
"invalidHref",
|
|
"preferButton"
|
|
]
|
|
}
|
|
],
|
|
"jsx-a11y/click-events-have-key-events": 0,
|
|
"jsx-a11y/label-has-for": [
|
|
2,
|
|
{
|
|
"components": [
|
|
"Label"
|
|
],
|
|
"required": {
|
|
"every": [
|
|
"id"
|
|
]
|
|
},
|
|
"allowChildren": false
|
|
}
|
|
],
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
"react/no-array-index-key": 0,
|
|
"max-len": 0,
|
|
"react/no-danger": 0,
|
|
"import/prefer-default-export": 0,
|
|
"no-throw-literal": 0,
|
|
"react/jsx-max-props-per-line": [
|
|
1,
|
|
{
|
|
"maximum": 1
|
|
}
|
|
],
|
|
"linebreak-style": ["off"]
|
|
},
|
|
};
|