eslint-config-sukka 2.0.2 → 3.0.1
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/README.md +1 -1
- package/node.js +3 -3
- package/package.json +3 -3
- package/typescript.js +3 -0
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Add following snippets to your ESLint configuration files.
|
|
|
18
18
|
### Node.js Project
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
$ npm i -D eslint-plugin-
|
|
21
|
+
$ npm i -D eslint-plugin-n eslint-plugin-import@npm:eslint-plugin-i@latest
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
```json
|
package/node.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
module.exports = {
|
|
6
6
|
extends: [
|
|
7
7
|
'eslint:recommended',
|
|
8
|
-
'plugin:
|
|
8
|
+
'plugin:n/recommended',
|
|
9
9
|
'plugin:import/recommended'
|
|
10
10
|
],
|
|
11
|
-
plugins: ['
|
|
11
|
+
plugins: ['n', '@fluffyfox'],
|
|
12
12
|
rules: {
|
|
13
13
|
'accessor-pairs': 'off',
|
|
14
14
|
'array-callback-return': ['error', { allowImplicit: true }],
|
|
@@ -452,7 +452,7 @@ module.exports = {
|
|
|
452
452
|
'no-process-exit': 'off',
|
|
453
453
|
'no-restricted-modules': 'off',
|
|
454
454
|
'no-sync': 'off',
|
|
455
|
-
'
|
|
455
|
+
'n/no-deprecated-api': [
|
|
456
456
|
'error',
|
|
457
457
|
{ ignoreModuleItems: ['url.parse', 'url.resolve'] }
|
|
458
458
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-sukka",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "ESLint config for Sukka projects",
|
|
5
5
|
"files": [
|
|
6
6
|
"rules",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"@fastify/deepmerge": "^1.3.0",
|
|
14
14
|
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
15
15
|
"confusing-browser-globals": "^1.0.11",
|
|
16
|
-
"eslint": "^8.
|
|
16
|
+
"eslint": "^8.45.0",
|
|
17
17
|
"eslint-plugin-import": "npm:eslint-plugin-i@^2.27.5-3",
|
|
18
|
-
"eslint-plugin-
|
|
18
|
+
"eslint-plugin-n": "^16.0.1",
|
|
19
19
|
"picocolors": "^1.0.0",
|
|
20
20
|
"prettier": "^2.8.7",
|
|
21
21
|
"typescript": "^5.0.4"
|
package/typescript.js
CHANGED
|
@@ -507,6 +507,9 @@ module.exports = {
|
|
|
507
507
|
'@typescript-eslint/prefer-for-of': 'off',
|
|
508
508
|
'@typescript-eslint/prefer-function-type': 'off',
|
|
509
509
|
'@typescript-eslint/consistent-indexed-object-style': 'off',
|
|
510
|
+
'@typescript-eslint/ban-types': 'off',
|
|
511
|
+
'@typescript-eslint/no-unsafe-assignment': 'off',
|
|
512
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
510
513
|
'@fluffyfox/array/no-unneeded-flat-map': 'error',
|
|
511
514
|
'@fluffyfox/array/prefer-from': 'error',
|
|
512
515
|
'@fluffyfox/browser/no-set-html': 'off',
|