Skip to content

Commit 50092f6

Browse files
committed
eslint: switch to standard base
1 parent a7755db commit 50092f6

1 file changed

Lines changed: 2 additions & 154 deletions

File tree

.eslintrc.yml

Lines changed: 2 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
env:
2-
node: true
3-
browser: false
4-
es6: false
5-
6-
parserOptions:
7-
ecmaVersion: latest
1+
extends: standard
82

93
overrides:
104
-
@@ -20,150 +14,4 @@ ignorePatterns:
2014
- build/
2115

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

0 commit comments

Comments
 (0)