60 lines
946 B
Plaintext
60 lines
946 B
Plaintext
{
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true
|
|
},
|
|
"globals": {
|
|
"require": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:jsx-control-statements/recommended"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"experimentalObjectRestSpread": true,
|
|
"jsx": true
|
|
},
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"react",
|
|
"jsx-control-statements"
|
|
],
|
|
"rules": {
|
|
"react/jsx-no-undef": [2, { "allowGlobals": true }],
|
|
"indent": [
|
|
"error",
|
|
2,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"linebreak-style": [
|
|
"error",
|
|
"unix"
|
|
],
|
|
"no-unused-vars" : [
|
|
"warn",
|
|
{
|
|
"argsIgnorePattern": "_*"
|
|
}
|
|
],
|
|
"no-warning-comments" : [
|
|
"warn",
|
|
{
|
|
"terms": [
|
|
"todo",
|
|
"fixme",
|
|
"hack"
|
|
]
|
|
}
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
]
|
|
}
|
|
}
|