|
1 |
| -{ |
2 |
| - // taken from https://raw.githubusercontent.com/airbnb/javascript/master/linters/.eslintrc |
3 |
| - "env": { |
4 |
| - "browser": true, |
5 |
| - "node": true, |
6 |
| - "mocha": true |
7 |
| - }, |
8 |
| - "ecmaFeatures": { |
9 |
| - "arrowFunctions": true, |
10 |
| - "blockBindings": true, |
11 |
| - "classes": true, |
12 |
| - "defaultParams": true, |
13 |
| - "destructuring": true, |
14 |
| - "forOf": true, |
15 |
| - "generators": false, |
16 |
| - "modules": true, |
17 |
| - "objectLiteralComputedProperties": true, |
18 |
| - "objectLiteralDuplicateProperties": false, |
19 |
| - "objectLiteralShorthandMethods": true, |
20 |
| - "objectLiteralShorthandProperties": true, |
21 |
| - "spread": true, |
22 |
| - "superInFunctions": true, |
23 |
| - "templateStrings": true |
24 |
| - }, |
25 |
| - "rules": { |
26 |
| - // strict mode |
27 |
| - "strict": [2, "never"], |
28 |
| - |
29 |
| - // es6 |
30 |
| - "no-var": 0, |
31 |
| - |
32 |
| - // variables |
33 |
| - "no-shadow": 2, |
34 |
| - "no-shadow-restricted-names": 2, |
35 |
| - "no-unused-vars": [2, { |
36 |
| - "vars": "local", |
37 |
| - "args": "none" |
38 |
| - }], |
39 |
| - "no-use-before-define": [2, "nofunc"], |
40 |
| - |
41 |
| - // possible errors |
42 |
| - "comma-dangle": [2, "never"], |
43 |
| - "no-cond-assign": [2, "always"], |
44 |
| - "no-debugger": 1, |
45 |
| - "no-alert": 1, |
46 |
| - "no-constant-condition": 1, |
47 |
| - "no-dupe-keys": 2, |
48 |
| - "no-duplicate-case": 2, |
49 |
| - "no-empty": 2, |
50 |
| - "no-ex-assign": 2, |
51 |
| - "no-extra-boolean-cast": 0, |
52 |
| - "no-extra-semi": 2, |
53 |
| - "no-func-assign": 2, |
54 |
| - "no-inner-declarations": 2, |
55 |
| - "no-invalid-regexp": 2, |
56 |
| - "no-irregular-whitespace": 2, |
57 |
| - "no-obj-calls": 2, |
58 |
| - "no-reserved-keys": 2, |
59 |
| - "no-sparse-arrays": 2, |
60 |
| - "no-unreachable": 2, |
61 |
| - "use-isnan": 2, |
62 |
| - |
63 |
| - // best practices |
64 |
| - "consistent-return": 2, |
65 |
| - "curly": [2, "multi-line"], |
66 |
| - "default-case": 2, |
67 |
| - "dot-notation": [2, { |
68 |
| - "allowKeywords": true |
69 |
| - }], |
70 |
| - "eqeqeq": 2, |
71 |
| - "no-caller": 2, |
72 |
| - "no-else-return": 2, |
73 |
| - "no-eq-null": 2, |
74 |
| - "no-eval": 2, |
75 |
| - "no-extend-native": 2, |
76 |
| - "no-extra-bind": 2, |
77 |
| - "no-fallthrough": 2, |
78 |
| - "no-floating-decimal": 2, |
79 |
| - "no-implied-eval": 2, |
80 |
| - "no-lone-blocks": 2, |
81 |
| - "no-loop-func": 2, |
82 |
| - "no-multi-str": 2, |
83 |
| - "no-native-reassign": 2, |
84 |
| - "no-new": 2, |
85 |
| - "no-new-func": 2, |
86 |
| - "no-new-wrappers": 2, |
87 |
| - "no-octal": 2, |
88 |
| - "no-octal-escape": 2, |
89 |
| - "no-proto": 2, |
90 |
| - "no-redeclare": 2, |
91 |
| - "no-return-assign": 2, |
92 |
| - "no-script-url": 2, |
93 |
| - "no-self-compare": 2, |
94 |
| - "no-sequences": 2, |
95 |
| - "no-throw-literal": 2, |
96 |
| - "no-with": 2, |
97 |
| - "radix": 2, |
98 |
| - "vars-on-top": 2, |
99 |
| - "wrap-iife": [2, "any"], |
100 |
| - "yoda": 2, |
101 |
| - |
102 |
| - // style |
103 |
| - "indent": [2, 4], |
104 |
| - "brace-style": [2, |
105 |
| - "1tbs", { |
106 |
| - "allowSingleLine": true |
107 |
| - }], |
108 |
| - "quotes": [ |
109 |
| - 2, "single", "avoid-escape" |
110 |
| - ], |
111 |
| - "comma-spacing": [2, { |
112 |
| - "before": false, |
113 |
| - "after": true |
114 |
| - }], |
115 |
| - "comma-style": [2, "last"], |
116 |
| - "eol-last": 2, |
117 |
| - "func-names": 0, |
118 |
| - "key-spacing": [2, { |
119 |
| - "beforeColon": false, |
120 |
| - "afterColon": true |
121 |
| - }], |
122 |
| - "new-cap": [2, { |
123 |
| - "newIsCap": true |
124 |
| - }], |
125 |
| - "no-multiple-empty-lines": [2, { |
126 |
| - "max": 2 |
127 |
| - }], |
128 |
| - "no-nested-ternary": 2, |
129 |
| - "no-new-object": 2, |
130 |
| - "no-spaced-func": 2, |
131 |
| - "no-trailing-spaces": 2, |
132 |
| - "no-wrap-func": 2, |
133 |
| - "no-underscore-dangle": 0, |
134 |
| - "semi": [2, "always"], |
135 |
| - "semi-spacing": [2, { |
136 |
| - "before": false, |
137 |
| - "after": true |
138 |
| - }], |
139 |
| - "space-after-keywords": 2, |
140 |
| - "space-before-blocks": 2, |
141 |
| - "space-before-function-paren": [2, "never"], |
142 |
| - "space-infix-ops": 2, |
143 |
| - "space-return-throw-case": 2, |
144 |
| - "spaced-line-comment": 2 |
145 |
| - } |
146 |
| -} |
| 1 | +--- |
| 2 | + root: true |
| 3 | + extends: |
| 4 | + - "standard" |
| 5 | + env: |
| 6 | + es6: false |
| 7 | + node: true` |
| 8 | + rules: |
| 9 | + semi: |
| 10 | + - 2 |
| 11 | + - "always" |
| 12 | + arrow-parens: |
| 13 | + - 2 |
| 14 | + - "always" |
| 15 | + comma-dangle: |
| 16 | + - 2 |
| 17 | + - "never" |
| 18 | + no-multiple-empty-lines: |
| 19 | + - 2 |
| 20 | + - max: 2 |
| 21 | + arrow-body-style: 0 |
| 22 | + no-console: 0 |
| 23 | + space-before-function-paren: 0 |
| 24 | + guard-for-in: 0 |
| 25 | + no-use-before-define: 0 |
| 26 | + class-methods-use-this: 1 |
0 commit comments