Skip to content

Commit 10fa396

Browse files
committed
feat: replace warnings with errors
1 parent a85d218 commit 10fa396

File tree

7 files changed

+95
-95
lines changed

7 files changed

+95
-95
lines changed

README.md

Lines changed: 47 additions & 47 deletions
Large diffs are not rendered by default.

configurations/ava.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"ava/assertion-arguments": 2,
88
"ava/hooks-order": 2,
99
"ava/max-asserts": [
10-
1,
10+
2,
1111
5
1212
],
1313
"ava/no-async-fn-without-await": 2,
@@ -22,7 +22,7 @@
2222
"ava/no-skip-assert": 2,
2323
"ava/no-skip-test": 2,
2424
"ava/no-todo-implementation": 2,
25-
"ava/no-todo-test": 1,
25+
"ava/no-todo-test": 2,
2626
"ava/no-unknown-modifiers": 2,
2727
"ava/prefer-async-await": 2,
2828
"ava/prefer-power-assert": 0,

configurations/eslintrc.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,11 @@
305305
"jsdoc/check-examples": 0,
306306
"jsdoc/check-indentation": 0,
307307
"jsdoc/check-line-alignment": 0,
308-
"jsdoc/check-param-names": 1,
308+
"jsdoc/check-param-names": 2,
309309
"jsdoc/check-property-names": 2,
310310
"jsdoc/check-syntax": 2,
311-
"jsdoc/check-tag-names": 1,
312-
"jsdoc/check-types": 1,
311+
"jsdoc/check-tag-names": 2,
312+
"jsdoc/check-types": 2,
313313
"jsdoc/check-values": 2,
314314
"jsdoc/empty-tags": 2,
315315
"jsdoc/implements-on-classes": 2,
@@ -323,7 +323,7 @@
323323
}
324324
],
325325
"jsdoc/newline-after-description": [
326-
1,
326+
2,
327327
"always"
328328
],
329329
"jsdoc/no-bad-blocks": 2,
@@ -455,11 +455,11 @@
455455
"no-confusing-arrow": 2,
456456
"no-console": 2,
457457
"no-const-assign": 2,
458-
"no-constant-condition": 1,
458+
"no-constant-condition": 2,
459459
"no-constructor-return": 2,
460460
"no-continue": 0,
461461
"no-control-regex": 2,
462-
"no-debugger": 1,
462+
"no-debugger": 2,
463463
"no-delete-var": 2,
464464
"no-div-regex": 2,
465465
"no-dupe-args": 2,
@@ -583,7 +583,7 @@
583583
"no-unexpected-multiline": 2,
584584
"no-unmodified-loop-condition": 2,
585585
"no-unneeded-ternary": 2,
586-
"no-unreachable": 1,
586+
"no-unreachable": 2,
587587
"no-unreachable-loop": 2,
588588
"no-unsafe-finally": 2,
589589
"no-unsafe-negation": 2,
@@ -875,7 +875,7 @@
875875
"unicorn/no-this-assignment": 2,
876876
"unicorn/no-unreadable-array-destructuring": 0,
877877
"unicorn/no-unsafe-regex": 2,
878-
"unicorn/no-unused-properties": 1,
878+
"unicorn/no-unused-properties": 2,
879879
"unicorn/no-useless-fallback-in-spread": 2,
880880
"unicorn/no-useless-length-check": 2,
881881
"unicorn/no-useless-spread": 2,

configurations/flowtype.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2,
2020
"boolean"
2121
],
22-
"flowtype/define-flow-type": 1,
22+
"flowtype/define-flow-type": 2,
2323
"flowtype/delimiter-dangle": [
2424
2,
2525
"always-multiline"
@@ -34,7 +34,7 @@
3434
"flowtype/no-dupe-keys": 2,
3535
"flowtype/no-duplicate-type-union-intersection-members": 2,
3636
"flowtype/no-existential-type": 0,
37-
"flowtype/no-flow-fix-me-comments": 1,
37+
"flowtype/no-flow-fix-me-comments": 2,
3838
"flowtype/no-internal-flow-type": 2,
3939
"flowtype/no-mixed": 2,
4040
"flowtype/no-mutable-array": 2,
@@ -52,7 +52,7 @@
5252
"single"
5353
],
5454
"flowtype/require-compound-type-alias": 0,
55-
"flowtype/require-exact-type": 1,
55+
"flowtype/require-exact-type": 2,
5656
"flowtype/require-indexer-name": [
5757
2,
5858
"always"
@@ -113,7 +113,7 @@
113113
2,
114114
"always"
115115
],
116-
"flowtype/use-flow-type": 1,
116+
"flowtype/use-flow-type": 2,
117117
"flowtype/use-read-only-spread": 2
118118
},
119119
"settings": {

configurations/lodash.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,61 +3,61 @@
33
"lodash"
44
],
55
"rules": {
6-
"lodash/callback-binding": 1,
6+
"lodash/callback-binding": 2,
77
"lodash/chain-style": [
8-
1,
8+
2,
99
"explicit"
1010
],
1111
"lodash/chaining": [
12-
1,
12+
2,
1313
"always"
1414
],
15-
"lodash/collection-method-value": 1,
15+
"lodash/collection-method-value": 2,
1616
"lodash/collection-ordering": 2,
17-
"lodash/collection-return": 1,
17+
"lodash/collection-return": 2,
1818
"lodash/consistent-compose": [
19-
1,
19+
2,
2020
"flow"
2121
],
2222
"lodash/identity-shorthand": [
23-
1,
23+
2,
2424
"always"
2525
],
2626
"lodash/import-scope": 0,
27-
"lodash/matches-prop-shorthand": 1,
27+
"lodash/matches-prop-shorthand": 2,
2828
"lodash/matches-shorthand": [
29-
1,
29+
2,
3030
"always",
3131
3
3232
],
33-
"lodash/no-commit": 1,
34-
"lodash/no-double-unwrap": 1,
35-
"lodash/no-extra-args": 1,
33+
"lodash/no-commit": 2,
34+
"lodash/no-double-unwrap": 2,
35+
"lodash/no-extra-args": 2,
3636
"lodash/no-unbound-this": 2,
3737
"lodash/path-style": 0,
38-
"lodash/prefer-compact": 1,
38+
"lodash/prefer-compact": 2,
3939
"lodash/prefer-constant": 0,
4040
"lodash/prefer-filter": [
41-
1,
41+
2,
4242
3
4343
],
4444
"lodash/prefer-find": 2,
4545
"lodash/prefer-flat-map": 2,
4646
"lodash/prefer-get": [
47-
1,
47+
2,
4848
3
4949
],
5050
"lodash/prefer-immutable-method": 2,
51-
"lodash/prefer-includes": 1,
51+
"lodash/prefer-includes": 2,
5252
"lodash/prefer-invoke-map": 0,
53-
"lodash/prefer-is-nil": 1,
54-
"lodash/prefer-lodash-chain": 1,
53+
"lodash/prefer-is-nil": 2,
54+
"lodash/prefer-lodash-chain": 2,
5555
"lodash/prefer-lodash-method": 0,
56-
"lodash/prefer-lodash-typecheck": 1,
57-
"lodash/prefer-map": 1,
58-
"lodash/prefer-matches": 1,
56+
"lodash/prefer-lodash-typecheck": 2,
57+
"lodash/prefer-map": 2,
58+
"lodash/prefer-matches": 2,
5959
"lodash/prefer-noop": 0,
60-
"lodash/prefer-over-quantifier": 1,
60+
"lodash/prefer-over-quantifier": 2,
6161
"lodash/prefer-reject": [
6262
1,
6363
3
@@ -69,11 +69,11 @@
6969
}
7070
],
7171
"lodash/prefer-startswith": 0,
72-
"lodash/prefer-thru": 1,
73-
"lodash/prefer-times": 1,
74-
"lodash/prefer-wrapper-method": 1,
75-
"lodash/preferred-alias": 1,
76-
"lodash/prop-shorthand": 1,
77-
"lodash/unwrap": 1
72+
"lodash/prefer-thru": 2,
73+
"lodash/prefer-times": 2,
74+
"lodash/prefer-wrapper-method": 2,
75+
"lodash/preferred-alias": 2,
76+
"lodash/prop-shorthand": 2,
77+
"lodash/unwrap": 2
7878
}
7979
}

configurations/react.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
2,
126126
{
127127
"ignore": [
128-
"h1",
128+
"h{}",
129129
"h2",
130130
"h3",
131131
"h4",
@@ -157,8 +157,8 @@
157157
"closingSlash": "never"
158158
}
159159
],
160-
"react/jsx-uses-react": 1,
161-
"react/jsx-uses-vars": 1,
160+
"react/jsx-uses-react": 2,
161+
"react/jsx-uses-vars": 2,
162162
"react/jsx-wrap-multilines": 0,
163163
"react/no-access-state-in-setstate": 2,
164164
"react/no-adjacent-inline-elements": 0,
@@ -189,7 +189,7 @@
189189
"react/no-will-update-set-state": 2,
190190
"react/prefer-es6-class": 2,
191191
"react/prefer-exact-props": 0,
192-
"react/prefer-read-only-props": 1,
192+
"react/prefer-read-only-props": 2,
193193
"react/prefer-stateless-function": [
194194
2,
195195
{

configurations/typescript.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
],
167167
"@typescript-eslint/no-misused-new": 2,
168168
"@typescript-eslint/no-misused-promises": [
169-
1,
169+
2,
170170
{
171171
"checksConditionals": true,
172172
"checksVoidReturn": true
@@ -175,7 +175,7 @@
175175
"@typescript-eslint/no-namespace": 2,
176176
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": 2,
177177
"@typescript-eslint/no-non-null-asserted-optional-chain": 2,
178-
"@typescript-eslint/no-non-null-assertion": 1,
178+
"@typescript-eslint/no-non-null-assertion": 2,
179179
"@typescript-eslint/no-parameter-properties": 2,
180180
"@typescript-eslint/no-require-imports": 2,
181181
"@typescript-eslint/no-restricted-imports": 0,

0 commit comments

Comments
 (0)