Archived
34 lines
863 B
Plaintext
34 lines
863 B
Plaintext
{
|
|
"extends": [
|
|
"airbnb-base",
|
|
"plugin:prettier/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings",
|
|
],
|
|
"rules": {
|
|
"no-plusplus": 0,
|
|
"no-console": 0,
|
|
"no-underscore-dangle": 0,
|
|
"no-param-reassign": 0,
|
|
"react/prefer-stateless-function": 1,
|
|
"react/prop-types": 1, // FIXME: refactor
|
|
"class-methods-use-this": 1, // FIXME: refactor
|
|
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
|
|
"react/sort-comp": 0,
|
|
"max-len": 0,
|
|
"no-use-before-define": ["error", { "functions": true, "classes": true, "variables": false }] // disable the rule for variables, but enable it for functions and classes
|
|
|
|
},
|
|
"plugins": [
|
|
"react",
|
|
"prettier"
|
|
],
|
|
"parser": "babel-eslint",
|
|
"settings": {
|
|
"react": {
|
|
"version": "16.8"
|
|
}
|
|
}
|
|
}
|