@vida0905/eslint-config 0.5.0 → 1.0.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 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,7 +1,7 @@
1
1
  {
2
2
  "name": "@vida0905/eslint-config",
3
3
  "type": "module",
4
- "version": "0.5.0",
4
+ "version": "1.0.0",
5
5
  "packageManager": "pnpm@9.7.0",
6
6
  "description": "Vida Xie's ESLint Config",
7
7
  "author": "Vida Xie <vida_2020@163.com> (https://github.com/9romise/)",
@@ -54,21 +54,21 @@
54
54
  }
55
55
  },
56
56
  "dependencies": {
57
- "@antfu/eslint-config": "^2.25.0",
58
- "eslint-import-resolver-oxc": "^0.2.0",
59
- "eslint-plugin-pinia": "^0.2.0",
57
+ "@antfu/eslint-config": "^3.0.0",
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.2",
64
- "@types/node": "^22.1.0",
65
- "bumpp": "^9.4.2",
66
- "eslint": "^9.8.0",
67
- "eslint-typegen": "^0.3.0",
68
- "lint-staged": "^15.2.8",
63
+ "@eslint/config-inspector": "^0.5.4",
64
+ "@types/node": "^22.5.2",
65
+ "bumpp": "^9.5.2",
66
+ "eslint": "^9.9.1",
67
+ "eslint-typegen": "^0.3.1",
68
+ "lint-staged": "^15.2.10",
69
69
  "simple-git-hooks": "^2.11.1",
70
70
  "tsup": "^8.2.4",
71
- "tsx": "^4.17.0",
71
+ "tsx": "^4.19.0",
72
72
  "typescript": "^5.5.4"
73
73
  },
74
74
  "simple-git-hooks": {