@1stg/eslint-config 8.3.2 → 8.5.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,31 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#336](https://github.com/1stG/configs/pull/336) [`fa39ecf`](https://github.com/1stG/configs/commit/fa39ecf3bc7982e7e4172952721f8745991f4739) Thanks [@JounQin](https://github.com/JounQin)! - feat: enable `eslint-plugin-markup` again
8
+
9
+ ### Patch Changes
10
+
11
+ - [#336](https://github.com/1stG/configs/pull/336) [`fa39ecf`](https://github.com/1stG/configs/commit/fa39ecf3bc7982e7e4172952721f8745991f4739) Thanks [@JounQin](https://github.com/JounQin)! - chore: bump all (dev) deps
12
+
13
+ - Updated dependencies [[`fa39ecf`](https://github.com/1stG/configs/commit/fa39ecf3bc7982e7e4172952721f8745991f4739)]:
14
+ - @1stg/config@1.0.4
15
+
16
+ ## 8.4.0
17
+
18
+ ### Minor Changes
19
+
20
+ - [#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`
21
+
22
+ ### Patch Changes
23
+
24
+ - [#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
25
+
26
+ - Updated dependencies [[`c08b298`](https://github.com/1stG/configs/commit/c08b2989d7e3765dd3853fe5461d9662e5b3a05e)]:
27
+ - @1stg/config@1.0.3
28
+
3
29
  ## 8.3.2
4
30
 
5
31
  ### Patch Changes
package/README.md CHANGED
@@ -2,15 +2,17 @@
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)
5
+ ## Sponsors and Backers
6
6
 
7
- ## Sponsors
7
+ [![Sponsors and Backers](https://raw.githubusercontent.com/1stG/static/master/sponsors.svg)](https://github.com/sponsors/JounQin)
8
+
9
+ ### Sponsors
8
10
 
9
11
  | 1stG | RxTS | UnTS |
10
12
  | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
11
13
  | [![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) |
12
14
 
13
- ## Backers
15
+ ### Backers
14
16
 
15
17
  | 1stG | RxTS | UnTS |
16
18
  | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
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
@@ -20,11 +20,13 @@ import importX from 'eslint-plugin-import-x'
20
20
  import jest_ from 'eslint-plugin-jest'
21
21
  import jsdoc from 'eslint-plugin-jsdoc'
22
22
  import jsonc_ from 'eslint-plugin-jsonc'
23
+ import * as markup_ from 'eslint-plugin-markup'
23
24
  import * as mdx_ from 'eslint-plugin-mdx'
24
25
  import * as reactHooks_ from 'eslint-plugin-react-hooks'
25
26
  import toml_ from 'eslint-plugin-toml'
26
27
  import vue_ from 'eslint-plugin-vue'
27
28
  import yml_ from 'eslint-plugin-yml'
29
+ import globals from 'globals'
28
30
  import tseslint from 'typescript-eslint'
29
31
  import vueParser from 'vue-eslint-parser'
30
32
 
@@ -447,7 +449,7 @@ export const angular = tseslint.config(
447
449
  files: ['**/*.html'],
448
450
  extends: [
449
451
  angular_.configs.templateRecommended,
450
- // 'plugin:markup/recommended',
452
+ markup_.configs.flatRecommended,
451
453
  prettierExtends,
452
454
  ],
453
455
  languageOptions: {
@@ -472,26 +474,26 @@ export const angular = tseslint.config(
472
474
  },
473
475
  )
474
476
 
475
- /* eslint-disable sonarjs/no-commented-code */
476
- // export const markup = [
477
- // {
478
- // files: '**/*.html',
479
- // extends: 'plugin:markup/recommended',
480
- // rules: {
481
- // 'prettier/prettier': [
482
- // preferPrettier ? 0 : 2,
483
- // {
484
- // parser: 'html',
485
- // },
486
- // ],
487
- // },
488
- // },
489
- // {
490
- // files: '**/*.pug',
491
- // extends: ['plugin:markup/recommended', ...prettierExtends],
492
- // },
493
- // ]
494
- /* eslint-enable sonarjs/no-commented-code */
477
+ export const markup = tseslint.config(
478
+ {
479
+ name: '@1stg/markup-html',
480
+ files: ['**/*.html'],
481
+ extends: [markup_.configs.flatRecommended],
482
+ rules: {
483
+ 'prettier/prettier': [
484
+ preferPrettier ? 0 : 2,
485
+ {
486
+ parser: 'html',
487
+ },
488
+ ],
489
+ },
490
+ },
491
+ {
492
+ name: '@1stg/markup-pug',
493
+ files: ['**/*.pug'],
494
+ extends: [markup_.configs.flatRecommended, ...prettierExtends],
495
+ },
496
+ )
495
497
 
496
498
  export const md = tseslint.config(
497
499
  {
@@ -543,6 +545,9 @@ export const jest = tseslint.config({
543
545
  name: '@1stg/jest',
544
546
  files: ['**/*.{spec,test}.{js,jsx,ts,tsx}'],
545
547
  extends: [jest_.configs['flat/recommended']],
548
+ languageOptions: {
549
+ globals: globals.jest,
550
+ },
546
551
  rules: test.rules,
547
552
  })
548
553
 
@@ -550,6 +555,9 @@ export const vitest = tseslint.config({
550
555
  name: '@1stg/vitest',
551
556
  files: ['**/*.{spec,test}.{js,jsx,ts,tsx}'],
552
557
  extends: [vitest_.configs.recommended],
558
+ languageOptions: {
559
+ globals: globals.vitest,
560
+ },
553
561
  rules: test.rules,
554
562
  })
555
563
 
@@ -634,7 +642,7 @@ export const overrides = tseslint.config(
634
642
  isTsAvailable ? ts : [],
635
643
  isReactAvailable ? react : [],
636
644
  // The order matters, the later should to be preferred
637
- // markup,
645
+ markup,
638
646
  isPkgAvailable('vue') ? vue : [],
639
647
  isPkgAvailable('@angular/core') ? angular : [],
640
648
  md,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1stg/eslint-config",
3
- "version": "8.3.2",
3
+ "version": "8.5.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",
@@ -24,27 +24,27 @@
24
24
  "eslint": ">=8.0.0"
25
25
  },
26
26
  "dependencies": {
27
- "@1stg/config": "^1.0.2",
27
+ "@1stg/config": "^1.0.4",
28
28
  "@babel/eslint-parser": "^7.27.0",
29
29
  "@babel/eslint-plugin": "^7.27.0",
30
- "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
31
- "@eslint-react/eslint-plugin": "^1.40.1",
32
- "@eslint/js": "^9.23.0",
33
- "@pkgr/utils": "^3.1.0",
34
- "@typescript-eslint/eslint-plugin": "^8.29.0",
35
- "@typescript-eslint/parser": "^8.29.0",
36
- "@vitest/eslint-plugin": "^1.1.39",
30
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
31
+ "@eslint-react/eslint-plugin": "^1.46.0",
32
+ "@eslint/js": "^9.24.0",
33
+ "@pkgr/utils": "^3.1.1",
34
+ "@typescript-eslint/eslint-plugin": "^8.29.1",
35
+ "@typescript-eslint/parser": "^8.29.1",
36
+ "@vitest/eslint-plugin": "^1.1.42",
37
37
  "angular-eslint": "^19.3.0",
38
38
  "angular-eslint-template-parser": "^0.1.3",
39
- "eslint-config-prettier": "^10.1.1",
40
- "eslint-import-resolver-typescript": "^4.3.1",
39
+ "eslint-config-prettier": "^10.1.2",
40
+ "eslint-import-resolver-typescript": "^4.3.2",
41
41
  "eslint-plugin-css": "^0.11.0",
42
- "eslint-plugin-import-x": "^4.10.0",
42
+ "eslint-plugin-import-x": "^4.10.3",
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
49
  "eslint-plugin-prettier": "^5.2.6",
50
50
  "eslint-plugin-promise": "^7.2.1",
@@ -57,7 +57,7 @@
57
57
  "eslint-plugin-vue": "^10.0.0",
58
58
  "eslint-plugin-yml": "^1.17.0",
59
59
  "globals": "^16.0.0",
60
- "typescript-eslint": "^8.29.0"
60
+ "typescript-eslint": "^8.29.1"
61
61
  },
62
62
  "publishConfig": {
63
63
  "access": "public"