@ntnyq/eslint-config 2.0.0-beta.4 → 2.0.0-beta.5
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/index.d.ts +26 -0
- package/lib/ts.js +1 -1
- package/package.json +6 -5
package/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { FlatESLintConfig } from 'eslint-define-config'
|
|
2
|
+
|
|
3
|
+
// Config
|
|
4
|
+
export type ts = FlatESLintConfig[]
|
|
5
|
+
export type yml = FlatESLintConfig[]
|
|
6
|
+
export type vue = FlatESLintConfig[]
|
|
7
|
+
export type astro = FlatESLintConfig[]
|
|
8
|
+
export type prettier = FlatESLintConfig[]
|
|
9
|
+
export type markdown = FlatESLintConfig[]
|
|
10
|
+
export type jsonc = FlatESLintConfig[]
|
|
11
|
+
export type pkgOrder = FlatESLintConfig[]
|
|
12
|
+
export type imports = FlatESLintConfig[]
|
|
13
|
+
export type js = FlatESLintConfig[]
|
|
14
|
+
export type jsx = FlatESLintConfig[]
|
|
15
|
+
export type unicorn = FlatESLintConfig[]
|
|
16
|
+
export type eslintComments = FlatESLintConfig[]
|
|
17
|
+
|
|
18
|
+
// Presets
|
|
19
|
+
export type basic = FlatESLintConfig[]
|
|
20
|
+
|
|
21
|
+
export type all = FlatESLintConfig[]
|
|
22
|
+
|
|
23
|
+
export type ntnyq = (
|
|
24
|
+
config?: FlatESLintConfig[],
|
|
25
|
+
options?: { vue?: boolean; prettier?: boolean; typescript?: boolean },
|
|
26
|
+
) => FlatESLintConfig[]
|
package/lib/ts.js
CHANGED
|
@@ -19,7 +19,7 @@ export const ts = [
|
|
|
19
19
|
},
|
|
20
20
|
rules: {
|
|
21
21
|
...tsPlugin.configs['eslint-recommended'].overrides[0].rules,
|
|
22
|
-
...tsPlugin.configs
|
|
22
|
+
...tsPlugin.configs.recommended.rules,
|
|
23
23
|
|
|
24
24
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
25
25
|
'@typescript-eslint/no-redeclare': 'error',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.5",
|
|
5
5
|
"packageManager": "pnpm@8.1.1",
|
|
6
6
|
"description": "",
|
|
7
7
|
"keywords": [],
|
|
@@ -10,16 +10,17 @@
|
|
|
10
10
|
"name": "ntnyq",
|
|
11
11
|
"email": "ntnyq13@gmail.com"
|
|
12
12
|
},
|
|
13
|
-
"main": "./index.js",
|
|
14
|
-
"module": "./index.js",
|
|
15
|
-
"types": "./index.d.ts",
|
|
16
13
|
"exports": {
|
|
17
14
|
"types": "./index.d.ts",
|
|
18
15
|
"require": "./index.js",
|
|
19
16
|
"import": "./index.js"
|
|
20
17
|
},
|
|
18
|
+
"main": "./index.js",
|
|
19
|
+
"module": "./index.js",
|
|
20
|
+
"types": "./index.d.ts",
|
|
21
21
|
"files": [
|
|
22
22
|
"index.js",
|
|
23
|
+
"index.d.ts",
|
|
23
24
|
"lib"
|
|
24
25
|
],
|
|
25
26
|
"publishConfig": {
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
"@typescript-eslint/parser": "^5.57.1",
|
|
35
36
|
"astro-eslint-parser": "^0.13.2",
|
|
36
37
|
"eslint-config-prettier": "^8.8.0",
|
|
38
|
+
"eslint-define-config": "^1.17.0",
|
|
37
39
|
"eslint-plugin-astro": "^0.26.1",
|
|
38
40
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
39
41
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -55,7 +57,6 @@
|
|
|
55
57
|
"@types/node": "^18.15.11",
|
|
56
58
|
"bumpp": "^9.1.0",
|
|
57
59
|
"eslint": "^8.37.0",
|
|
58
|
-
"eslint-define-config": "^1.17.0",
|
|
59
60
|
"husky": "^8.0.3",
|
|
60
61
|
"nano-staged": "^0.8.0",
|
|
61
62
|
"typescript": "5.0.3"
|