|
1 | | -env: |
2 | | - node: true |
3 | | - browser: false |
4 | | - es6: false |
| 1 | +extends: standard |
5 | 2 |
|
6 | | -rules: |
7 | | - accessor-pairs: 2 |
8 | | - array-bracket-spacing: [ 2, "always", { "singleValue": true, "objectsInArrays": true, "arraysInArrays": true } ] |
9 | | - block-scoped-var: 2 |
10 | | - block-spacing: 2 |
11 | | - brace-style: [ 2, '1tbs', { allowSingleLine: true } ] |
12 | | - # Postponed |
13 | | - #callback-return: 2 |
14 | | - comma-dangle: 2 |
15 | | - comma-spacing: 2 |
16 | | - comma-style: 2 |
17 | | - computed-property-spacing: [ 2, never ] |
18 | | - consistent-this: [ 2, self ] |
19 | | - consistent-return: 2 |
20 | | - # ? change to multi |
21 | | - curly: [ 2, 'multi-line' ] |
22 | | - dot-notation: 2 |
23 | | - eol-last: 2 |
24 | | - eqeqeq: 2 |
25 | | - func-style: [ 2, declaration ] |
26 | | - # Postponed |
27 | | - #global-require: 2 |
28 | | - guard-for-in: 2 |
29 | | - handle-callback-err: 2 |
| 3 | +overrides: |
| 4 | + - |
| 5 | + files: [ '*.mjs' ] |
| 6 | + rules: |
| 7 | + no-restricted-globals: [ 2, require, __dirname ] |
| 8 | + - |
| 9 | + files: [ 'test/**' ] |
| 10 | + env: { mocha: true } |
| 11 | + - |
| 12 | + files: [ 'lib/**', 'index.mjs' ] |
| 13 | + parserOptions: { ecmaVersion: 2015 } |
30 | 14 |
|
31 | | - indent: [ 2, 2, { VariableDeclarator: { var: 2, let: 2, const: 3 }, SwitchCase: 1, ignoreComments: true } ] |
| 15 | +ignorePatterns: |
| 16 | + - demo/ |
| 17 | + - dist/ |
| 18 | + - benchmark/extra/ |
32 | 19 |
|
33 | | - # key-spacing: [ 2, { "align": "value" } ] |
34 | | - keyword-spacing: 2 |
35 | | - linebreak-style: 2 |
36 | | - max-depth: [ 1, 6 ] |
37 | | - max-nested-callbacks: [ 1, 4 ] |
38 | | - # string can exceed 80 chars, but should not overflow github website :) |
39 | | - max-len: [ 2, 120, 1000 ] |
40 | | - new-cap: 2 |
41 | | - new-parens: 2 |
42 | | - # Postponed |
43 | | - #newline-after-var: 2 |
44 | | - no-alert: 2 |
45 | | - no-array-constructor: 2 |
46 | | - no-bitwise: 2 |
47 | | - no-caller: 2 |
48 | | - #no-case-declarations: 2 |
49 | | - no-catch-shadow: 2 |
50 | | - no-cond-assign: 2 |
51 | | - no-console: 1 |
52 | | - no-constant-condition: 2 |
53 | | - #no-control-regex: 2 |
54 | | - no-debugger: 2 |
55 | | - no-delete-var: 2 |
56 | | - no-div-regex: 2 |
57 | | - no-dupe-args: 2 |
58 | | - no-dupe-keys: 2 |
59 | | - no-duplicate-case: 2 |
60 | | - no-else-return: 2 |
61 | | - # Tend to drop |
62 | | - # no-empty: 1 |
63 | | - no-empty-character-class: 2 |
64 | | - no-empty-pattern: 2 |
65 | | - no-eq-null: 2 |
66 | | - no-eval: 2 |
67 | | - no-ex-assign: 2 |
68 | | - no-extend-native: 2 |
69 | | - no-extra-bind: 2 |
70 | | - no-extra-boolean-cast: 2 |
71 | | - no-extra-semi: 2 |
72 | | - no-fallthrough: 2 |
73 | | - no-floating-decimal: 2 |
74 | | - no-func-assign: 2 |
75 | | - # Postponed |
76 | | - #no-implicit-coercion: [2, { "boolean": true, "number": true, "string": true } ] |
77 | | - no-implied-eval: 2 |
78 | | - no-inner-declarations: 2 |
79 | | - no-invalid-regexp: 2 |
80 | | - no-irregular-whitespace: 2 |
81 | | - no-iterator: 2 |
82 | | - no-label-var: 2 |
83 | | - no-labels: 2 |
84 | | - no-lone-blocks: 2 |
85 | | - no-lonely-if: 2 |
86 | | - no-loop-func: 2 |
87 | | - no-mixed-requires: 2 |
88 | | - no-mixed-spaces-and-tabs: 2 |
89 | | - # Postponed |
90 | | - #no-native-reassign: 2 |
91 | | - no-negated-in-lhs: 2 |
92 | | - # Postponed |
93 | | - #no-nested-ternary: 2 |
94 | | - no-new: 2 |
95 | | - no-new-func: 2 |
96 | | - no-new-object: 2 |
97 | | - no-new-require: 2 |
98 | | - no-new-wrappers: 2 |
99 | | - no-obj-calls: 2 |
100 | | - no-octal: 2 |
101 | | - no-octal-escape: 2 |
102 | | - no-path-concat: 2 |
103 | | - no-proto: 2 |
104 | | - no-redeclare: 2 |
105 | | - # Postponed |
106 | | - #no-regex-spaces: 2 |
107 | | - no-return-assign: 2 |
108 | | - no-self-compare: 2 |
109 | | - no-sequences: 2 |
110 | | - no-shadow: 2 |
111 | | - no-shadow-restricted-names: 2 |
112 | | - no-sparse-arrays: 2 |
113 | | - no-trailing-spaces: 2 |
114 | | - no-undef: 2 |
115 | | - no-undef-init: 2 |
116 | | - no-undefined: 2 |
117 | | - no-unexpected-multiline: 2 |
118 | | - no-unreachable: 2 |
119 | | - no-unused-expressions: 2 |
120 | | - no-unused-vars: 2 |
121 | | - no-use-before-define: 2 |
122 | | - no-void: 2 |
123 | | - no-with: 2 |
124 | | - object-curly-spacing: [ 2, always, { "objectsInObjects": true, "arraysInObjects": true } ] |
125 | | - operator-assignment: 1 |
126 | | - # Postponed |
127 | | - #operator-linebreak: [ 2, after ] |
128 | | - semi: 2 |
129 | | - semi-spacing: 2 |
130 | | - space-before-function-paren: [ 2, { "anonymous": "always", "named": "never" } ] |
131 | | - space-in-parens: [ 2, never ] |
132 | | - space-infix-ops: 2 |
133 | | - space-unary-ops: 2 |
134 | | - # Postponed |
135 | | - #spaced-comment: [ 1, always, { exceptions: [ '/', '=' ] } ] |
136 | | - strict: [ 2, global ] |
137 | | - quotes: [ 2, single, avoid-escape ] |
138 | | - quote-props: [ 1, 'as-needed', { "keywords": true } ] |
139 | | - radix: 2 |
140 | | - use-isnan: 2 |
141 | | - valid-typeof: 2 |
142 | | - yoda: [ 2, never, { "exceptRange": true } ] |
| 20 | +rules: |
| 21 | + camelcase: 0 |
| 22 | + no-multi-spaces: 0 |
0 commit comments