@rebeccastevens/eslint-config 1.7.8 → 2.0.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/dist/modern.cjs +7 -32
- package/dist/modern.mjs +7 -32
- package/dist/typescript.cjs +8 -2
- package/dist/typescript.mjs +8 -2
- package/package.json +26 -26
package/dist/modern.cjs
CHANGED
|
@@ -444,7 +444,7 @@ const rules$1 = {
|
|
|
444
444
|
allowElseIf: false,
|
|
445
445
|
},
|
|
446
446
|
],
|
|
447
|
-
"no-empty-function": "
|
|
447
|
+
"no-empty-function": "off",
|
|
448
448
|
"no-eq-null": "error",
|
|
449
449
|
"no-eval": "error",
|
|
450
450
|
"no-extend-native": "error",
|
|
@@ -998,44 +998,18 @@ const settings$5 = {
|
|
|
998
998
|
parserOptions: {
|
|
999
999
|
project: null,
|
|
1000
1000
|
},
|
|
1001
|
-
extends: [
|
|
1001
|
+
extends: [
|
|
1002
|
+
"plugin:markdown/recommended",
|
|
1003
|
+
"plugin:@typescript-eslint/disable-type-checked",
|
|
1004
|
+
"plugin:functional/off",
|
|
1005
|
+
],
|
|
1002
1006
|
rules: {
|
|
1003
|
-
"@typescript-eslint/await-thenable": "off",
|
|
1004
1007
|
"@typescript-eslint/consistent-type-definitions": "off",
|
|
1005
|
-
"@typescript-eslint/dot-notation": "off",
|
|
1006
1008
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
1007
|
-
"@typescript-eslint/naming-convention": "off",
|
|
1008
|
-
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
1009
1009
|
"@typescript-eslint/no-empty-function": "off",
|
|
1010
1010
|
"@typescript-eslint/no-explicit-any": "off",
|
|
1011
|
-
"@typescript-eslint/no-floating-promises": "off",
|
|
1012
|
-
"@typescript-eslint/no-for-in-array": "off",
|
|
1013
|
-
"@typescript-eslint/no-implied-eval": "off",
|
|
1014
|
-
"@typescript-eslint/no-misused-promises": "off",
|
|
1015
|
-
"@typescript-eslint/no-throw-literal": "off",
|
|
1016
|
-
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
1017
|
-
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
1018
|
-
"@typescript-eslint/no-unsafe-argument": "off",
|
|
1019
|
-
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
1020
|
-
"@typescript-eslint/no-unsafe-call": "off",
|
|
1021
|
-
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
1022
|
-
"@typescript-eslint/no-unsafe-return": "off",
|
|
1023
1011
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
1024
1012
|
"@typescript-eslint/no-unused-vars": "off",
|
|
1025
|
-
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
1026
|
-
"@typescript-eslint/prefer-includes": "off",
|
|
1027
|
-
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
1028
|
-
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
1029
|
-
"@typescript-eslint/prefer-readonly": "off",
|
|
1030
|
-
"@typescript-eslint/prefer-regexp-exec": "off",
|
|
1031
|
-
"@typescript-eslint/prefer-string-starts-ends-with": "off",
|
|
1032
|
-
"@typescript-eslint/promise-function-async": "off",
|
|
1033
|
-
"@typescript-eslint/require-await": "off",
|
|
1034
|
-
"@typescript-eslint/restrict-plus-operands": "off",
|
|
1035
|
-
"@typescript-eslint/restrict-template-expressions": "off",
|
|
1036
|
-
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
1037
|
-
"@typescript-eslint/switch-exhaustiveness-check": "off",
|
|
1038
|
-
"@typescript-eslint/unbound-method": "off",
|
|
1039
1013
|
"import/no-unresolved": "off",
|
|
1040
1014
|
"init-declarations": "off",
|
|
1041
1015
|
"jsdoc/require-jsdoc": "off",
|
|
@@ -1202,6 +1176,7 @@ const settings = {
|
|
|
1202
1176
|
"unicorn/no-abusive-eslint-disable": "off",
|
|
1203
1177
|
"unicorn/no-array-callback-reference": "off",
|
|
1204
1178
|
"unicorn/no-array-reduce": "off",
|
|
1179
|
+
"unicorn/no-empty-file": "off",
|
|
1205
1180
|
"unicorn/no-nested-ternary": "off",
|
|
1206
1181
|
"unicorn/no-null": "off",
|
|
1207
1182
|
// "n/no-process-exit" covers this.
|
package/dist/modern.mjs
CHANGED
|
@@ -442,7 +442,7 @@ const rules$1 = {
|
|
|
442
442
|
allowElseIf: false,
|
|
443
443
|
},
|
|
444
444
|
],
|
|
445
|
-
"no-empty-function": "
|
|
445
|
+
"no-empty-function": "off",
|
|
446
446
|
"no-eq-null": "error",
|
|
447
447
|
"no-eval": "error",
|
|
448
448
|
"no-extend-native": "error",
|
|
@@ -996,44 +996,18 @@ const settings$5 = {
|
|
|
996
996
|
parserOptions: {
|
|
997
997
|
project: null,
|
|
998
998
|
},
|
|
999
|
-
extends: [
|
|
999
|
+
extends: [
|
|
1000
|
+
"plugin:markdown/recommended",
|
|
1001
|
+
"plugin:@typescript-eslint/disable-type-checked",
|
|
1002
|
+
"plugin:functional/off",
|
|
1003
|
+
],
|
|
1000
1004
|
rules: {
|
|
1001
|
-
"@typescript-eslint/await-thenable": "off",
|
|
1002
1005
|
"@typescript-eslint/consistent-type-definitions": "off",
|
|
1003
|
-
"@typescript-eslint/dot-notation": "off",
|
|
1004
1006
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
1005
|
-
"@typescript-eslint/naming-convention": "off",
|
|
1006
|
-
"@typescript-eslint/no-confusing-void-expression": "off",
|
|
1007
1007
|
"@typescript-eslint/no-empty-function": "off",
|
|
1008
1008
|
"@typescript-eslint/no-explicit-any": "off",
|
|
1009
|
-
"@typescript-eslint/no-floating-promises": "off",
|
|
1010
|
-
"@typescript-eslint/no-for-in-array": "off",
|
|
1011
|
-
"@typescript-eslint/no-implied-eval": "off",
|
|
1012
|
-
"@typescript-eslint/no-misused-promises": "off",
|
|
1013
|
-
"@typescript-eslint/no-throw-literal": "off",
|
|
1014
|
-
"@typescript-eslint/no-unnecessary-condition": "off",
|
|
1015
|
-
"@typescript-eslint/no-unnecessary-type-assertion": "off",
|
|
1016
|
-
"@typescript-eslint/no-unsafe-argument": "off",
|
|
1017
|
-
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
1018
|
-
"@typescript-eslint/no-unsafe-call": "off",
|
|
1019
|
-
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
1020
|
-
"@typescript-eslint/no-unsafe-return": "off",
|
|
1021
1009
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
1022
1010
|
"@typescript-eslint/no-unused-vars": "off",
|
|
1023
|
-
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
1024
|
-
"@typescript-eslint/prefer-includes": "off",
|
|
1025
|
-
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
|
1026
|
-
"@typescript-eslint/prefer-readonly-parameter-types": "off",
|
|
1027
|
-
"@typescript-eslint/prefer-readonly": "off",
|
|
1028
|
-
"@typescript-eslint/prefer-regexp-exec": "off",
|
|
1029
|
-
"@typescript-eslint/prefer-string-starts-ends-with": "off",
|
|
1030
|
-
"@typescript-eslint/promise-function-async": "off",
|
|
1031
|
-
"@typescript-eslint/require-await": "off",
|
|
1032
|
-
"@typescript-eslint/restrict-plus-operands": "off",
|
|
1033
|
-
"@typescript-eslint/restrict-template-expressions": "off",
|
|
1034
|
-
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
1035
|
-
"@typescript-eslint/switch-exhaustiveness-check": "off",
|
|
1036
|
-
"@typescript-eslint/unbound-method": "off",
|
|
1037
1011
|
"import/no-unresolved": "off",
|
|
1038
1012
|
"init-declarations": "off",
|
|
1039
1013
|
"jsdoc/require-jsdoc": "off",
|
|
@@ -1200,6 +1174,7 @@ const settings = {
|
|
|
1200
1174
|
"unicorn/no-abusive-eslint-disable": "off",
|
|
1201
1175
|
"unicorn/no-array-callback-reference": "off",
|
|
1202
1176
|
"unicorn/no-array-reduce": "off",
|
|
1177
|
+
"unicorn/no-empty-file": "off",
|
|
1203
1178
|
"unicorn/no-nested-ternary": "off",
|
|
1204
1179
|
"unicorn/no-null": "off",
|
|
1205
1180
|
// "n/no-process-exit" covers this.
|
package/dist/typescript.cjs
CHANGED
|
@@ -94,7 +94,11 @@ const settings = {
|
|
|
94
94
|
extends: [
|
|
95
95
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
96
96
|
"plugin:@typescript-eslint/recommended",
|
|
97
|
-
"plugin:@typescript-eslint/recommended-
|
|
97
|
+
"plugin:@typescript-eslint/recommended-type-checked",
|
|
98
|
+
"plugin:@typescript-eslint/strict",
|
|
99
|
+
"plugin:@typescript-eslint/strict-type-checked",
|
|
100
|
+
"plugin:@typescript-eslint/stylistic",
|
|
101
|
+
"plugin:@typescript-eslint/stylistic-type-checked",
|
|
98
102
|
],
|
|
99
103
|
rules: {
|
|
100
104
|
"@typescript-eslint/array-type": [
|
|
@@ -259,6 +263,7 @@ const settings = {
|
|
|
259
263
|
format: null,
|
|
260
264
|
},
|
|
261
265
|
],
|
|
266
|
+
"@typescript-eslint/no-meaningless-void-operator": "off",
|
|
262
267
|
"@typescript-eslint/no-confusing-void-expression": [
|
|
263
268
|
"error",
|
|
264
269
|
{
|
|
@@ -294,6 +299,7 @@ const settings = {
|
|
|
294
299
|
allowConstantLoopConditions: true,
|
|
295
300
|
},
|
|
296
301
|
],
|
|
302
|
+
"@typescript-eslint/no-explicit-any": "warn",
|
|
297
303
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
298
304
|
"@typescript-eslint/no-unsafe-argument": "warn",
|
|
299
305
|
"@typescript-eslint/no-unsafe-assignment": "warn",
|
|
@@ -343,7 +349,7 @@ const settings = {
|
|
|
343
349
|
"@typescript-eslint/restrict-plus-operands": [
|
|
344
350
|
"error",
|
|
345
351
|
{
|
|
346
|
-
|
|
352
|
+
skipCompoundAssignments: true,
|
|
347
353
|
},
|
|
348
354
|
],
|
|
349
355
|
"@typescript-eslint/restrict-template-expressions": [
|
package/dist/typescript.mjs
CHANGED
|
@@ -92,7 +92,11 @@ const settings = {
|
|
|
92
92
|
extends: [
|
|
93
93
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
94
94
|
"plugin:@typescript-eslint/recommended",
|
|
95
|
-
"plugin:@typescript-eslint/recommended-
|
|
95
|
+
"plugin:@typescript-eslint/recommended-type-checked",
|
|
96
|
+
"plugin:@typescript-eslint/strict",
|
|
97
|
+
"plugin:@typescript-eslint/strict-type-checked",
|
|
98
|
+
"plugin:@typescript-eslint/stylistic",
|
|
99
|
+
"plugin:@typescript-eslint/stylistic-type-checked",
|
|
96
100
|
],
|
|
97
101
|
rules: {
|
|
98
102
|
"@typescript-eslint/array-type": [
|
|
@@ -257,6 +261,7 @@ const settings = {
|
|
|
257
261
|
format: null,
|
|
258
262
|
},
|
|
259
263
|
],
|
|
264
|
+
"@typescript-eslint/no-meaningless-void-operator": "off",
|
|
260
265
|
"@typescript-eslint/no-confusing-void-expression": [
|
|
261
266
|
"error",
|
|
262
267
|
{
|
|
@@ -292,6 +297,7 @@ const settings = {
|
|
|
292
297
|
allowConstantLoopConditions: true,
|
|
293
298
|
},
|
|
294
299
|
],
|
|
300
|
+
"@typescript-eslint/no-explicit-any": "warn",
|
|
295
301
|
"@typescript-eslint/no-unnecessary-type-constraint": "error",
|
|
296
302
|
"@typescript-eslint/no-unsafe-argument": "warn",
|
|
297
303
|
"@typescript-eslint/no-unsafe-assignment": "warn",
|
|
@@ -341,7 +347,7 @@ const settings = {
|
|
|
341
347
|
"@typescript-eslint/restrict-plus-operands": [
|
|
342
348
|
"error",
|
|
343
349
|
{
|
|
344
|
-
|
|
350
|
+
skipCompoundAssignments: true,
|
|
345
351
|
},
|
|
346
352
|
],
|
|
347
353
|
"@typescript-eslint/restrict-template-expressions": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebeccastevens/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "My ESLint shareable config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint config"
|
|
@@ -61,66 +61,66 @@
|
|
|
61
61
|
"prepare": "husky install",
|
|
62
62
|
"release": "semantic-release",
|
|
63
63
|
"test": "echo no tests",
|
|
64
|
-
"type-check": "tsc --noEmit"
|
|
64
|
+
"type-check": "tsc --noEmit --skipLibCheck"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"deepmerge-ts": "^5.1.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@commitlint/cli": "17.6.
|
|
71
|
-
"@commitlint/config-conventional": "17.6.
|
|
70
|
+
"@commitlint/cli": "17.6.6",
|
|
71
|
+
"@commitlint/config-conventional": "17.6.6",
|
|
72
72
|
"@cspell/dict-cryptocurrencies": "3.0.1",
|
|
73
|
-
"@rollup/plugin-commonjs": "25.0.
|
|
73
|
+
"@rollup/plugin-commonjs": "25.0.2",
|
|
74
74
|
"@rollup/plugin-node-resolve": "15.1.0",
|
|
75
|
-
"@rollup/plugin-typescript": "11.1.
|
|
75
|
+
"@rollup/plugin-typescript": "11.1.2",
|
|
76
76
|
"@semantic-release/changelog": "6.0.3",
|
|
77
77
|
"@semantic-release/commit-analyzer": "10.0.1",
|
|
78
78
|
"@semantic-release/git": "10.0.1",
|
|
79
79
|
"@semantic-release/github": "9.0.3",
|
|
80
80
|
"@semantic-release/npm": "10.0.4",
|
|
81
|
-
"@semantic-release/release-notes-generator": "11.0.
|
|
82
|
-
"@types/eslint": "8.
|
|
81
|
+
"@semantic-release/release-notes-generator": "11.0.4",
|
|
82
|
+
"@types/eslint": "8.44.0",
|
|
83
83
|
"@types/eslint-config-prettier": "6.11.0",
|
|
84
84
|
"@types/eslint-plugin-prettier": "3.1.0",
|
|
85
|
-
"@types/node": "
|
|
85
|
+
"@types/node": "18.11.9",
|
|
86
86
|
"@types/rollup-plugin-auto-external": "2.0.2",
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "
|
|
88
|
-
"@typescript-eslint/parser": "
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "6.0.0",
|
|
88
|
+
"@typescript-eslint/parser": "6.0.0",
|
|
89
89
|
"commitizen": "4.3.0",
|
|
90
90
|
"cspell": "6.31.1",
|
|
91
91
|
"cz-conventional-changelog": "3.3.0",
|
|
92
|
-
"eslint": "8.
|
|
92
|
+
"eslint": "8.45.0",
|
|
93
93
|
"eslint-config-prettier": "8.8.0",
|
|
94
94
|
"eslint-import-resolver-typescript": "3.5.5",
|
|
95
95
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
96
96
|
"eslint-plugin-functional": "5.0.8",
|
|
97
97
|
"eslint-plugin-import": "2.27.5",
|
|
98
|
-
"eslint-plugin-jsdoc": "46.
|
|
98
|
+
"eslint-plugin-jsdoc": "46.4.3",
|
|
99
99
|
"eslint-plugin-markdown": "3.0.0",
|
|
100
|
-
"eslint-plugin-n": "16.0.
|
|
100
|
+
"eslint-plugin-n": "16.0.1",
|
|
101
101
|
"eslint-plugin-optimize-regex": "1.2.1",
|
|
102
|
-
"eslint-plugin-prettier": "
|
|
102
|
+
"eslint-plugin-prettier": "5.0.0",
|
|
103
103
|
"eslint-plugin-promise": "6.1.1",
|
|
104
104
|
"eslint-plugin-sonarjs": "0.19.0",
|
|
105
105
|
"eslint-plugin-unicorn": "47.0.0",
|
|
106
106
|
"husky": "8.0.3",
|
|
107
|
-
"knip": "2.
|
|
108
|
-
"lint-staged": "13.2.
|
|
109
|
-
"markdownlint-cli": "0.
|
|
110
|
-
"prettier": "
|
|
111
|
-
"prettier-plugin-packagejson": "2.4.
|
|
107
|
+
"knip": "2.15.5",
|
|
108
|
+
"lint-staged": "13.2.3",
|
|
109
|
+
"markdownlint-cli": "0.35.0",
|
|
110
|
+
"prettier": "3.0.0",
|
|
111
|
+
"prettier-plugin-packagejson": "2.4.5",
|
|
112
112
|
"rimraf": "5.0.1",
|
|
113
|
-
"rollup": "3.
|
|
113
|
+
"rollup": "3.26.2",
|
|
114
114
|
"rollup-plugin-auto-external": "2.0.0",
|
|
115
|
-
"semantic-release": "21.0.
|
|
115
|
+
"semantic-release": "21.0.7",
|
|
116
116
|
"ts-node": "10.9.1",
|
|
117
117
|
"tsconfig-paths": "4.2.0",
|
|
118
|
-
"tslib": "2.
|
|
119
|
-
"typescript": "5.1.
|
|
118
|
+
"tslib": "2.6.0",
|
|
119
|
+
"typescript": "5.1.6"
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
|
-
"@typescript-eslint/eslint-plugin": "
|
|
123
|
-
"@typescript-eslint/parser": "
|
|
122
|
+
"@typescript-eslint/eslint-plugin": ">=6.0.0",
|
|
123
|
+
"@typescript-eslint/parser": ">=6.0.0",
|
|
124
124
|
"eslint": ">=8.24.0",
|
|
125
125
|
"eslint-import-resolver-typescript": "*",
|
|
126
126
|
"eslint-plugin-eslint-comments": "*",
|