@1stg/eslint-config 8.3.1 → 8.4.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,27 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#329](https://github.com/1stG/configs/pull/329) [`c08b298`](https://github.com/1stG/configs/commit/c08b2989d7e3765dd3853fe5461d9662e5b3a05e) Thanks [@JounQin](https://github.com/JounQin)! - feat: enable `globals` for `jest` and `vitest`, ignore `.type-coverage` and `.vercel`
8
+
9
+ ### Patch Changes
10
+
11
+ - [#329](https://github.com/1stG/configs/pull/329) [`c08b298`](https://github.com/1stG/configs/commit/c08b2989d7e3765dd3853fe5461d9662e5b3a05e) Thanks [@JounQin](https://github.com/JounQin)! - chore: housekeeping, bump all (dev) deps
12
+
13
+ - Updated dependencies [[`c08b298`](https://github.com/1stG/configs/commit/c08b2989d7e3765dd3853fe5461d9662e5b3a05e)]:
14
+ - @1stg/config@1.0.3
15
+
16
+ ## 8.3.2
17
+
18
+ ### Patch Changes
19
+
20
+ - [#325](https://github.com/1stG/configs/pull/325) [`cf9c358`](https://github.com/1stG/configs/commit/cf9c358e875667944a35be9dcb9a99d70df8de32) Thanks [@JounQin](https://github.com/JounQin)! - fix(eslint-config): enable `curly` correctly due to `config-prettier`
21
+
22
+ - Updated dependencies [[`cf9c358`](https://github.com/1stG/configs/commit/cf9c358e875667944a35be9dcb9a99d70df8de32)]:
23
+ - @1stg/config@1.0.2
24
+
3
25
  ## 8.3.1
4
26
 
5
27
  ### Patch Changes
package/README.md CHANGED
@@ -2,17 +2,19 @@
2
2
 
3
3
  Personal but Shareable ESLint Configuration for all 1stG.me projects
4
4
 
5
+ [![Sponsors](https://raw.githubusercontent.com/1stG/static/master/sponsors.svg)](https://github.com/sponsors/JounQin)
6
+
5
7
  ## Sponsors
6
8
 
7
- | 1stG | RxTS | UnTS |
8
- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
9
- | [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |
9
+ | 1stG | RxTS | UnTS |
10
+ | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
11
+ | [![1stG Open Collective sponsors](https://opencollective.com/1stG/organizations.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective sponsors](https://opencollective.com/rxts/organizations.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective sponsors](https://opencollective.com/unts/organizations.svg)](https://opencollective.com/unts) |
10
12
 
11
13
  ## Backers
12
14
 
13
- | 1stG | RxTS | UnTS |
14
- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
15
- | [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |
15
+ | 1stG | RxTS | UnTS |
16
+ | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
17
+ | [![1stG Open Collective backers](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |
16
18
 
17
19
  ## Changelog
18
20
 
@@ -22,6 +24,6 @@ Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.m
22
24
 
23
25
  [MIT][] © [JounQin][]@[1stG.me][]
24
26
 
25
- [1stg.me]: https://www.1stg.me
26
- [jounqin]: https://GitHub.com/JounQin
27
- [mit]: http://opensource.org/licenses/MIT
27
+ [1stG.me]: https://www.1stG.me
28
+ [JounQin]: https://github.com/JounQin
29
+ [MIT]: http://opensource.org/licenses/MIT
package/base.js CHANGED
@@ -176,6 +176,8 @@ export const base = tseslint.config([
176
176
  '**/package-lock.json',
177
177
  '**/pnpm-lock.yaml',
178
178
  '**/auto-imports.d.ts',
179
+ '**/.type-coverage',
180
+ '**/.vercel',
179
181
  '**/.yarn',
180
182
  '!.github',
181
183
  '!.*.{cjs,js,mjs,cts,ts,mts}',
package/overrides.js CHANGED
@@ -25,6 +25,7 @@ import * as reactHooks_ from 'eslint-plugin-react-hooks'
25
25
  import toml_ from 'eslint-plugin-toml'
26
26
  import vue_ from 'eslint-plugin-vue'
27
27
  import yml_ from 'eslint-plugin-yml'
28
+ import globals from 'globals'
28
29
  import tseslint from 'typescript-eslint'
29
30
  import vueParser from 'vue-eslint-parser'
30
31
 
@@ -543,6 +544,9 @@ export const jest = tseslint.config({
543
544
  name: '@1stg/jest',
544
545
  files: ['**/*.{spec,test}.{js,jsx,ts,tsx}'],
545
546
  extends: [jest_.configs['flat/recommended']],
547
+ languageOptions: {
548
+ globals: globals.jest,
549
+ },
546
550
  rules: test.rules,
547
551
  })
548
552
 
@@ -550,6 +554,9 @@ export const vitest = tseslint.config({
550
554
  name: '@1stg/vitest',
551
555
  files: ['**/*.{spec,test}.{js,jsx,ts,tsx}'],
552
556
  extends: [vitest_.configs.recommended],
557
+ languageOptions: {
558
+ globals: globals.vitest,
559
+ },
553
560
  rules: test.rules,
554
561
  })
555
562
 
@@ -651,4 +658,11 @@ export const overrides = tseslint.config(
651
658
  json5,
652
659
  toml,
653
660
  yaml,
661
+ // https://github.com/prettier/eslint-config-prettier#curly
662
+ {
663
+ name: '@1stg/prettier',
664
+ rules: {
665
+ curly: [2, 'all'],
666
+ },
667
+ },
654
668
  )
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@1stg/eslint-config",
3
- "version": "8.3.1",
3
+ "version": "8.4.0",
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",
7
7
  "homepage": "https://github.com/1stG/configs/tree/master/packages/eslint-config",
8
8
  "author": "JounQin <admin@1stg.me> (https://www.1stG.me)",
9
- "funding": "https://www.patreon.com/1stG",
9
+ "funding": "https://opencollective.com/configs",
10
10
  "license": "MIT",
11
11
  "engines": {
12
12
  "node": ">=18.18"
@@ -24,29 +24,29 @@
24
24
  "eslint": ">=8.0.0"
25
25
  },
26
26
  "dependencies": {
27
- "@1stg/config": "^1.0.1",
27
+ "@1stg/config": "^1.0.3",
28
28
  "@babel/eslint-parser": "^7.27.0",
29
29
  "@babel/eslint-plugin": "^7.27.0",
30
30
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
31
- "@eslint-react/eslint-plugin": "^1.40.0",
32
- "@eslint/js": "^9.23.0",
31
+ "@eslint-react/eslint-plugin": "^1.40.3",
32
+ "@eslint/js": "^9.24.0",
33
33
  "@pkgr/utils": "^3.1.0",
34
34
  "@typescript-eslint/eslint-plugin": "^8.29.0",
35
35
  "@typescript-eslint/parser": "^8.29.0",
36
- "@vitest/eslint-plugin": "^1.1.38",
36
+ "@vitest/eslint-plugin": "^1.1.39",
37
37
  "angular-eslint": "^19.3.0",
38
38
  "angular-eslint-template-parser": "^0.1.3",
39
39
  "eslint-config-prettier": "^10.1.1",
40
40
  "eslint-import-resolver-typescript": "^4.3.1",
41
41
  "eslint-plugin-css": "^0.11.0",
42
- "eslint-plugin-import-x": "^4.10.0",
42
+ "eslint-plugin-import-x": "^4.10.1",
43
43
  "eslint-plugin-jest": "^28.11.0",
44
44
  "eslint-plugin-jsdoc": "^50.6.9",
45
45
  "eslint-plugin-jsonc": "^2.20.0",
46
46
  "eslint-plugin-markup": "^1.0.0",
47
- "eslint-plugin-mdx": "^3.3.1",
47
+ "eslint-plugin-mdx": "^3.4.0",
48
48
  "eslint-plugin-n": "^17.17.0",
49
- "eslint-plugin-prettier": "^5.2.5",
49
+ "eslint-plugin-prettier": "^5.2.6",
50
50
  "eslint-plugin-promise": "^7.2.1",
51
51
  "eslint-plugin-react-hooks": "^5.2.0",
52
52
  "eslint-plugin-regexp": "^2.7.0",