@1stg/eslint-config 8.1.0 → 8.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#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
8
+
9
+ ### Patch Changes
10
+
11
+ - [#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`
12
+
13
+ ## 8.1.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [#309](https://github.com/1stG/configs/pull/309) [`5dbb419`](https://github.com/1stG/configs/commit/5dbb41960ecca8d1000b006914d37424797e4946) Thanks [@JounQin](https://github.com/JounQin)! - chore(eslint-config): enable `destructuring: all` for `prefer-const`
18
+
19
+ chore: bump all deps
20
+
21
+ - Updated dependencies [[`5dbb419`](https://github.com/1stG/configs/commit/5dbb41960ecca8d1000b006914d37424797e4946)]:
22
+ - @1stg/config@1.0.1
23
+
3
24
  ## 8.1.0
4
25
 
5
26
  ### Minor Changes
package/base.js CHANGED
@@ -128,7 +128,7 @@ export const base = tseslint.config([
128
128
  'n/no-unsupported-features/node-builtins': 0,
129
129
  'n/no-unpublished-import': 0,
130
130
  'n/no-unpublished-require': 0,
131
- 'prefer-const': 2,
131
+ 'prefer-const': [2, { destructuring: 'all' }],
132
132
  'prefer-object-spread': 2,
133
133
  'simple-import-sort/exports': 2,
134
134
  'unicorn/catch-error-name': [
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'
@@ -539,6 +540,13 @@ export const jest = tseslint.config({
539
540
  rules: test.rules,
540
541
  })
541
542
 
543
+ export const vitest = tseslint.config({
544
+ name: '@1stg/vitest',
545
+ files: ['**/*.{spec,test}.{js,jsx,ts,tsx}'],
546
+ extends: [vitest_.configs.recommended],
547
+ rules: test.rules,
548
+ })
549
+
542
550
  /**
543
551
  * @satisfies {TSESLint.FlatConfig.Config}
544
552
  */
@@ -626,6 +634,7 @@ export const overrides = tseslint.config(
626
634
  md,
627
635
  mdx,
628
636
  isPkgAvailable('jest') ? jest : [],
637
+ isPkgAvailable('vitest') ? vitest : [],
629
638
  test,
630
639
  scripts,
631
640
  stories,
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@1stg/eslint-config",
3
- "version": "8.1.0",
3
+ "version": "8.2.0",
4
4
  "type": "module",
5
5
  "description": "Personal but Shareable ESLint Configuration for all 1stG.me projects",
6
- "repository": "git+https://github.com/1stG/configs.git",
6
+ "repository": "https://github.com/1stG/configs.git",
7
7
  "homepage": "https://github.com/1stG/configs/tree/master/packages/eslint-config",
8
- "author": "JounQin (https://www.1stG.me) <admin@1stg.me>",
8
+ "author": "JounQin <admin@1stg.me> (https://www.1stG.me)",
9
9
  "funding": "https://www.patreon.com/1stG",
10
10
  "license": "MIT",
11
11
  "engines": {
@@ -24,21 +24,22 @@
24
24
  "eslint": ">=8.0.0"
25
25
  },
26
26
  "dependencies": {
27
- "@1stg/config": "^1.0.0",
27
+ "@1stg/config": "^1.0.1",
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.36.1",
32
- "@eslint/js": "^9.22.0",
33
- "@pkgr/utils": "^3.0.0",
34
- "@typescript-eslint/eslint-plugin": "^8.26.1",
35
- "@typescript-eslint/parser": "^8.26.1",
36
- "angular-eslint": "^19.2.1",
31
+ "@eslint-react/eslint-plugin": "^1.37.3",
32
+ "@eslint/js": "^9.23.0",
33
+ "@pkgr/utils": "^3.1.0",
34
+ "@typescript-eslint/eslint-plugin": "^8.27.0",
35
+ "@typescript-eslint/parser": "^8.27.0",
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",
40
41
  "eslint-plugin-css": "^0.11.0",
41
- "eslint-plugin-import-x": "^4.9.0",
42
+ "eslint-plugin-import-x": "^4.9.1",
42
43
  "eslint-plugin-jest": "^28.11.0",
43
44
  "eslint-plugin-jsdoc": "^50.6.8",
44
45
  "eslint-plugin-jsonc": "^2.19.1",
@@ -56,7 +57,7 @@
56
57
  "eslint-plugin-vue": "^10.0.0",
57
58
  "eslint-plugin-yml": "^1.17.0",
58
59
  "globals": "^16.0.0",
59
- "typescript-eslint": "^8.26.1"
60
+ "typescript-eslint": "^8.27.0"
60
61
  },
61
62
  "publishConfig": {
62
63
  "access": "public"