82 lines
1.8 KiB
Plaintext
82 lines
1.8 KiB
Plaintext
{
|
|
"parser": "babel-eslint",
|
|
"parserOptions": {
|
|
"ecmaVersion": 9,
|
|
"sourceType": "module",
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
}
|
|
},
|
|
"globals": {
|
|
"Atomics": "readonly",
|
|
"SharedArrayBuffer": "readonly"
|
|
},
|
|
"rules": {
|
|
"react/jsx-uses-react": 1,
|
|
"babel/semi": 1,
|
|
"babel/camelcase": 1,
|
|
"no-useless-return": 2,
|
|
"no-self-compare": 2,
|
|
"no-implicit-globals" : 2,
|
|
"no-eval": 2,
|
|
"no-alert": 2,
|
|
"no-multiple-empty-lines" : 1,
|
|
"no-empty-function": 2,
|
|
"guard-for-in": 2,
|
|
"babel/no-unused-expressions": 2,
|
|
"jsx-quotes" : ["warn", "prefer-double"],
|
|
"comma-spacing" : 1,
|
|
"arrow-spacing": 1,
|
|
"prefer-destructuring" : 1,
|
|
"multiline-comment-style" : 0,
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
"react/display-name": 0,
|
|
"eslint-comments/no-unused-disable": 1,
|
|
"eslint-comments/disable-enable-pair": 0,
|
|
"react/no-unused-prop-types": 2,
|
|
"jsdoc/require-jsdoc": [
|
|
"error", {
|
|
"publicOnly": true,
|
|
"require": {
|
|
"ClassDeclaration": true,
|
|
"ArrowFunctionExpression": true,
|
|
"MethodDefinition": true
|
|
}
|
|
}
|
|
],
|
|
"jsdoc/require-param-description": 0,
|
|
"jsdoc/no-undefined-types": 0,
|
|
"jsdoc/check-types" : ["warn", {"noDefaults": true}]
|
|
},
|
|
"env": {
|
|
"es6": true,
|
|
"browser": true,
|
|
"jest": true,
|
|
"node": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:eslint-comments/recommended",
|
|
"plugin:jsdoc/recommended"
|
|
],
|
|
"plugins": [
|
|
"babel",
|
|
"react-hooks",
|
|
"react",
|
|
"jsdoc"
|
|
],
|
|
"settings": {
|
|
"react":{
|
|
"version": "detect"
|
|
},
|
|
"jsdoc": {
|
|
"tagNamePreference": {
|
|
"property": "prop",
|
|
"augments": "extends"
|
|
}
|
|
}
|
|
}
|
|
}
|