@rebeccastevens/eslint-config 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/dist/modern.cjs +65 -4
- package/dist/modern.mjs +65 -4
- package/dist/script.cjs +11 -0
- package/dist/script.mjs +9 -0
- package/dist/typescript.cjs +17 -3
- package/dist/typescript.mjs +17 -3
- package/package.json +34 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,49 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
|
|
3
3
|
|
|
4
|
+
# [1.2.0](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.1.5...v1.2.0) (2021-12-07)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* add ts version of rule no-redeclare ([eaa92ac](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/eaa92aca6592ccfd2bc80f03fc966c8499c9deaa))
|
|
10
|
+
* increase severity of prefer-readonly-parameter-types rule ([807acf4](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/807acf494b0064af40a1aca11f362a024174a6f7))
|
|
11
|
+
* turn off consistent-return in ts environment ([5cc95bf](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/5cc95bf2fe2784ed37a553413e94e19f3ecca2fc))
|
|
12
|
+
* turn off no-try-statement ([01168ad](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/01168adfe7dac707974bc45a8e6a3d6089832d3c))
|
|
13
|
+
* turn off no-warning-comments ([78150eb](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/78150eb466467371e08724297b6ed353c69ead85))
|
|
14
|
+
* turn off prefer-await-to-then ([abeab1a](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/abeab1ab0d02c57470eef48eb63aec05420f6873))
|
|
15
|
+
* turn off prefer-tacit ([c26c1d6](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/c26c1d6a2a168fbf999cbc7930ba66bfaeb40a37))
|
|
16
|
+
* turn off promise-function-async ([01e413d](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/01e413daf5a5c04badbb9fe87166584a1e1eb1f2))
|
|
17
|
+
* turn off sort-type-union-intersection-members" ([88c3567](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/88c356746053d623c1f1220fad450ac43dc4f3ae))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add config for srcipting ([458fcf6](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/458fcf68baf2ee4af20a4d4ed3fba7f34bb84271))
|
|
23
|
+
|
|
24
|
+
## [1.1.5](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.1.4...v1.1.5) (2021-10-18)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* **no-extra-parens:** use typescript version of rule when in typescript ([#867](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/issues/867)) ([ba4547e](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/ba4547eb5f5343befd60883480ee21862af3ee1b))
|
|
30
|
+
* **space-infix-ops:** use typescript version of space-infix-ops for t… ([#868](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/issues/868)) ([e526697](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/e52669724305c042d9ef910121546ed5bd197b12))
|
|
31
|
+
* **type-annotation-spacing:** add rule ([#866](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/issues/866)) ([2604984](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/260498492a37e0d27d7420a3aa5e781e0aa7c8e1))
|
|
32
|
+
|
|
33
|
+
## [1.1.4](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.1.3...v1.1.4) (2021-09-21)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* update markdown overrides ([#855](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/issues/855)) ([4544336](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/45443362262c5cbbc31c855539ab51012e88d5c2))
|
|
39
|
+
|
|
40
|
+
## [1.1.3](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.1.2...v1.1.3) (2021-09-21)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Bug Fixes
|
|
44
|
+
|
|
45
|
+
* turn off all type-checking eslint rules for markdown ([#854](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/issues/854)) ([2605f92](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/commit/2605f925467654e1cf0a61c4c8f35924cb6fe2ee))
|
|
46
|
+
|
|
4
47
|
## [1.1.2](https://github.com/RebeccaStevens/eslint-config-rebeccastevens/compare/v1.1.1...v1.1.2) (2021-09-19)
|
|
5
48
|
|
|
6
49
|
|
package/dist/modern.cjs
CHANGED
|
@@ -139,7 +139,7 @@ const rules$6 = {
|
|
|
139
139
|
"no-useless-escape": "error",
|
|
140
140
|
"no-useless-return": "error",
|
|
141
141
|
"no-void": "off",
|
|
142
|
-
"no-warning-comments": "
|
|
142
|
+
"no-warning-comments": "off",
|
|
143
143
|
"no-with": "error",
|
|
144
144
|
"prefer-named-capture-group": "off",
|
|
145
145
|
"prefer-promise-reject-errors": "error",
|
|
@@ -603,7 +603,6 @@ const settings$8 = {
|
|
|
603
603
|
extends: [
|
|
604
604
|
"plugin:functional/external-recommended",
|
|
605
605
|
"plugin:functional/recommended",
|
|
606
|
-
"plugin:functional/stylistic",
|
|
607
606
|
],
|
|
608
607
|
rules: {
|
|
609
608
|
"functional/no-let": [
|
|
@@ -626,6 +625,7 @@ const settings$8 = {
|
|
|
626
625
|
allowReturningBranches: true,
|
|
627
626
|
},
|
|
628
627
|
],
|
|
628
|
+
"functional/no-try-statement": "off",
|
|
629
629
|
"functional/prefer-readonly-type": [
|
|
630
630
|
"error",
|
|
631
631
|
{
|
|
@@ -633,7 +633,6 @@ const settings$8 = {
|
|
|
633
633
|
ignoreClass: true,
|
|
634
634
|
},
|
|
635
635
|
],
|
|
636
|
-
"functional/prefer-type-literal": "off",
|
|
637
636
|
},
|
|
638
637
|
overrides: [
|
|
639
638
|
{
|
|
@@ -853,9 +852,71 @@ const settings$5 = {
|
|
|
853
852
|
},
|
|
854
853
|
{
|
|
855
854
|
files: ["**/*.md/**"],
|
|
855
|
+
parserOptions: {
|
|
856
|
+
project: null,
|
|
857
|
+
},
|
|
856
858
|
rules: {
|
|
859
|
+
"@typescript-eslint/await-thenable": "off",
|
|
860
|
+
"@typescript-eslint/consistent-type-definitions": "off",
|
|
861
|
+
"@typescript-eslint/dot-notation": "off",
|
|
862
|
+
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
863
|
+
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
864
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
865
|
+
"@typescript-eslint/no-floating-promises": "off",
|
|
866
|
+
"@typescript-eslint/no-for-in-array": "off",
|
|
867
|
+
"@typescript-eslint/no-implied-eval": "off",
|
|
868
|
+
"@typescript-eslint/no-misused-promises": "off",
|
|
869
|
+
"@typescript-eslint/no-throw-literal": "off",
|
|
870
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
871
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
872
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
873
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
874
|
+
"@typescript-eslint/no-unsafe-return": "off",
|
|
875
|
+
"@typescript-eslint/no-unused-expressions": "off",
|
|
876
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
877
|
+
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
878
|
+
"@typescript-eslint/prefer-includes": "off",
|
|
879
|
+
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
880
|
+
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
881
|
+
"@typescript-eslint/prefer-readonly": "off",
|
|
882
|
+
"@typescript-eslint/prefer-regexp-exec": "off",
|
|
883
|
+
"@typescript-eslint/prefer-string-starts-ends-with": "off",
|
|
884
|
+
"@typescript-eslint/promise-function-async": "off",
|
|
885
|
+
"@typescript-eslint/require-await": "off",
|
|
886
|
+
"@typescript-eslint/restrict-plus-operands": "off",
|
|
887
|
+
"@typescript-eslint/restrict-template-expressions": "off",
|
|
888
|
+
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
889
|
+
"@typescript-eslint/switch-exhaustiveness-check": "off",
|
|
890
|
+
"@typescript-eslint/unbound-method": "off",
|
|
891
|
+
"functional/functional-parameters": "off",
|
|
892
|
+
"functional/immutable-data": "off",
|
|
893
|
+
"functional/no-class": "off",
|
|
894
|
+
"functional/no-expression-statement": "off",
|
|
895
|
+
"functional/no-let": "off",
|
|
896
|
+
"functional/no-loop-statement": "off",
|
|
897
|
+
"functional/no-return-void": "off",
|
|
898
|
+
"functional/no-this-expression": "off",
|
|
899
|
+
"functional/no-throw-statement": "off",
|
|
900
|
+
"functional/no-try-statement": "off",
|
|
901
|
+
"functional/prefer-readonly-type": "off",
|
|
902
|
+
"import/no-unresolved": "off",
|
|
903
|
+
"init-declarations": "off",
|
|
904
|
+
"jsdoc/require-jsdoc": "off",
|
|
857
905
|
"no-console": "off",
|
|
906
|
+
"no-empty": "off",
|
|
907
|
+
"no-invalid-this": "off",
|
|
908
|
+
"no-undef": "off",
|
|
909
|
+
"no-useless-return": "off",
|
|
910
|
+
"node/handle-callback-err": "off",
|
|
911
|
+
"prefer-const": "off",
|
|
858
912
|
"prettier/prettier": "off",
|
|
913
|
+
"sonarjs/no-extra-arguments": "off",
|
|
914
|
+
"sonarjs/no-unused-collection": "off",
|
|
915
|
+
"unicorn/prefer-optional-catch-binding": "off",
|
|
916
|
+
"unicorn/prefer-top-level-await": "off",
|
|
917
|
+
"dot-notation": "error",
|
|
918
|
+
"no-implied-eval": "error",
|
|
919
|
+
"require-await": "error",
|
|
859
920
|
},
|
|
860
921
|
},
|
|
861
922
|
],
|
|
@@ -912,7 +973,7 @@ const settings$2 = {
|
|
|
912
973
|
"promise/no-promise-in-callback": "error",
|
|
913
974
|
"promise/no-return-in-finally": "error",
|
|
914
975
|
"promise/prefer-await-to-callbacks": "warn",
|
|
915
|
-
"promise/prefer-await-to-then": "
|
|
976
|
+
"promise/prefer-await-to-then": "off",
|
|
916
977
|
"promise/valid-params": "error",
|
|
917
978
|
},
|
|
918
979
|
};
|
package/dist/modern.mjs
CHANGED
|
@@ -137,7 +137,7 @@ const rules$6 = {
|
|
|
137
137
|
"no-useless-escape": "error",
|
|
138
138
|
"no-useless-return": "error",
|
|
139
139
|
"no-void": "off",
|
|
140
|
-
"no-warning-comments": "
|
|
140
|
+
"no-warning-comments": "off",
|
|
141
141
|
"no-with": "error",
|
|
142
142
|
"prefer-named-capture-group": "off",
|
|
143
143
|
"prefer-promise-reject-errors": "error",
|
|
@@ -601,7 +601,6 @@ const settings$8 = {
|
|
|
601
601
|
extends: [
|
|
602
602
|
"plugin:functional/external-recommended",
|
|
603
603
|
"plugin:functional/recommended",
|
|
604
|
-
"plugin:functional/stylistic",
|
|
605
604
|
],
|
|
606
605
|
rules: {
|
|
607
606
|
"functional/no-let": [
|
|
@@ -624,6 +623,7 @@ const settings$8 = {
|
|
|
624
623
|
allowReturningBranches: true,
|
|
625
624
|
},
|
|
626
625
|
],
|
|
626
|
+
"functional/no-try-statement": "off",
|
|
627
627
|
"functional/prefer-readonly-type": [
|
|
628
628
|
"error",
|
|
629
629
|
{
|
|
@@ -631,7 +631,6 @@ const settings$8 = {
|
|
|
631
631
|
ignoreClass: true,
|
|
632
632
|
},
|
|
633
633
|
],
|
|
634
|
-
"functional/prefer-type-literal": "off",
|
|
635
634
|
},
|
|
636
635
|
overrides: [
|
|
637
636
|
{
|
|
@@ -851,9 +850,71 @@ const settings$5 = {
|
|
|
851
850
|
},
|
|
852
851
|
{
|
|
853
852
|
files: ["**/*.md/**"],
|
|
853
|
+
parserOptions: {
|
|
854
|
+
project: null,
|
|
855
|
+
},
|
|
854
856
|
rules: {
|
|
857
|
+
"@typescript-eslint/await-thenable": "off",
|
|
858
|
+
"@typescript-eslint/consistent-type-definitions": "off",
|
|
859
|
+
"@typescript-eslint/dot-notation": "off",
|
|
860
|
+
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
861
|
+
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
862
|
+
"@typescript-eslint/no-empty-function": "off",
|
|
863
|
+
"@typescript-eslint/no-floating-promises": "off",
|
|
864
|
+
"@typescript-eslint/no-for-in-array": "off",
|
|
865
|
+
"@typescript-eslint/no-implied-eval": "off",
|
|
866
|
+
"@typescript-eslint/no-misused-promises": "off",
|
|
867
|
+
"@typescript-eslint/no-throw-literal": "off",
|
|
868
|
+
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
869
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
870
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
871
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
872
|
+
"@typescript-eslint/no-unsafe-return": "off",
|
|
873
|
+
"@typescript-eslint/no-unused-expressions": "off",
|
|
874
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
875
|
+
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
876
|
+
"@typescript-eslint/prefer-includes": "off",
|
|
877
|
+
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
878
|
+
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
879
|
+
"@typescript-eslint/prefer-readonly": "off",
|
|
880
|
+
"@typescript-eslint/prefer-regexp-exec": "off",
|
|
881
|
+
"@typescript-eslint/prefer-string-starts-ends-with": "off",
|
|
882
|
+
"@typescript-eslint/promise-function-async": "off",
|
|
883
|
+
"@typescript-eslint/require-await": "off",
|
|
884
|
+
"@typescript-eslint/restrict-plus-operands": "off",
|
|
885
|
+
"@typescript-eslint/restrict-template-expressions": "off",
|
|
886
|
+
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
887
|
+
"@typescript-eslint/switch-exhaustiveness-check": "off",
|
|
888
|
+
"@typescript-eslint/unbound-method": "off",
|
|
889
|
+
"functional/functional-parameters": "off",
|
|
890
|
+
"functional/immutable-data": "off",
|
|
891
|
+
"functional/no-class": "off",
|
|
892
|
+
"functional/no-expression-statement": "off",
|
|
893
|
+
"functional/no-let": "off",
|
|
894
|
+
"functional/no-loop-statement": "off",
|
|
895
|
+
"functional/no-return-void": "off",
|
|
896
|
+
"functional/no-this-expression": "off",
|
|
897
|
+
"functional/no-throw-statement": "off",
|
|
898
|
+
"functional/no-try-statement": "off",
|
|
899
|
+
"functional/prefer-readonly-type": "off",
|
|
900
|
+
"import/no-unresolved": "off",
|
|
901
|
+
"init-declarations": "off",
|
|
902
|
+
"jsdoc/require-jsdoc": "off",
|
|
855
903
|
"no-console": "off",
|
|
904
|
+
"no-empty": "off",
|
|
905
|
+
"no-invalid-this": "off",
|
|
906
|
+
"no-undef": "off",
|
|
907
|
+
"no-useless-return": "off",
|
|
908
|
+
"node/handle-callback-err": "off",
|
|
909
|
+
"prefer-const": "off",
|
|
856
910
|
"prettier/prettier": "off",
|
|
911
|
+
"sonarjs/no-extra-arguments": "off",
|
|
912
|
+
"sonarjs/no-unused-collection": "off",
|
|
913
|
+
"unicorn/prefer-optional-catch-binding": "off",
|
|
914
|
+
"unicorn/prefer-top-level-await": "off",
|
|
915
|
+
"dot-notation": "error",
|
|
916
|
+
"no-implied-eval": "error",
|
|
917
|
+
"require-await": "error",
|
|
857
918
|
},
|
|
858
919
|
},
|
|
859
920
|
],
|
|
@@ -910,7 +971,7 @@ const settings$2 = {
|
|
|
910
971
|
"promise/no-promise-in-callback": "error",
|
|
911
972
|
"promise/no-return-in-finally": "error",
|
|
912
973
|
"promise/prefer-await-to-callbacks": "warn",
|
|
913
|
-
"promise/prefer-await-to-then": "
|
|
974
|
+
"promise/prefer-await-to-then": "off",
|
|
914
975
|
"promise/valid-params": "error",
|
|
915
976
|
},
|
|
916
977
|
};
|
package/dist/script.cjs
ADDED
package/dist/script.mjs
ADDED
package/dist/typescript.cjs
CHANGED
|
@@ -107,6 +107,13 @@ const settings = {
|
|
|
107
107
|
ignoreVoidOperator: true,
|
|
108
108
|
},
|
|
109
109
|
],
|
|
110
|
+
"@typescript-eslint/no-extra-parens": [
|
|
111
|
+
"error",
|
|
112
|
+
"all",
|
|
113
|
+
{
|
|
114
|
+
nestedBinaryExpressions: false,
|
|
115
|
+
},
|
|
116
|
+
],
|
|
110
117
|
"@typescript-eslint/no-invalid-void-type": "error",
|
|
111
118
|
"@typescript-eslint/no-loop-func": "error",
|
|
112
119
|
"@typescript-eslint/no-loss-of-precision": "error",
|
|
@@ -165,7 +172,7 @@ const settings = {
|
|
|
165
172
|
"@typescript-eslint/prefer-nullish-coalescing": "warn",
|
|
166
173
|
"@typescript-eslint/prefer-optional-chain": "warn",
|
|
167
174
|
"@typescript-eslint/prefer-readonly-parameter-types": [
|
|
168
|
-
"
|
|
175
|
+
"error",
|
|
169
176
|
{
|
|
170
177
|
checkParameterProperties: false,
|
|
171
178
|
ignoreInferredTypes: true,
|
|
@@ -174,7 +181,7 @@ const settings = {
|
|
|
174
181
|
"@typescript-eslint/prefer-regexp-exec": "error",
|
|
175
182
|
"@typescript-eslint/prefer-string-starts-ends-with": "warn",
|
|
176
183
|
"@typescript-eslint/prefer-ts-expect-error": "warn",
|
|
177
|
-
"@typescript-eslint/promise-function-async": "
|
|
184
|
+
"@typescript-eslint/promise-function-async": "off",
|
|
178
185
|
"@typescript-eslint/restrict-plus-operands": [
|
|
179
186
|
"error",
|
|
180
187
|
{
|
|
@@ -190,7 +197,8 @@ const settings = {
|
|
|
190
197
|
allowNumber: true,
|
|
191
198
|
},
|
|
192
199
|
],
|
|
193
|
-
"@typescript-eslint/
|
|
200
|
+
"@typescript-eslint/space-infix-ops": "error",
|
|
201
|
+
"@typescript-eslint/sort-type-union-intersection-members": "off",
|
|
194
202
|
"@typescript-eslint/strict-boolean-expressions": [
|
|
195
203
|
"error",
|
|
196
204
|
{
|
|
@@ -205,6 +213,7 @@ const settings = {
|
|
|
205
213
|
},
|
|
206
214
|
],
|
|
207
215
|
"@typescript-eslint/switch-exhaustiveness-check": "warn",
|
|
216
|
+
"@typescript-eslint/type-annotation-spacing": "error",
|
|
208
217
|
"@typescript-eslint/unbound-method": [
|
|
209
218
|
"error",
|
|
210
219
|
{
|
|
@@ -212,6 +221,7 @@ const settings = {
|
|
|
212
221
|
},
|
|
213
222
|
],
|
|
214
223
|
"@typescript-eslint/unified-signatures": "warn",
|
|
224
|
+
"@typescript-eslint/no-redeclare": "error",
|
|
215
225
|
},
|
|
216
226
|
};
|
|
217
227
|
|
|
@@ -220,16 +230,20 @@ const baseConfig = {
|
|
|
220
230
|
rules: {
|
|
221
231
|
"camelcase": "off",
|
|
222
232
|
"comma-dangle": "off",
|
|
233
|
+
"consistent-return": "off",
|
|
223
234
|
"dot-notation": "off",
|
|
224
235
|
"indent": "off",
|
|
225
236
|
"no-constant-condition": "off",
|
|
237
|
+
"no-extra-parens": "off",
|
|
226
238
|
"no-loop-func": "off",
|
|
227
239
|
"no-loss-of-precision": "off",
|
|
240
|
+
"no-redeclare": "off",
|
|
228
241
|
"no-shadow": "off",
|
|
229
242
|
"no-unused-expressions": "off",
|
|
230
243
|
"no-unused-vars": "off",
|
|
231
244
|
"no-use-before-define": "off",
|
|
232
245
|
"object-curly-spacing": "off",
|
|
246
|
+
"space-infix-ops": "off",
|
|
233
247
|
},
|
|
234
248
|
overrides: [
|
|
235
249
|
{
|
package/dist/typescript.mjs
CHANGED
|
@@ -105,6 +105,13 @@ const settings = {
|
|
|
105
105
|
ignoreVoidOperator: true,
|
|
106
106
|
},
|
|
107
107
|
],
|
|
108
|
+
"@typescript-eslint/no-extra-parens": [
|
|
109
|
+
"error",
|
|
110
|
+
"all",
|
|
111
|
+
{
|
|
112
|
+
nestedBinaryExpressions: false,
|
|
113
|
+
},
|
|
114
|
+
],
|
|
108
115
|
"@typescript-eslint/no-invalid-void-type": "error",
|
|
109
116
|
"@typescript-eslint/no-loop-func": "error",
|
|
110
117
|
"@typescript-eslint/no-loss-of-precision": "error",
|
|
@@ -163,7 +170,7 @@ const settings = {
|
|
|
163
170
|
"@typescript-eslint/prefer-nullish-coalescing": "warn",
|
|
164
171
|
"@typescript-eslint/prefer-optional-chain": "warn",
|
|
165
172
|
"@typescript-eslint/prefer-readonly-parameter-types": [
|
|
166
|
-
"
|
|
173
|
+
"error",
|
|
167
174
|
{
|
|
168
175
|
checkParameterProperties: false,
|
|
169
176
|
ignoreInferredTypes: true,
|
|
@@ -172,7 +179,7 @@ const settings = {
|
|
|
172
179
|
"@typescript-eslint/prefer-regexp-exec": "error",
|
|
173
180
|
"@typescript-eslint/prefer-string-starts-ends-with": "warn",
|
|
174
181
|
"@typescript-eslint/prefer-ts-expect-error": "warn",
|
|
175
|
-
"@typescript-eslint/promise-function-async": "
|
|
182
|
+
"@typescript-eslint/promise-function-async": "off",
|
|
176
183
|
"@typescript-eslint/restrict-plus-operands": [
|
|
177
184
|
"error",
|
|
178
185
|
{
|
|
@@ -188,7 +195,8 @@ const settings = {
|
|
|
188
195
|
allowNumber: true,
|
|
189
196
|
},
|
|
190
197
|
],
|
|
191
|
-
"@typescript-eslint/
|
|
198
|
+
"@typescript-eslint/space-infix-ops": "error",
|
|
199
|
+
"@typescript-eslint/sort-type-union-intersection-members": "off",
|
|
192
200
|
"@typescript-eslint/strict-boolean-expressions": [
|
|
193
201
|
"error",
|
|
194
202
|
{
|
|
@@ -203,6 +211,7 @@ const settings = {
|
|
|
203
211
|
},
|
|
204
212
|
],
|
|
205
213
|
"@typescript-eslint/switch-exhaustiveness-check": "warn",
|
|
214
|
+
"@typescript-eslint/type-annotation-spacing": "error",
|
|
206
215
|
"@typescript-eslint/unbound-method": [
|
|
207
216
|
"error",
|
|
208
217
|
{
|
|
@@ -210,6 +219,7 @@ const settings = {
|
|
|
210
219
|
},
|
|
211
220
|
],
|
|
212
221
|
"@typescript-eslint/unified-signatures": "warn",
|
|
222
|
+
"@typescript-eslint/no-redeclare": "error",
|
|
213
223
|
},
|
|
214
224
|
};
|
|
215
225
|
|
|
@@ -218,16 +228,20 @@ const baseConfig = {
|
|
|
218
228
|
rules: {
|
|
219
229
|
"camelcase": "off",
|
|
220
230
|
"comma-dangle": "off",
|
|
231
|
+
"consistent-return": "off",
|
|
221
232
|
"dot-notation": "off",
|
|
222
233
|
"indent": "off",
|
|
223
234
|
"no-constant-condition": "off",
|
|
235
|
+
"no-extra-parens": "off",
|
|
224
236
|
"no-loop-func": "off",
|
|
225
237
|
"no-loss-of-precision": "off",
|
|
238
|
+
"no-redeclare": "off",
|
|
226
239
|
"no-shadow": "off",
|
|
227
240
|
"no-unused-expressions": "off",
|
|
228
241
|
"no-unused-vars": "off",
|
|
229
242
|
"no-use-before-define": "off",
|
|
230
243
|
"object-curly-spacing": "off",
|
|
244
|
+
"space-infix-ops": "off",
|
|
231
245
|
},
|
|
232
246
|
overrides: [
|
|
233
247
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebeccastevens/eslint-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "My ESLint shareable config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint config"
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"import": "./dist/modern.mjs",
|
|
25
25
|
"require": "./dist/modern.cjs"
|
|
26
26
|
},
|
|
27
|
+
"./script": {
|
|
28
|
+
"import": "./dist/script.mjs",
|
|
29
|
+
"require": "./dist/script.cjs"
|
|
30
|
+
},
|
|
27
31
|
"./typescript": {
|
|
28
32
|
"import": "./dist/typescript.mjs",
|
|
29
33
|
"require": "./dist/typescript.cjs"
|
|
@@ -55,56 +59,56 @@
|
|
|
55
59
|
"deepmerge-ts": "^1.0.1"
|
|
56
60
|
},
|
|
57
61
|
"devDependencies": {
|
|
58
|
-
"@commitlint/cli": "^
|
|
59
|
-
"@commitlint/config-conventional": "^13.
|
|
60
|
-
"@rollup/plugin-commonjs": "^
|
|
62
|
+
"@commitlint/cli": "^14.1.0",
|
|
63
|
+
"@commitlint/config-conventional": "^13.2.0",
|
|
64
|
+
"@rollup/plugin-commonjs": "^21.0.0",
|
|
61
65
|
"@rollup/plugin-node-resolve": "^13.0.4",
|
|
62
|
-
"@rollup/plugin-typescript": "^8.
|
|
63
|
-
"@semantic-release/changelog": "^
|
|
64
|
-
"@semantic-release/commit-analyzer": "^
|
|
65
|
-
"@semantic-release/git": "^
|
|
66
|
-
"@semantic-release/github": "^
|
|
67
|
-
"@semantic-release/npm": "^
|
|
68
|
-
"@semantic-release/release-notes-generator": "^
|
|
69
|
-
"@types/eslint": "
|
|
70
|
-
"@types/node": "
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
72
|
-
"@typescript-eslint/parser": "^
|
|
66
|
+
"@rollup/plugin-typescript": "^8.3.0",
|
|
67
|
+
"@semantic-release/changelog": "^6.0.0",
|
|
68
|
+
"@semantic-release/commit-analyzer": "^9.0.1",
|
|
69
|
+
"@semantic-release/git": "^10.0.0",
|
|
70
|
+
"@semantic-release/github": "^8.0.1",
|
|
71
|
+
"@semantic-release/npm": "^8.0.1",
|
|
72
|
+
"@semantic-release/release-notes-generator": "^10.0.2",
|
|
73
|
+
"@types/eslint": "^7.28.1",
|
|
74
|
+
"@types/node": "^16.11.1",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
76
|
+
"@typescript-eslint/parser": "^5.0.0",
|
|
73
77
|
"commitizen": "^4.2.4",
|
|
74
|
-
"cspell": "^5.
|
|
78
|
+
"cspell": "^5.12.3",
|
|
75
79
|
"cz-conventional-changelog": "^3.3.0",
|
|
76
|
-
"eslint": "^
|
|
80
|
+
"eslint": "^8.0.0",
|
|
77
81
|
"eslint-config-prettier": "^8.3.0",
|
|
78
82
|
"eslint-import-resolver-typescript": "^2.3.0",
|
|
79
83
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
80
|
-
"eslint-plugin-functional": "^
|
|
81
|
-
"eslint-plugin-import": "^2.
|
|
82
|
-
"eslint-plugin-jsdoc": "^
|
|
84
|
+
"eslint-plugin-functional": "^4.0.0",
|
|
85
|
+
"eslint-plugin-import": "^2.25.2",
|
|
86
|
+
"eslint-plugin-jsdoc": "^37.0.3",
|
|
83
87
|
"eslint-plugin-markdown": "^2.2.0",
|
|
84
88
|
"eslint-plugin-node": "^11.1.0",
|
|
85
89
|
"eslint-plugin-optimize-regex": "^1.2.0",
|
|
86
90
|
"eslint-plugin-prettier": "^4.0.0",
|
|
87
91
|
"eslint-plugin-promise": "^5.1.0",
|
|
88
|
-
"eslint-plugin-sonarjs": "^0.
|
|
89
|
-
"eslint-plugin-unicorn": "^
|
|
92
|
+
"eslint-plugin-sonarjs": "^0.11.0",
|
|
93
|
+
"eslint-plugin-unicorn": "^39.0.0",
|
|
90
94
|
"husky": "^7.0.2",
|
|
91
|
-
"lint-staged": "^11.
|
|
92
|
-
"markdownlint-cli": "^0.
|
|
95
|
+
"lint-staged": "^11.2.3",
|
|
96
|
+
"markdownlint-cli": "^0.30.0",
|
|
93
97
|
"nyc": "^15.1.0",
|
|
94
|
-
"prettier": "^2.4.
|
|
98
|
+
"prettier": "^2.4.1",
|
|
95
99
|
"rimraf": "^3.0.2",
|
|
96
100
|
"rollup": "^2.56.3",
|
|
97
101
|
"rollup-plugin-auto-external": "^2.0.0",
|
|
98
|
-
"semantic-release": "^
|
|
99
|
-
"ts-node": "^10.
|
|
102
|
+
"semantic-release": "^18.0.0",
|
|
103
|
+
"ts-node": "^10.3.0",
|
|
100
104
|
"tsconfig-paths": "^3.11.0",
|
|
101
105
|
"tslib": "^2.3.1",
|
|
102
|
-
"typescript": "^4.4.
|
|
106
|
+
"typescript": "^4.4.4"
|
|
103
107
|
},
|
|
104
108
|
"peerDependencies": {
|
|
105
109
|
"@typescript-eslint/eslint-plugin": "*",
|
|
106
110
|
"@typescript-eslint/parser": "*",
|
|
107
|
-
"eslint": ">=
|
|
111
|
+
"eslint": ">=8.0.0",
|
|
108
112
|
"eslint-import-resolver-typescript": "*",
|
|
109
113
|
"eslint-plugin-eslint-comments": "*",
|
|
110
114
|
"eslint-plugin-functional": "*",
|
|
@@ -117,6 +121,6 @@
|
|
|
117
121
|
"eslint-plugin-unicorn": "*"
|
|
118
122
|
},
|
|
119
123
|
"engines": {
|
|
120
|
-
"node": "
|
|
124
|
+
"node": "^14.17.0 || >=16.0.0"
|
|
121
125
|
}
|
|
122
126
|
}
|