@coko/lint 3.0.0-alpha.5 → 3.0.0-alpha.6
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/CHANGELOG.md +7 -0
- package/package.json +2 -1
- package/src/eslint.mjs +32 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [3.0.0-alpha.6](https://gitlab.coko.foundation/cokoapps/lint/compare/v3.0.0-alpha.5...v3.0.0-alpha.6) (2025-11-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **eslint:** add vitest plugin ([92a0f86](https://gitlab.coko.foundation/cokoapps/lint/commit/92a0f864f91b7a67b4c65de841757223290e1b63))
|
|
11
|
+
|
|
5
12
|
## [3.0.0-alpha.5](https://gitlab.coko.foundation/cokoapps/lint/compare/v3.0.0-alpha.4...v3.0.0-alpha.5) (2025-11-06)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coko/lint",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.6",
|
|
4
4
|
"description": "Linter configurations and dependencies for coko's projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lint",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@commitlint/config-conventional": "^20.0.0",
|
|
43
43
|
"@eslint/eslintrc": "^3.3.1",
|
|
44
44
|
"@eslint/js": "^9.38.0",
|
|
45
|
+
"@vitest/eslint-plugin": "^1.4.1",
|
|
45
46
|
"commander": "^14.0.1",
|
|
46
47
|
"commitizen": "^4.3.1",
|
|
47
48
|
"conventional-commit-types": "^3.0.0",
|
package/src/eslint.mjs
CHANGED
|
@@ -10,6 +10,7 @@ import tseslint from 'typescript-eslint'
|
|
|
10
10
|
|
|
11
11
|
import nodePlugin from 'eslint-plugin-n'
|
|
12
12
|
import importPlugin from 'eslint-plugin-import'
|
|
13
|
+
import vitest from '@vitest/eslint-plugin'
|
|
13
14
|
// import jest from 'eslint-plugin-jest'
|
|
14
15
|
// import cypressPlugin from 'eslint-plugin-cypress'
|
|
15
16
|
|
|
@@ -120,11 +121,14 @@ const commonRules = {
|
|
|
120
121
|
// storybook
|
|
121
122
|
'.storybook/*',
|
|
122
123
|
'**/stories/**/*.js',
|
|
124
|
+
'**/stories/**/*.ts',
|
|
123
125
|
|
|
124
126
|
// tests
|
|
125
127
|
'cypress/**',
|
|
126
128
|
'**/*.spec.js',
|
|
129
|
+
'**/*.spec.ts',
|
|
127
130
|
'**/*.test.js',
|
|
131
|
+
'**/*.test.ts',
|
|
128
132
|
'**/__tests__/**/*',
|
|
129
133
|
'**/vitest.config.*',
|
|
130
134
|
|
|
@@ -133,12 +137,25 @@ const commonRules = {
|
|
|
133
137
|
|
|
134
138
|
// configs
|
|
135
139
|
'.commitlintrc.js',
|
|
140
|
+
'.commitlintrc.ts',
|
|
141
|
+
'.commitlintrc.mjs',
|
|
136
142
|
'.cz-config.js',
|
|
143
|
+
'.cz-config.ts',
|
|
144
|
+
'.cz-config.mjs',
|
|
137
145
|
'.jest.config.js',
|
|
146
|
+
'.jest.config.ts',
|
|
147
|
+
'.jest.config.mjs',
|
|
138
148
|
'.lintstagedrc.js',
|
|
149
|
+
'.lintstagedrc.ts',
|
|
150
|
+
'.lintstagedrc.mjs',
|
|
139
151
|
'.prettierrc.js',
|
|
152
|
+
'.prettierrc.ts',
|
|
153
|
+
'.prettierrc.mjs',
|
|
140
154
|
'.stylelintrc.js',
|
|
155
|
+
'.stylelintrc.ts',
|
|
156
|
+
'.stylelintrc.mjs',
|
|
141
157
|
'eslint.config.js',
|
|
158
|
+
'eslint.config.ts',
|
|
142
159
|
'eslint.config.mjs',
|
|
143
160
|
|
|
144
161
|
// other
|
|
@@ -239,6 +256,21 @@ const server = [
|
|
|
239
256
|
},
|
|
240
257
|
},
|
|
241
258
|
|
|
259
|
+
{
|
|
260
|
+
files: ['**/__tests__/**/*.test.ts'],
|
|
261
|
+
plugins: {
|
|
262
|
+
vitest,
|
|
263
|
+
},
|
|
264
|
+
settings: {
|
|
265
|
+
vitest: {
|
|
266
|
+
typecheck: true,
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
rules: {
|
|
270
|
+
...vitest.configs.recommended.rules,
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
|
|
242
274
|
globalIgnores([
|
|
243
275
|
'**/_build',
|
|
244
276
|
'**/dist',
|