@1stg/eslint-config 8.1.1 → 8.2.1
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 +16 -0
- package/overrides.js +15 -0
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 8.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#314](https://github.com/1stG/configs/pull/314) [`1bba857`](https://github.com/1stG/configs/commit/1bba8576d40659072ae11bdba41f31ddcb8d0043) Thanks [@JounQin](https://github.com/JounQin)! - fix(eslint-config): disable `no-require-imports` for `.cts` files
|
|
8
|
+
|
|
9
|
+
## 8.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#312](https://github.com/1stG/configs/pull/312) [`9e288a5`](https://github.com/1stG/configs/commit/9e288a5c03738bbcfe9afd6801304e226c4838e5) Thanks [@JounQin](https://github.com/JounQin)! - feat(eslint-config): add `vitest` support
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#312](https://github.com/1stG/configs/pull/312) [`9e288a5`](https://github.com/1stG/configs/commit/9e288a5c03738bbcfe9afd6801304e226c4838e5) Thanks [@JounQin](https://github.com/JounQin)! - chore: bump `@pkgr/core` and `@pkgr/utils`
|
|
18
|
+
|
|
3
19
|
## 8.1.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/overrides.js
CHANGED
|
@@ -11,6 +11,7 @@ import babelParser from '@babel/eslint-parser'
|
|
|
11
11
|
import babel from '@babel/eslint-plugin'
|
|
12
12
|
import react_ from '@eslint-react/eslint-plugin'
|
|
13
13
|
import { isPkgAvailable, tryFile, tryPkg } from '@pkgr/utils'
|
|
14
|
+
import vitest_ from '@vitest/eslint-plugin'
|
|
14
15
|
import angular_ from 'angular-eslint'
|
|
15
16
|
import angularTemplateParser from 'angular-eslint-template-parser'
|
|
16
17
|
import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript'
|
|
@@ -297,6 +298,12 @@ export const ts = tseslint.config(
|
|
|
297
298
|
'no-magic-numbers': 0,
|
|
298
299
|
},
|
|
299
300
|
},
|
|
301
|
+
{
|
|
302
|
+
files: ['**/*.cts'],
|
|
303
|
+
rules: {
|
|
304
|
+
'@typescript-eslint/no-require-imports': 0,
|
|
305
|
+
},
|
|
306
|
+
},
|
|
300
307
|
)
|
|
301
308
|
|
|
302
309
|
/**
|
|
@@ -539,6 +546,13 @@ export const jest = tseslint.config({
|
|
|
539
546
|
rules: test.rules,
|
|
540
547
|
})
|
|
541
548
|
|
|
549
|
+
export const vitest = tseslint.config({
|
|
550
|
+
name: '@1stg/vitest',
|
|
551
|
+
files: ['**/*.{spec,test}.{js,jsx,ts,tsx}'],
|
|
552
|
+
extends: [vitest_.configs.recommended],
|
|
553
|
+
rules: test.rules,
|
|
554
|
+
})
|
|
555
|
+
|
|
542
556
|
/**
|
|
543
557
|
* @satisfies {TSESLint.FlatConfig.Config}
|
|
544
558
|
*/
|
|
@@ -626,6 +640,7 @@ export const overrides = tseslint.config(
|
|
|
626
640
|
md,
|
|
627
641
|
mdx,
|
|
628
642
|
isPkgAvailable('jest') ? jest : [],
|
|
643
|
+
isPkgAvailable('vitest') ? vitest : [],
|
|
629
644
|
test,
|
|
630
645
|
scripts,
|
|
631
646
|
stories,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1stg/eslint-config",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Personal but Shareable ESLint Configuration for all 1stG.me projects",
|
|
6
6
|
"repository": "https://github.com/1stG/configs.git",
|
|
@@ -28,12 +28,13 @@
|
|
|
28
28
|
"@babel/eslint-parser": "^7.26.10",
|
|
29
29
|
"@babel/eslint-plugin": "^7.26.10",
|
|
30
30
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
31
|
-
"@eslint-react/eslint-plugin": "^1.37.
|
|
32
|
-
"@eslint/js": "^9.
|
|
33
|
-
"@pkgr/utils": "^3.
|
|
31
|
+
"@eslint-react/eslint-plugin": "^1.37.3",
|
|
32
|
+
"@eslint/js": "^9.23.0",
|
|
33
|
+
"@pkgr/utils": "^3.1.0",
|
|
34
34
|
"@typescript-eslint/eslint-plugin": "^8.27.0",
|
|
35
35
|
"@typescript-eslint/parser": "^8.27.0",
|
|
36
|
-
"
|
|
36
|
+
"@vitest/eslint-plugin": "^1.1.38",
|
|
37
|
+
"angular-eslint": "^19.3.0",
|
|
37
38
|
"angular-eslint-template-parser": "^0.1.3",
|
|
38
39
|
"eslint-config-prettier": "^10.1.1",
|
|
39
40
|
"eslint-import-resolver-typescript": "^4.2.2",
|