1
- ---
2
- extends: ./node_modules/dash-components-archetype/config/eslint/eslintrc-react.json
1
+ {
2
+ "extends": ["eslint:recommended", "prettier"],
3
+ "parser": "babel-eslint",
4
+ "parserOptions": {
5
+ "ecmaVersion": 6,
6
+ "sourceType": "module",
7
+ "ecmaFeatures": {
8
+ "arrowFunctions": true,
9
+ "blockBindings": true,
10
+ "classes": true,
11
+ "defaultParams": true,
12
+ "destructuring": true,
13
+ "forOf": true,
14
+ "generators": true,
15
+ "modules": true,
16
+ "templateStrings": true,
17
+ "jsx": true
18
+ }
19
+ },
20
+ "env": {
21
+ "browser": true,
22
+ "es6": true,
23
+ "jasmine": true,
24
+ "jest": true,
25
+ "node": true
26
+ },
27
+ "globals": {
28
+ "jest": true
29
+ },
30
+ "plugins": [
31
+ "react",
32
+ "import"
33
+ ],
34
+ "rules": {
35
+ "accessor-pairs": ["error"],
36
+ "block-scoped-var": ["error"],
37
+ "consistent-return": ["error"],
38
+ "curly": ["error", "all"],
39
+ "default-case": ["error"],
40
+ "dot-location": ["off"],
41
+ "dot-notation": ["error"],
42
+ "eqeqeq": ["error"],
43
+ "guard-for-in": ["off"],
44
+ "import/export": "error",
45
+ "import/named": ["off"],
46
+ "import/namespace": ["off"],
47
+ "import/no-duplicates": ["error"],
48
+ "import/no-named-as-default": ["error"],
49
+ "import/no-unresolved": ["off"],
50
+ "new-cap": ["error", {
51
+ "capIsNewExceptionPattern": "Immutable\\.*"
52
+ }],
53
+ "no-alert": [1],
54
+ "no-caller": ["error"],
55
+ "no-case-declarations": ["error"],
56
+ "no-console": ["error"],
57
+ "no-div-regex": ["error"],
58
+ "no-dupe-keys": ["error"],
59
+ "no-else-return": ["error"],
60
+ "no-empty-pattern": ["error"],
61
+ "no-eq-null": ["error"],
62
+ "no-eval": ["error"],
63
+ "no-extend-native": ["error"],
64
+ "no-extra-bind": ["error"],
65
+ "no-extra-boolean-cast": ["error"],
66
+ "no-inline-comments": ["error"],
67
+ "no-implicit-coercion": ["error"],
68
+ "no-implied-eval": ["error"],
69
+ "no-inner-declarations": ["off"],
70
+ "no-invalid-this": ["error"],
71
+ "no-iterator": ["error"],
72
+ "no-labels": ["error"],
73
+ "no-lone-blocks": ["error"],
74
+ "no-loop-func": ["error"],
75
+ "no-multi-str": ["error"],
76
+ "no-native-reassign": ["error"],
77
+ "no-new": ["error"],
78
+ "no-new-func": ["error"],
79
+ "no-new-wrappers": ["error"],
80
+ "no-param-reassign": ["error"],
81
+ "no-process-env": ["warn"],
82
+ "no-proto": ["error"],
83
+ "no-redeclare": ["error"],
84
+ "no-return-assign": ["error"],
85
+ "no-script-url": ["error"],
86
+ "no-self-compare": ["error"],
87
+ "no-sequences": ["error"],
88
+ "no-shadow": ["off"],
89
+ "no-throw-literal": ["error"],
90
+ "no-undefined": ["error"],
91
+ "no-unused-expressions": ["error"],
92
+ "no-use-before-define": ["error", "nofunc"],
93
+ "no-useless-call": ["error"],
94
+ "no-useless-concat": ["error"],
95
+ "no-with": ["error"],
96
+ "prefer-const": ["error"],
97
+ "radix": ["error"],
98
+ "react/jsx-no-duplicate-props": ["error"],
99
+ "react/jsx-no-undef": ["error"],
100
+ "react/jsx-uses-react": ["error"],
101
+ "react/jsx-uses-vars": ["error"],
102
+ "react/no-did-update-set-state": ["error"],
103
+ "react/no-direct-mutation-state": ["error"],
104
+ "react/no-is-mounted": ["error"],
105
+ "react/no-unknown-property": ["error"],
106
+ "react/prefer-es6-class": ["error", "always"],
107
+ "react/prop-types": "error",
108
+ "valid-jsdoc": ["error"],
109
+ "yoda": ["error"],
110
+ "spaced-comment": ["error", "always", {
111
+ "block": {
112
+ "exceptions": ["*"]
113
+ }
114
+ }],
115
+ "no-unused-vars": ["error", {
116
+ "args": "after-used",
117
+ "argsIgnorePattern": "^_",
118
+ "caughtErrorsIgnorePattern": "^e$"
119
+ }],
120
+ "no-magic-numbers": ["error", {
121
+ "ignoreArrayIndexes": true,
122
+ "ignore": [-1, 0, 1, 2, 3, 4, 5, 100, 10, 16, 0.5, 25]
123
+ }],
124
+ "no-underscore-dangle": ["off"],
125
+ "no-useless-escape": ["off"]
126
+ }
127
+ }
0 commit comments