@alexlit/config-eslint 66.2.0 → 67.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/.eslintrc.js +3 -3
- package/package.json +10 -8
- package/plugins/tanstack-query.js +5 -0
- package/plugins/vitest.js +17 -0
package/.eslintrc.js
CHANGED
|
@@ -10,9 +10,7 @@ module.exports = defineConfig({
|
|
|
10
10
|
},
|
|
11
11
|
|
|
12
12
|
extends: [
|
|
13
|
-
/**
|
|
14
|
-
* @see [eslint-config-airbnb-base](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base)
|
|
15
|
-
*/
|
|
13
|
+
/** @see [eslint-config-airbnb-base](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base) */
|
|
16
14
|
'airbnb-base',
|
|
17
15
|
|
|
18
16
|
/* plugins */
|
|
@@ -46,11 +44,13 @@ module.exports = defineConfig({
|
|
|
46
44
|
'./plugins/sort-keys-fix',
|
|
47
45
|
'./plugins/spellcheck',
|
|
48
46
|
'./plugins/sql',
|
|
47
|
+
'./plugins/tanstack-query',
|
|
49
48
|
'./plugins/testing-library',
|
|
50
49
|
'./plugins/typescript-sort-keys',
|
|
51
50
|
'./plugins/typescript/index',
|
|
52
51
|
'./plugins/unicorn',
|
|
53
52
|
'./plugins/unused-imports',
|
|
53
|
+
'./plugins/vitest',
|
|
54
54
|
'./plugins/vue',
|
|
55
55
|
'./plugins/vue-i18n',
|
|
56
56
|
'./plugins/vuejs-accessibility',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alexlit/config-eslint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "67.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "eslint config",
|
|
6
6
|
"keywords": [
|
|
@@ -40,12 +40,13 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@intlify/eslint-plugin-vue-i18n": "^2.0.0",
|
|
43
|
-
"@
|
|
44
|
-
"@typescript-eslint/
|
|
45
|
-
"eslint": "^
|
|
43
|
+
"@tanstack/eslint-plugin-query": "^4.36.1",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
|
45
|
+
"@typescript-eslint/parser": "^6.7.5",
|
|
46
|
+
"eslint": "^8.51.0",
|
|
46
47
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
47
48
|
"eslint-config-prettier": "^9.0.0",
|
|
48
|
-
"eslint-define-config": "^1.
|
|
49
|
+
"eslint-define-config": "^1.24.1",
|
|
49
50
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
50
51
|
"eslint-plugin-array-func": "^4.0.0",
|
|
51
52
|
"eslint-plugin-compat": "^4.2.0",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"eslint-plugin-no-secrets": "^0.8.9",
|
|
68
69
|
"eslint-plugin-no-use-extend-native": "^0.5.0",
|
|
69
70
|
"eslint-plugin-node": "^11.1.0",
|
|
70
|
-
"eslint-plugin-prettier": "^5.0.
|
|
71
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
71
72
|
"eslint-plugin-promise": "^6.1.1",
|
|
72
73
|
"eslint-plugin-regexp": "^1.15.0",
|
|
73
74
|
"eslint-plugin-security": "^1.7.1",
|
|
@@ -78,10 +79,11 @@
|
|
|
78
79
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
79
80
|
"eslint-plugin-spellcheck": "^0.0.20",
|
|
80
81
|
"eslint-plugin-sql": "^2.5.0",
|
|
81
|
-
"eslint-plugin-testing-library": "^6.0
|
|
82
|
+
"eslint-plugin-testing-library": "^6.1.0",
|
|
82
83
|
"eslint-plugin-typescript-sort-keys": "^3.0.0",
|
|
83
84
|
"eslint-plugin-unicorn": "^48.0.1",
|
|
84
85
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
86
|
+
"eslint-plugin-vitest": "^0.3.2",
|
|
85
87
|
"eslint-plugin-vue": "^9.17.0",
|
|
86
88
|
"eslint-plugin-vuejs-accessibility": "^2.2.0",
|
|
87
89
|
"eslint-plugin-wc": "^2.0.4",
|
|
@@ -89,7 +91,7 @@
|
|
|
89
91
|
"typescript": "^5.2.2"
|
|
90
92
|
},
|
|
91
93
|
"devDependencies": {
|
|
92
|
-
"@alexlit/lint-kit": "^
|
|
94
|
+
"@alexlit/lint-kit": "^102.3.0",
|
|
93
95
|
"prettier": "^3.0.3"
|
|
94
96
|
},
|
|
95
97
|
"engines": {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** @see [eslint-plugin-vitest](https://github.com/veritem/eslint-plugin-vitest) */
|
|
2
|
+
module.exports = {
|
|
3
|
+
overrides: [
|
|
4
|
+
{
|
|
5
|
+
extends: ['plugin:vitest/all'],
|
|
6
|
+
files: ['*.{test,spec}.{js,ts}'],
|
|
7
|
+
plugins: ['vitest'],
|
|
8
|
+
|
|
9
|
+
rules: {
|
|
10
|
+
'vitest/no-conditional-in-test': 'off',
|
|
11
|
+
'vitest/no-conditional-tests': 'off',
|
|
12
|
+
'vitest/no-hooks': 'off',
|
|
13
|
+
'vitest/require-to-throw-message': 'off',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
};
|