89 lines
1.4 KiB
JSON
89 lines
1.4 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true,
|
|
"node": true,
|
|
"jest/globals": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:jest/recommended"
|
|
],
|
|
"parser": "babel-eslint",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"ecmaVersion": 2018,
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"react",
|
|
"jest"
|
|
],
|
|
"rules": {
|
|
"arrow-parens": [
|
|
"error",
|
|
"as-needed"
|
|
],
|
|
"arrow-spacing": [
|
|
"error",
|
|
{
|
|
"before": true,
|
|
"after": true
|
|
}
|
|
],
|
|
"comma-dangle": [
|
|
"error",
|
|
{
|
|
"objects": "never",
|
|
"arrays": "never",
|
|
"imports": "never",
|
|
"exports": "never",
|
|
"functions": "never"
|
|
}
|
|
],
|
|
"indent": [
|
|
"error",
|
|
2
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"max-len": [
|
|
"warn",
|
|
{
|
|
"code": 80
|
|
}
|
|
],
|
|
"no-var": "error",
|
|
"quotes": [
|
|
"error",
|
|
"single"
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"space-before-function-paren": [
|
|
"error",
|
|
{
|
|
"named": "never",
|
|
"anonymous": "never",
|
|
"asyncArrow": "always"
|
|
}
|
|
],
|
|
"template-curly-spacing": [
|
|
"error",
|
|
"always"
|
|
]
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "16.7"
|
|
}
|
|
}
|
|
}
|