@pob/eslint-config 59.6.0 → 59.8.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 +20 -0
- package/lib/_base.js +1 -0
- package/lib/node/commonjs.js +2 -0
- package/lib/node/module.js +2 -0
- package/lib/plugins/unicorn.js +12 -9
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [59.8.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v59.7.0...v59.8.0) (2025-03-09)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* update typescript ([090972e](https://github.com/christophehurpeau/eslint-config-pob/commit/090972ef3c80511454a8608890d33133dbc3570a))
|
|
11
|
+
|
|
12
|
+
Version bump for dependency: @pob/eslint-plugin
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [59.7.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v59.6.0...v59.7.0) (2025-02-17)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add rule forbid-non-native-node-imports ([0fde6ee](https://github.com/christophehurpeau/eslint-config-pob/commit/0fde6ee308683df6f3804616a216bb7d70969700))
|
|
20
|
+
* enable reportUnusedInlineConfigs ([4b2db24](https://github.com/christophehurpeau/eslint-config-pob/commit/4b2db24350cd5a3ce31a65dc37fd5d01bf3f666e))
|
|
21
|
+
* update eslint-plugin-unicorn ([c8c18f2](https://github.com/christophehurpeau/eslint-config-pob/commit/c8c18f25dde42b9b69d0178d876c4eebe4cce017))
|
|
22
|
+
|
|
23
|
+
Version bump for dependency: @pob/eslint-plugin
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [59.6.0](https://github.com/christophehurpeau/eslint-config-pob/compare/v59.5.1...v59.6.0) (2025-02-06)
|
|
7
27
|
|
|
8
28
|
### Features
|
package/lib/_base.js
CHANGED
package/lib/node/commonjs.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import pobPlugin from "@pob/eslint-plugin";
|
|
1
2
|
import nodePlugin from "eslint-plugin-n";
|
|
2
3
|
import { overrideRules } from "./_base.js";
|
|
3
4
|
|
|
4
5
|
export default [
|
|
5
6
|
nodePlugin.configs["flat/recommended-script"],
|
|
7
|
+
pobPlugin.configs.node,
|
|
6
8
|
{
|
|
7
9
|
name: "@pob/eslint-config/node/commonjs",
|
|
8
10
|
rules: {
|
package/lib/node/module.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import pobPlugin from "@pob/eslint-plugin";
|
|
1
2
|
import nodePlugin from "eslint-plugin-n";
|
|
2
3
|
import { overrideRules } from "./_base.js";
|
|
3
4
|
|
|
4
5
|
export default [
|
|
5
6
|
nodePlugin.configs["flat/recommended-module"],
|
|
7
|
+
pobPlugin.configs.node,
|
|
6
8
|
{
|
|
7
9
|
name: "@pob/eslint-config/node/module",
|
|
8
10
|
rules: {
|
package/lib/plugins/unicorn.js
CHANGED
|
@@ -29,9 +29,6 @@ export default [
|
|
|
29
29
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/escape-case.md
|
|
30
30
|
"unicorn/escape-case": "error",
|
|
31
31
|
|
|
32
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-instanceof-array.md
|
|
33
|
-
"unicorn/no-instanceof-array": "error",
|
|
34
|
-
|
|
35
32
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-new-buffer.md
|
|
36
33
|
"unicorn/no-new-buffer": "error",
|
|
37
34
|
|
|
@@ -50,9 +47,6 @@ export default [
|
|
|
50
47
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-callback-reference.md
|
|
51
48
|
"unicorn/no-array-callback-reference": "off",
|
|
52
49
|
|
|
53
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/import-index.md
|
|
54
|
-
"unicorn/import-index": "error",
|
|
55
|
-
|
|
56
50
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/new-for-builtins.md
|
|
57
51
|
"unicorn/new-for-builtins": "error",
|
|
58
52
|
|
|
@@ -240,9 +234,6 @@ export default [
|
|
|
240
234
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-prototype-methods.md
|
|
241
235
|
"unicorn/prefer-prototype-methods": "error",
|
|
242
236
|
|
|
243
|
-
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-object-has-own.md
|
|
244
|
-
"unicorn/prefer-object-has-own": "error",
|
|
245
|
-
|
|
246
237
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-method-this-argument.md
|
|
247
238
|
"unicorn/no-array-method-this-argument": "error",
|
|
248
239
|
|
|
@@ -345,6 +336,18 @@ export default [
|
|
|
345
336
|
|
|
346
337
|
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-existence-index-check.md
|
|
347
338
|
"unicorn/consistent-existence-index-check": "error",
|
|
339
|
+
|
|
340
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-date-clone.md
|
|
341
|
+
"unicorn/consistent-date-clone": "error",
|
|
342
|
+
|
|
343
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-assert.md
|
|
344
|
+
"unicorn/consistent-assert": "error",
|
|
345
|
+
|
|
346
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-instanceof-builtins.md
|
|
347
|
+
"unicorn/no-instanceof-builtins": "error",
|
|
348
|
+
|
|
349
|
+
// https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-accessor-recursion.md
|
|
350
|
+
"unicorn/no-accessor-recursion": "error",
|
|
348
351
|
},
|
|
349
352
|
},
|
|
350
353
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/eslint-config",
|
|
3
|
-
"version": "59.
|
|
3
|
+
"version": "59.8.0",
|
|
4
4
|
"description": "eslint config files",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (http://christophe.hurpeau.com/)",
|
|
@@ -40,24 +40,24 @@
|
|
|
40
40
|
"pob": {},
|
|
41
41
|
"prettier": "@pob/root/prettier-config",
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"eslint": "^9.
|
|
43
|
+
"eslint": "^9.20.1"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@eslint/js": "^9.16.0",
|
|
47
47
|
"@eslint/json": "^0.10.0",
|
|
48
|
-
"@pob/eslint-plugin": "59.
|
|
48
|
+
"@pob/eslint-plugin": "59.8.0",
|
|
49
49
|
"confusing-browser-globals": "^1.0.11",
|
|
50
50
|
"eslint-plugin-import": "^2.31.0",
|
|
51
51
|
"eslint-plugin-n": "^17.15.1",
|
|
52
52
|
"eslint-plugin-regexp": "^2.7.0",
|
|
53
|
-
"eslint-plugin-unicorn": "^
|
|
53
|
+
"eslint-plugin-unicorn": "^57.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"eslint": "9.
|
|
56
|
+
"eslint": "9.20.1",
|
|
57
57
|
"eslint-plugin-import": "2.31.0",
|
|
58
58
|
"eslint-plugin-n": "17.15.1",
|
|
59
59
|
"eslint-plugin-regexp": "2.7.0",
|
|
60
|
-
"eslint-plugin-unicorn": "
|
|
61
|
-
"typescript": "5.
|
|
60
|
+
"eslint-plugin-unicorn": "57.0.0",
|
|
61
|
+
"typescript": "5.8.2"
|
|
62
62
|
}
|
|
63
63
|
}
|