-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.json
131 lines (125 loc) · 3.91 KB
/
.eslintrc.json
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"allowImportExportEverywhere": true,
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"plugins": [
"meteor",
"react"
],
"extends": [
"plugin:meteor/recommended"
],
"settings": {
"import/resolver": "meteor"
},
"rules": {
"no-named-as-default-member": ["off"],
"react/require-extension": ["off"],
"indent": ["off", 4],
"linebreak-style": ["error","unix"],
"quotes": ["off","double"],
"semi": ["warn","always"],
"key-spacing": ["warn"],
"space-before-blocks": ["warn"],
"react/jsx-filename-extension": 0,
"react/jsx-indent-props": ["off"],
"react/jsx-boolean-value": ["off"],
"import/no-absolute-path": 0,
"import/extensions": 0,
"camelcase": ["off"],
"no-trailing-spaces": ["off"],
"no-unused-vars": ["warn"],
"max-len": ["off"],
"no-undef": ["warn"],
"meteor/no-session": ["warn"],
"quote-props": ["off"],
"comma-dangle": ["warn"],
"spaced-comment": ["warn"],
"no-var": ["warn"],
"prefer-template": ["warn"],
"keyword-spacing": ["warn"],
"vars-on-top": ["warn"],
"no-plusplus": ["warn"],
"block-scoped-var": ["warn"],
"no-redeclare": ["warn"],
"space-before-blocks": ["warn"],
"consistent-return": ["warn"],
"object-curly-spacing": ["off"],
"class-methods-use-this": ["warn"],
"react/sort-comp": ["warn"],
"no-multiple-empty-lines": ["warn"],
"no-unused-expressions": ["warn"],
"dot-notation": ["warn"],
"react/prop-types": ["warn"],
"no-multi-spaces": ["warn"],
"jsx-quotes": ["warn"],
"keyword-spacing": ["warn"],
"no-extra-semi": ["warn"],
"import/no-duplicates": ["warn"],
"padded-blocks": ["warn"],
"react/jsx-indent": ["warn"],
"react/self-closing-comp": ["warn"],
"import/no-unresolved": ["warn"],
"array-callback-return": ["warn"],
"react/jsx-curly-spacing": ["warn"],
"eol-last": ["warn"],
"no-duplicate-imports": ["warn"],
"prefer-const": ["warn"],
"semi-spacing": ["warn"],
"no-shadow": ["warn"],
"no-empty": ["warn"],
"jsx-a11y/no-static-element-interactions": ["warn"],
"import/imports-first": ["warn"],
"react/jsx-first-prop-new-line": ["warn"],
"react/jsx-wrap-multilines": ["warn"],
"no-lonely-if": ["warn"],
"react/jsx-closing-bracket-location": ["warn"],
"react/jsx-space-before-closing": ["warn"],
"new-cap": ["warn"],
"react/jsx-no-target-blank": ["warn"],
"arrow-body-style": ["warn"],
"no-else-return": ["warn"],
"no-mixed-operators": ["warn"],
"jsx-a11y/img-has-alt": ["warn"],
"react/no-unused-prop-types": ["warn"],
"import/newline-after-import": ["warn"],
"comma-spacing": ["warn"],
"import/no-named-as-default": ["warn"],
"arrow-parens": ["warn"],
"no-useless-constructor": ["warn"],
"react/jsx-no-bind": ["warn"],
"no-param-reassign": ["warn"],
"react/forbid-prop-types": ["warn"],
// disabled so that we're not expecting to find 'meteor' within
// our dependencies.
// XXX: this *should* be taken care of by eslint-import-resolver-meteor, investigate.
"import/no-extraneous-dependencies": 0,
"no-underscore-dangle": [
"warn",
{
"allow": [
"_id",
"_ensureIndex"
]
}
],
"object-shorthand": [
"warn",
"always",
{
"avoidQuotes": false
}
],
"space-before-function-paren": 0,
// for Meteor API's that rely on `this` context, e.g. Template.onCreated and publications
"func-names": 0,
"prefer-arrow-callback": 0
}
}