-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
101 lines (98 loc) · 2.06 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
const fs = require('fs');
module.exports = {
"parser": "babel-eslint",
"commonjs": true,
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"airbnb",
"plugin:meteor/recommended",
],
"settings": {
"import/resolver": "meteor",
"import/core-modules": fs.readFileSync('./.meteor/packages', 'utf-8')
.split('\n')
.filter(name => name.charAt(0) !=='#')
.filter(name => name.length > 0)
.map(name => name.indexOf('@') > -1 ? name.split('@')[0] : name)
.map(name => 'meteor/' + name)
.concat(['meteor/meteor']),
},
"installedESLint": true,
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
},
"sourceType": "module",
"allowImportExportEverywhere": true,
},
"plugins": [
"react",
"graphql",
"meteor",
],
"rules": {
"indent": [
"error",
2,
{ "SwitchCase": 1 },
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"jsx-a11y/no-static-element-interactions": 0,
"import/no-unresolved": [
2, { "ignore": ["^meteor/", "^/"] }
],
"import/no-extraneous-dependencies": 0,
"react/jsx-filename-extension": [
1, { "extensions": [".js", ".jsx"] }
],
"forbid-prop-types": [0, { "forbid": [] }],
"no-underscore-dangle": [
"error", { "allow": [
"_ensureIndex",
"_id",
"_schemaKeys",
"__",
"_typeMap",
] }
],
"new-cap": [
"error", {
"capIsNewExceptions": [
],
"newIsCapExceptions": [
],
}
],
"prop-types": [
0, { ignore: [
"children"
] }
],
"no-param-reassign": [
"error", { "props": false }
],
"react/prefer-stateless-function": [
1, { "ignorePureComponents": true }
],
"react/forbid-prop-types": [
1, { "forbid": ["any"] }],
"no-restricted-syntax": "off"
},
};