You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"extends": [
|
|
"airbnb"
|
|
],
|
|
"parser":"@babel/eslint-parser",
|
|
"parserOptions": {
|
|
"babelOptions":{
|
|
"rootMode": "upward"
|
|
},
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
}
|
|
},
|
|
"plugins": [
|
|
"react",
|
|
"react-hooks",
|
|
"jsx-a11y",
|
|
"import"
|
|
],
|
|
"globals": {
|
|
"__DEV__": false
|
|
},
|
|
"env": {
|
|
"browser": true
|
|
},
|
|
"rules": {
|
|
"function-paren-newline": "off",
|
|
"function-call-argument-newline":"off",
|
|
"max-len": [1, 80, 2, {"ignoreComments": true}],
|
|
"no-bitwise": 0,
|
|
"no-restricted-syntax": 0,
|
|
"no-plusplus" : "off",
|
|
"no-param-reassign": "off",
|
|
"no-mixed-operators":"off",
|
|
"react/prop-types": "off",
|
|
"react/jsx-one-expression-per-line": "off",
|
|
"react/jsx-closing-tag-location": "off",
|
|
"react/jsx-key": "warn",
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"jsx-a11y/click-events-have-key-events":"off",
|
|
"jsx-a11y/no-static-element-interactions":"off",
|
|
"no-continue": "off",
|
|
"no-multiple-empty-lines": "off",
|
|
"react/function-component-definition": "off",
|
|
"lines-between-class-members":["warn", "always",{"exceptAfterSingleLine": true}]
|
|
}
|
|
}
|