1 | {
|
2 | "extends": "eslint:recommended",
|
3 | "plugins": [
|
4 | "react"
|
5 | ],
|
6 | "env": {
|
7 | "browser": true,
|
8 | "node": true,
|
9 | "commonjs": true,
|
10 | "amd": true,
|
11 | "es6": true,
|
12 | "mocha": true,
|
13 | "jquery": true,
|
14 | "jest": true
|
15 | },
|
16 | "parser": "babel-eslint",
|
17 | "parserOptions": {
|
18 | "ecmaVersion": 2018,
|
19 | "sourceType": "module",
|
20 | "ecmaFeatures": {
|
21 | "impliedStrict": true,
|
22 | "jsx": true,
|
23 | "experimentalObjectRestSpread": true
|
24 | }
|
25 | },
|
26 | "globals": {
|
27 | "__": false,
|
28 | "__DEV__": false,
|
29 | "__CLIENT__": false,
|
30 | "__SERVER__": false,
|
31 | "__SPA__": false,
|
32 | "__REDUX_STATE__": true,
|
33 | "__SERVER_PORT__": false,
|
34 | "__KOOT_INJECT_ATTRIBUTE_NAME__": false,
|
35 | "__KOOT_INJECT_METAS_START__": false,
|
36 | "__KOOT_INJECT_METAS_END__": false,
|
37 | "__KOOT_PROJECT_CONFIG_PATHNAME__": false
|
38 | },
|
39 | "settings": {
|
40 | "import/ignore": [
|
41 | "node_modules"
|
42 | ]
|
43 | },
|
44 | "rules": {
|
45 | "no-const-assign": 1,
|
46 | "no-extra-semi": 2,
|
47 | "semi": 0,
|
48 | "no-case-declarations": 2,
|
49 | "no-console": 0,
|
50 | "no-fallthrough": 0,
|
51 | "no-empty": 0,
|
52 | "no-empty-pattern": 2,
|
53 | "no-mixed-spaces-and-tabs": 0,
|
54 | "no-octal": 2,
|
55 | "no-redeclare": [
|
56 | 2,
|
57 | {
|
58 | "builtinGlobals": true
|
59 | }
|
60 | ],
|
61 | "no-self-assign": 2,
|
62 | "no-this-before-super": 1,
|
63 | "no-undef": 1,
|
64 | "no-unreachable": 1,
|
65 | "no-unused-vars": 1,
|
66 | "no-use-before-define": 0,
|
67 | "constructor-super": 1,
|
68 | "curly": 0,
|
69 | "eqeqeq": 0,
|
70 | "func-names": 0,
|
71 | "valid-typeof": 1,
|
72 | "indent": [
|
73 | "error",
|
74 | 4,
|
75 | {
|
76 | "SwitchCase": 1
|
77 | }
|
78 | ],
|
79 | "react/jsx-uses-react": "error",
|
80 | "react/jsx-uses-vars": "error"
|
81 | }
|
82 | }
|