2019-01-02 23:26:50 +00:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es6": true,
|
2019-01-04 23:38:49 +00:00
|
|
|
"node": true,
|
|
|
|
"jest/globals": true
|
2019-01-02 23:26:50 +00:00
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"eslint:recommended",
|
2019-01-04 23:38:49 +00:00
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:jest/recommended"
|
2019-01-02 23:26:50 +00:00
|
|
|
],
|
2019-01-04 02:33:13 +00:00
|
|
|
"parser": "babel-eslint",
|
2019-01-02 23:26:50 +00:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"ecmaVersion": 2018,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": [
|
2019-01-04 23:38:49 +00:00
|
|
|
"react",
|
|
|
|
"jest"
|
2019-01-02 23:26:50 +00:00
|
|
|
],
|
|
|
|
"rules": {
|
2019-01-05 17:27:13 +00:00
|
|
|
"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"
|
|
|
|
}
|
|
|
|
],
|
2019-01-02 23:26:50 +00:00
|
|
|
"indent": [
|
|
|
|
"error",
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"linebreak-style": [
|
|
|
|
"error",
|
|
|
|
"unix"
|
|
|
|
],
|
2019-01-05 17:27:13 +00:00
|
|
|
"max-len": [
|
|
|
|
"warn",
|
|
|
|
{
|
|
|
|
"code": 80
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-var": "error",
|
2019-01-02 23:26:50 +00:00
|
|
|
"quotes": [
|
|
|
|
"error",
|
|
|
|
"single"
|
|
|
|
],
|
|
|
|
"semi": [
|
|
|
|
"error",
|
|
|
|
"always"
|
2019-01-05 17:27:13 +00:00
|
|
|
],
|
|
|
|
"space-before-function-paren": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"named": "never",
|
|
|
|
"anonymous": "never",
|
|
|
|
"asyncArrow": "always"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"template-curly-spacing": [
|
|
|
|
"error",
|
|
|
|
"always"
|
2019-01-02 23:26:50 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"react": {
|
|
|
|
"version": "16.7"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|