@vida0905/eslint-config 0.5.0 → 1.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/dist/index.cjs +2 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -0
- package/package.json +15 -15
package/dist/index.cjs
CHANGED
|
@@ -64,6 +64,8 @@ async function pinia(options = {}) {
|
|
|
64
64
|
}],
|
|
65
65
|
"pinia/require-setup-store-properties-export": "warn",
|
|
66
66
|
"pinia/no-duplicate-store-ids": "error",
|
|
67
|
+
"pinia/no-return-global-properties": "error",
|
|
68
|
+
"pinia/no-store-to-refs-in-store": "error",
|
|
67
69
|
...overrides2
|
|
68
70
|
}
|
|
69
71
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -24,6 +24,11 @@ interface RuleOptions {
|
|
|
24
24
|
* @see https://github.com/lisilinhart/eslint-plugin-pinia/blob/main/docs/rules/no-return-global-properties.md
|
|
25
25
|
*/
|
|
26
26
|
'pinia/no-return-global-properties'?: Linter.RuleEntry<[]>
|
|
27
|
+
/**
|
|
28
|
+
* Disallow use of storeToRefs inside defineStore
|
|
29
|
+
* @see https://github.com/lisilinhart/eslint-plugin-pinia/blob/main/docs/rules/no-store-to-refs-in-store.md
|
|
30
|
+
*/
|
|
31
|
+
'pinia/no-store-to-refs-in-store'?: Linter.RuleEntry<[]>
|
|
27
32
|
/**
|
|
28
33
|
* Encourages defining each store in a separate file.
|
|
29
34
|
* @see https://github.com/lisilinhart/eslint-plugin-pinia/blob/main/docs/rules/prefer-single-store-per-file.md
|
package/dist/index.d.ts
CHANGED
|
@@ -24,6 +24,11 @@ interface RuleOptions {
|
|
|
24
24
|
* @see https://github.com/lisilinhart/eslint-plugin-pinia/blob/main/docs/rules/no-return-global-properties.md
|
|
25
25
|
*/
|
|
26
26
|
'pinia/no-return-global-properties'?: Linter.RuleEntry<[]>
|
|
27
|
+
/**
|
|
28
|
+
* Disallow use of storeToRefs inside defineStore
|
|
29
|
+
* @see https://github.com/lisilinhart/eslint-plugin-pinia/blob/main/docs/rules/no-store-to-refs-in-store.md
|
|
30
|
+
*/
|
|
31
|
+
'pinia/no-store-to-refs-in-store'?: Linter.RuleEntry<[]>
|
|
27
32
|
/**
|
|
28
33
|
* Encourages defining each store in a separate file.
|
|
29
34
|
* @see https://github.com/lisilinhart/eslint-plugin-pinia/blob/main/docs/rules/prefer-single-store-per-file.md
|
package/dist/index.js
CHANGED
|
@@ -27,6 +27,8 @@ async function pinia(options = {}) {
|
|
|
27
27
|
}],
|
|
28
28
|
"pinia/require-setup-store-properties-export": "warn",
|
|
29
29
|
"pinia/no-duplicate-store-ids": "error",
|
|
30
|
+
"pinia/no-return-global-properties": "error",
|
|
31
|
+
"pinia/no-store-to-refs-in-store": "error",
|
|
30
32
|
...overrides2
|
|
31
33
|
}
|
|
32
34
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vida0905/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
5
|
-
"packageManager": "pnpm@9.
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"packageManager": "pnpm@9.11.0",
|
|
6
6
|
"description": "Vida Xie's ESLint Config",
|
|
7
7
|
"author": "Vida Xie <vida_2020@163.com> (https://github.com/9romise/)",
|
|
8
8
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@unocss/eslint-plugin": ">=0.50.0",
|
|
45
|
-
"eslint": ">=
|
|
45
|
+
"eslint": ">=9.10.0",
|
|
46
46
|
"eslint-plugin-format": ">=0.1.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependenciesMeta": {
|
|
@@ -54,22 +54,22 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@antfu/eslint-config": "^
|
|
58
|
-
"eslint-import-resolver-oxc": "^0.
|
|
59
|
-
"eslint-plugin-pinia": "^0.
|
|
57
|
+
"@antfu/eslint-config": "^3.7.3",
|
|
58
|
+
"eslint-import-resolver-oxc": "^0.3.0",
|
|
59
|
+
"eslint-plugin-pinia": "^0.4.1",
|
|
60
60
|
"local-pkg": "^0.5.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@eslint/config-inspector": "^0.5.
|
|
64
|
-
"@types/node": "^22.
|
|
65
|
-
"bumpp": "^9.
|
|
66
|
-
"eslint": "^9.
|
|
67
|
-
"eslint-typegen": "^0.3.
|
|
68
|
-
"lint-staged": "^15.2.
|
|
63
|
+
"@eslint/config-inspector": "^0.5.4",
|
|
64
|
+
"@types/node": "^22.7.3",
|
|
65
|
+
"bumpp": "^9.5.2",
|
|
66
|
+
"eslint": "^9.11.1",
|
|
67
|
+
"eslint-typegen": "^0.3.2",
|
|
68
|
+
"lint-staged": "^15.2.10",
|
|
69
69
|
"simple-git-hooks": "^2.11.1",
|
|
70
|
-
"tsup": "^8.
|
|
71
|
-
"tsx": "^4.
|
|
72
|
-
"typescript": "^5.
|
|
70
|
+
"tsup": "^8.3.0",
|
|
71
|
+
"tsx": "^4.19.1",
|
|
72
|
+
"typescript": "^5.6.2"
|
|
73
73
|
},
|
|
74
74
|
"simple-git-hooks": {
|
|
75
75
|
"pre-commit": "pnpm lint-staged"
|