eslint config

master
Tudor Stanciu 2020-04-11 01:18:45 +03:00
parent 372b93c780
commit 2d294ddccd
2 changed files with 35 additions and 1 deletions

View File

@ -57,5 +57,39 @@
"presets": [
"babel-preset-react-app"
]
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"rules": {
"no-debugger": "off",
"no-console": "off",
"no-unused-vars": "warn",
"react/prop-types": "warn"
},
"settings": {
"react": {
"version": "detect"
}
},
"root": true
}
}

View File

@ -33,7 +33,7 @@ module.exports = {
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: ["babel-loader"]
use: ["babel-loader", "eslint-loader"]
},
{
test: /(\.css)$/,