@pob/eslint-config 67.12.0 → 67.14.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/lib/base/commonjs.js
CHANGED
package/lib/languages/json.js
CHANGED
|
@@ -11,6 +11,8 @@ export default [
|
|
|
11
11
|
{
|
|
12
12
|
// name: "@pob/eslint-config/base/languages/json/json",
|
|
13
13
|
files: ["**/*.json"],
|
|
14
|
+
// package.json files use the check-package-dependencies/package-json language
|
|
15
|
+
ignores: ["**/package.json"],
|
|
14
16
|
language: "json/json",
|
|
15
17
|
// @ts-ignore
|
|
16
18
|
...json.configs.recommended,
|
|
@@ -166,9 +166,6 @@ export default {
|
|
|
166
166
|
},
|
|
167
167
|
],
|
|
168
168
|
|
|
169
|
-
// https://typescript-eslint.io/rules/sort-type-constituents/
|
|
170
|
-
"@typescript-eslint/sort-type-constituents": "error",
|
|
171
|
-
|
|
172
169
|
// https://typescript-eslint.io/rules/strict-boolean-expressions/
|
|
173
170
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
174
171
|
|
|
@@ -70,9 +70,6 @@ export default {
|
|
|
70
70
|
// https://eslint.org/docs/rules/no-array-constructor
|
|
71
71
|
"no-array-constructor": "error",
|
|
72
72
|
|
|
73
|
-
// https://eslint.org/docs/rules/no-buffer-constructor
|
|
74
|
-
"no-buffer-constructor": "error",
|
|
75
|
-
|
|
76
73
|
// https://eslint.org/docs/rules/no-bitwise
|
|
77
74
|
"no-bitwise": "error",
|
|
78
75
|
|
|
@@ -129,9 +126,6 @@ export default {
|
|
|
129
126
|
// https://eslint.org/docs/rules/no-fallthrough
|
|
130
127
|
"no-fallthrough": "error",
|
|
131
128
|
|
|
132
|
-
// https://eslint.org/docs/rules/no-floating-decimal
|
|
133
|
-
"no-floating-decimal": "error",
|
|
134
|
-
|
|
135
129
|
// https://eslint.org/docs/rules/no-global-assign
|
|
136
130
|
"no-global-assign": "error",
|
|
137
131
|
|
|
@@ -158,27 +152,6 @@ export default {
|
|
|
158
152
|
// https://eslint.org/docs/rules/no-loop-func
|
|
159
153
|
"no-loop-func": "error",
|
|
160
154
|
|
|
161
|
-
// https://eslint.org/docs/rules/no-mixed-operators
|
|
162
|
-
"no-mixed-operators": [
|
|
163
|
-
"error",
|
|
164
|
-
{
|
|
165
|
-
// the list of arithmetic groups disallows mixing `%` and `**`
|
|
166
|
-
// with other arithmetic operators.
|
|
167
|
-
groups: [
|
|
168
|
-
["%", "**"],
|
|
169
|
-
["%", "+"],
|
|
170
|
-
["%", "-"],
|
|
171
|
-
["%", "*"],
|
|
172
|
-
["%", "/"],
|
|
173
|
-
["/", "*"],
|
|
174
|
-
["&", "|", "<<", ">>", ">>>"],
|
|
175
|
-
["==", "!=", "===", "!=="],
|
|
176
|
-
["&&", "||"],
|
|
177
|
-
],
|
|
178
|
-
allowSamePrecedence: false,
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
|
|
182
155
|
// https://eslint.org/docs/rules/no-multi-assign
|
|
183
156
|
"no-multi-assign": "error",
|
|
184
157
|
|
|
@@ -194,12 +167,6 @@ export default {
|
|
|
194
167
|
// https://eslint.org/docs/rules/no-new-func
|
|
195
168
|
"no-new-func": "error",
|
|
196
169
|
|
|
197
|
-
// https://eslint.org/docs/rules/no-new-object
|
|
198
|
-
"no-new-object": "error",
|
|
199
|
-
|
|
200
|
-
// disallow use of new operator with the require function
|
|
201
|
-
"no-new-require": "error",
|
|
202
|
-
|
|
203
170
|
// https://eslint.org/docs/rules/no-new-wrappers
|
|
204
171
|
"no-new-wrappers": "error",
|
|
205
172
|
|
|
@@ -209,6 +176,9 @@ export default {
|
|
|
209
176
|
// https://eslint.org/docs/rules/no-nonoctal-decimal-escape
|
|
210
177
|
"no-nonoctal-decimal-escape": "error",
|
|
211
178
|
|
|
179
|
+
// https://eslint.org/docs/rules/no-object-constructor
|
|
180
|
+
"no-object-constructor": "error",
|
|
181
|
+
|
|
212
182
|
// https://eslint.org/docs/rules/no-octal
|
|
213
183
|
"no-octal": "error",
|
|
214
184
|
|
|
@@ -292,9 +262,6 @@ export default {
|
|
|
292
262
|
// https://eslint.org/docs/rules/no-return-assign
|
|
293
263
|
"no-return-assign": ["error", "always"],
|
|
294
264
|
|
|
295
|
-
// https://eslint.org/docs/rules/no-return-await
|
|
296
|
-
"no-return-await": "error",
|
|
297
|
-
|
|
298
265
|
// https://eslint.org/docs/rules/no-script-url
|
|
299
266
|
"no-script-url": "error",
|
|
300
267
|
|
|
@@ -469,9 +436,6 @@ export default {
|
|
|
469
436
|
// https://eslint.org/docs/rules/symbol-description
|
|
470
437
|
"symbol-description": "error",
|
|
471
438
|
|
|
472
|
-
// https://eslint.org/docs/rules/template-curly-spacing
|
|
473
|
-
"template-curly-spacing": "error",
|
|
474
|
-
|
|
475
439
|
// https://eslint.org/docs/rules/unicode-bom
|
|
476
440
|
"unicode-bom": ["error", "never"],
|
|
477
441
|
|
package/lib/rules/style.js
CHANGED
|
@@ -12,14 +12,6 @@ export default {
|
|
|
12
12
|
// prettier doesn't enforce {} with multiline
|
|
13
13
|
curly: ["warn", "multi-line"],
|
|
14
14
|
|
|
15
|
-
// https://github.com/prettier/eslint-config-prettier#quotes
|
|
16
|
-
// prettier doesn't change backtick to single
|
|
17
|
-
quotes: [
|
|
18
|
-
"warn",
|
|
19
|
-
"double",
|
|
20
|
-
{ avoidEscape: true, allowTemplateLiterals: false },
|
|
21
|
-
],
|
|
22
|
-
|
|
23
15
|
// https://eslint.org/docs/latest/rules/sort-imports ; declaration is sorted using import/order
|
|
24
16
|
"sort-imports": ["error", { ignoreDeclarationSort: true }],
|
|
25
17
|
|
package/oxlint/base.json
CHANGED
|
@@ -202,6 +202,7 @@
|
|
|
202
202
|
"no-new-native-nonconstructor": "error",
|
|
203
203
|
"no-new-wrappers": "error",
|
|
204
204
|
"no-nonoctal-decimal-escape": "error",
|
|
205
|
+
"no-object-constructor": "error",
|
|
205
206
|
"no-obj-calls": "error",
|
|
206
207
|
"no-promise-executor-return": [
|
|
207
208
|
"error",
|
|
@@ -882,6 +883,7 @@
|
|
|
882
883
|
],
|
|
883
884
|
"unicorn/throw-new-error": "error",
|
|
884
885
|
"@pob/forbid-non-native-fetch-import": "error",
|
|
886
|
+
"@pob/no-useless-template-literal": "error",
|
|
885
887
|
"eslint-js/camelcase": [
|
|
886
888
|
"error",
|
|
887
889
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/eslint-config",
|
|
3
|
-
"version": "67.
|
|
3
|
+
"version": "67.14.0",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/christophehurpeau/pob",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@eslint/js": "^10.0.1",
|
|
54
|
-
"@eslint/json": "^
|
|
55
|
-
"@pob/eslint-plugin": "66.
|
|
54
|
+
"@eslint/json": "^2.0.0",
|
|
55
|
+
"@pob/eslint-plugin": "66.7.0",
|
|
56
56
|
"@typescript-eslint/eslint-plugin": "8.63.0",
|
|
57
57
|
"@typescript-eslint/parser": "8.63.0",
|
|
58
58
|
"check-package-dependencies": "^13.2.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@types/node": "24.19.1",
|
|
68
|
-
"eslint": "10.
|
|
68
|
+
"eslint": "10.12.0",
|
|
69
69
|
"eslint-plugin-import-x": "4.17.1",
|
|
70
70
|
"eslint-plugin-n": "17.24.0",
|
|
71
71
|
"eslint-plugin-regexp": "3.1.0",
|