@ntnyq/eslint-config 2.0.0 → 2.1.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/README.md +5 -6
- package/dist/index.cjs +12 -1
- package/dist/index.js +12 -1
- package/package.json +26 -24
package/README.md
CHANGED
|
@@ -3,23 +3,22 @@
|
|
|
3
3
|
> Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier.
|
|
4
4
|
|
|
5
5
|
[](https://github.com/ntnyq/eslint-config/actions)
|
|
6
|
-
[](https://www.npmjs.com/package/@ntnyq/eslint-config/v/latest)
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
pnpm add @ntnyq/eslint-config
|
|
11
|
+
pnpm add @ntnyq/eslint-config -D
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
## Usage
|
|
15
15
|
|
|
16
|
-
Config in `eslint.config.js`:
|
|
16
|
+
Config in `eslint.config.{[cm]?js}`:
|
|
17
17
|
|
|
18
18
|
```js
|
|
19
|
-
import {
|
|
20
|
-
import { all } from '@ntnyq/eslint-config'
|
|
19
|
+
import { ntnyq } from '@ntnyq/eslint-config'
|
|
21
20
|
|
|
22
|
-
export default
|
|
21
|
+
export default ntnyq()
|
|
23
22
|
```
|
|
24
23
|
|
|
25
24
|
Make sure to config `"eslint.experimental.useFlatConfig": true` in `.vscode/settings.json`
|
package/dist/index.cjs
CHANGED
|
@@ -801,7 +801,18 @@ var typescriptCore = import_typescript_eslint.default.config({
|
|
|
801
801
|
}
|
|
802
802
|
},
|
|
803
803
|
rules: {
|
|
804
|
-
"@typescript-eslint/no-unused-vars":
|
|
804
|
+
"@typescript-eslint/no-unused-vars": [
|
|
805
|
+
"error",
|
|
806
|
+
{
|
|
807
|
+
args: "all",
|
|
808
|
+
argsIgnorePattern: "^_",
|
|
809
|
+
caughtErrors: "all",
|
|
810
|
+
caughtErrorsIgnorePattern: "^_",
|
|
811
|
+
destructuredArrayIgnorePattern: "^_",
|
|
812
|
+
varsIgnorePattern: "^_",
|
|
813
|
+
ignoreRestSiblings: true
|
|
814
|
+
}
|
|
815
|
+
],
|
|
805
816
|
"@typescript-eslint/no-redeclare": "error",
|
|
806
817
|
"@typescript-eslint/consistent-type-imports": [
|
|
807
818
|
"error",
|
package/dist/index.js
CHANGED
|
@@ -699,7 +699,18 @@ var typescriptCore = tseslint.config({
|
|
|
699
699
|
}
|
|
700
700
|
},
|
|
701
701
|
rules: {
|
|
702
|
-
"@typescript-eslint/no-unused-vars":
|
|
702
|
+
"@typescript-eslint/no-unused-vars": [
|
|
703
|
+
"error",
|
|
704
|
+
{
|
|
705
|
+
args: "all",
|
|
706
|
+
argsIgnorePattern: "^_",
|
|
707
|
+
caughtErrors: "all",
|
|
708
|
+
caughtErrorsIgnorePattern: "^_",
|
|
709
|
+
destructuredArrayIgnorePattern: "^_",
|
|
710
|
+
varsIgnorePattern: "^_",
|
|
711
|
+
ignoreRestSiblings: true
|
|
712
|
+
}
|
|
713
|
+
],
|
|
703
714
|
"@typescript-eslint/no-redeclare": "error",
|
|
704
715
|
"@typescript-eslint/consistent-type-imports": [
|
|
705
716
|
"error",
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
|
+
"packageManager": "pnpm@9.2.0",
|
|
5
6
|
"description": "ESLint flat config of ntnyq",
|
|
6
7
|
"keywords": [
|
|
7
8
|
"eslint",
|
|
@@ -41,48 +42,49 @@
|
|
|
41
42
|
"prepare": "husky",
|
|
42
43
|
"release": "run-s release:check release:version",
|
|
43
44
|
"release:check": "run-s clean build lint typecheck",
|
|
44
|
-
"release:version": "bumpp && npm publish
|
|
45
|
+
"release:version": "bumpp && npm publish",
|
|
45
46
|
"typecheck": "tsc --noEmit"
|
|
46
47
|
},
|
|
47
48
|
"publishConfig": {
|
|
48
49
|
"access": "public"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
|
-
"eslint": "^
|
|
52
|
+
"eslint": "^9.0.0"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"@eslint/js": "^9.
|
|
55
|
-
"@unocss/eslint-plugin": "^0.
|
|
55
|
+
"@eslint/js": "^9.4.0",
|
|
56
|
+
"@unocss/eslint-plugin": "^0.60.4",
|
|
56
57
|
"eslint-config-prettier": "^9.1.0",
|
|
57
58
|
"eslint-define-config": "^2.1.0",
|
|
58
59
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
59
|
-
"eslint-plugin-import-x": "^0.5.
|
|
60
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
61
|
-
"eslint-plugin-jsonc": "^2.
|
|
62
|
-
"eslint-plugin-markdown": "^
|
|
63
|
-
"eslint-plugin-n": "^17.
|
|
60
|
+
"eslint-plugin-import-x": "^0.5.1",
|
|
61
|
+
"eslint-plugin-jsdoc": "^48.2.8",
|
|
62
|
+
"eslint-plugin-jsonc": "^2.16.0",
|
|
63
|
+
"eslint-plugin-markdown": "^5.0.0",
|
|
64
|
+
"eslint-plugin-n": "^17.8.1",
|
|
64
65
|
"eslint-plugin-prettier": "^5.1.3",
|
|
65
|
-
"eslint-plugin-unicorn": "^
|
|
66
|
-
"eslint-plugin-
|
|
66
|
+
"eslint-plugin-unicorn": "^53.0.0",
|
|
67
|
+
"eslint-plugin-unused-imports": "^4.0.0",
|
|
68
|
+
"eslint-plugin-vue": "^9.26.0",
|
|
67
69
|
"eslint-plugin-yml": "^1.14.0",
|
|
68
|
-
"globals": "^15.
|
|
70
|
+
"globals": "^15.4.0",
|
|
69
71
|
"jsonc-eslint-parser": "^2.4.0",
|
|
70
72
|
"local-pkg": "^0.5.0",
|
|
71
|
-
"prettier": "^3.
|
|
72
|
-
"typescript-eslint": "
|
|
73
|
-
"vue-eslint-parser": "^9.4.
|
|
74
|
-
"yaml-eslint-parser": "^1.2.
|
|
73
|
+
"prettier": "^3.3.1",
|
|
74
|
+
"typescript-eslint": "rc-v8",
|
|
75
|
+
"vue-eslint-parser": "^9.4.3",
|
|
76
|
+
"yaml-eslint-parser": "^1.2.3"
|
|
75
77
|
},
|
|
76
78
|
"devDependencies": {
|
|
77
79
|
"@ntnyq/prettier-config": "^1.21.2",
|
|
78
|
-
"@types/node": "^20.
|
|
79
|
-
"bumpp": "^9.4.
|
|
80
|
-
"eslint": "^9.
|
|
80
|
+
"@types/node": "^20.14.2",
|
|
81
|
+
"bumpp": "^9.4.1",
|
|
82
|
+
"eslint": "^9.4.0",
|
|
81
83
|
"husky": "^9.0.11",
|
|
82
84
|
"nano-staged": "^0.8.0",
|
|
83
|
-
"npm-run-all2": "^6.
|
|
84
|
-
"rimraf": "^5.0.
|
|
85
|
-
"tsup": "^8.0
|
|
85
|
+
"npm-run-all2": "^6.2.0",
|
|
86
|
+
"rimraf": "^5.0.7",
|
|
87
|
+
"tsup": "^8.1.0",
|
|
86
88
|
"typescript": "^5.4.5"
|
|
87
89
|
},
|
|
88
90
|
"engines": {
|
|
@@ -90,6 +92,6 @@
|
|
|
90
92
|
},
|
|
91
93
|
"prettier": "@ntnyq/prettier-config",
|
|
92
94
|
"nano-staged": {
|
|
93
|
-
"*.{js,ts,json,jsonc,md,yaml,yml}": "
|
|
95
|
+
"*.{js,ts,json,jsonc,md,yaml,yml}": "eslint --fix"
|
|
94
96
|
}
|
|
95
97
|
}
|