forked from katepysova/PowerLeaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (43 loc) · 906 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.exports = {
root: true,
extends: [
"react-app",
"eslint:recommended",
"plugin:import/errors",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:import/recommended",
"plugin:prettier/recommended"
],
plugins: ["react", "import", "prettier", "module-resolver"],
parser: "@babel/eslint-parser",
parserOptions: {
sourceType: "module",
ecmaVersion: 8,
requireConfigFile: false,
ecmaFeatures: {
jsx: true
}
},
ignorePatterns: ["node_modules/"],
rules: {
"react/jsx-filename-extension": [
1,
{
extensions: [".js", ".jsx"]
}
],
"react/react-in-jsx-scope": 0,
"react/jsx-uses-vars": "error",
"no-console": "off",
"module-resolver/use-alias": 2
},
settings: {
react: {
version: "detect"
},
"import/resolver": {
"babel-module": {}
}
}
};