forked from juliogarciag/rails-atom-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
50 lines (50 loc) · 1.1 KB
/
.eslintrc.js
File metadata and controls
50 lines (50 loc) · 1.1 KB
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
44
45
46
47
48
49
50
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
jest: true
},
globals: {
atom: true
},
settings: {
"import/resolver": {
node: {
paths: ["lib"],
extensions: [".js", ".jsx", ".json"]
}
},
"import/core-modules": ["atom"]
},
parser: "babel-eslint",
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true
}
},
plugins: ["import", "react"],
rules: {
"no-dupe-keys": 2,
"no-undef": 2,
"no-unreachable": 2,
"no-unused-vars": [2, { argsIgnorePattern: "^_" }],
"no-useless-constructor": 2,
"no-var": 2,
"no-duplicate-imports": 2,
"no-duplicate-case": 2,
"import/no-unresolved": 2,
"import/default": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-vars": 1,
"react/jsx-uses-react": "error",
"react/react-in-jsx-scope": 2,
"react/no-string-refs": 2,
"react/prop-types": [2, { skipUndeclared: true }],
"react/forbid-prop-types": 2,
"react/prefer-stateless-function": 2,
"no-console": "error",
"no-debugger": "error"
}
};