@1stg/eslint-config 5.2.6 → 5.3.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,20 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#121](https://github.com/1stG/configs/pull/121) [`e23439a`](https://github.com/1stG/configs/commit/e23439a4691c6a49f6413ccfcda281c5f77dc85c) Thanks [@JounQin](https://github.com/JounQin)! - feat: add @1stg/config for sharing configs
8
+
9
+ ### Patch Changes
10
+
11
+ - [#121](https://github.com/1stG/configs/pull/121) [`e23439a`](https://github.com/1stG/configs/commit/e23439a4691c6a49f6413ccfcda281c5f77dc85c) Thanks [@JounQin](https://github.com/JounQin)! - fix(prettier): .vscode/\*.json should be considered as jsonc
12
+
13
+ - [#123](https://github.com/1stG/configs/pull/123) [`4f70fd3`](https://github.com/1stG/configs/commit/4f70fd3aeff6b1b66ccb607fcb61f59977d773c1) Thanks [@JounQin](https://github.com/JounQin)! - docs: add README files
14
+
15
+ - Updated dependencies [[`8aa8066`](https://github.com/1stG/configs/commit/8aa8066a926a3fd972a051bbbce11fab4cd35896), [`4f70fd3`](https://github.com/1stG/configs/commit/4f70fd3aeff6b1b66ccb607fcb61f59977d773c1), [`e23439a`](https://github.com/1stG/configs/commit/e23439a4691c6a49f6413ccfcda281c5f77dc85c)]:
16
+ - @1stg/config@0.1.0
17
+
3
18
  ## 5.2.6
4
19
 
5
20
  ### Patch Changes
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # @1stg/eslint-config
2
+
3
+ Personal but Shareable ESLint Configuration for all 1stG.me projects
4
+
5
+ ## Sponsors
6
+
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) |
10
+
11
+ ## Backers
12
+
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) |
16
+
17
+ ## Changelog
18
+
19
+ Detailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).
20
+
21
+ ## License
22
+
23
+ [MIT][] © [JounQin][]@[1stG.me][]
24
+
25
+ [1stg.me]: https://www.1stg.me
26
+ [jounqin]: https://GitHub.com/JounQin
27
+ [mit]: http://opensource.org/licenses/MIT
package/overrides.js CHANGED
@@ -1,5 +1,6 @@
1
1
  const path = require('node:path')
2
2
 
3
+ const { jsoncFiles, nonJsonRcFiles } = require('@1stg/config')
3
4
  const {
4
5
  isAngularAvailable,
5
6
  isReactAvailable,
@@ -68,7 +69,6 @@ exports.js = {
68
69
  const project =
69
70
  tryFile(path.resolve('tsconfig.eslint.json')) ||
70
71
  tryFile(path.resolve('tsconfig.base.json')) ||
71
- // eslint-disable-next-line sonarjs/no-duplicate-string
72
72
  tryFile(path.resolve('tsconfig.json')) ||
73
73
  tryPkg('@1stg/tsconfig')
74
74
 
@@ -355,7 +355,11 @@ exports.vue = [
355
355
 
356
356
  const svelteBase = {
357
357
  files: '*.svelte',
358
- extends: ['plugin:svelte/recommended'],
358
+ extends: [
359
+ 'plugin:svelte/recommended',
360
+ 'plugin:svelte/prettier',
361
+ 'plugin:prettier/recommended',
362
+ ],
359
363
  rules: {
360
364
  'sonar/label-position': 0,
361
365
  'sonar/no-labels': 0,
@@ -489,18 +493,7 @@ exports.config = exports.configs = {
489
493
 
490
494
  exports.json = {
491
495
  files: ['.*rc', '*.json'],
492
- excludedFiles: [
493
- '.browserslistrc',
494
- '.npmrc',
495
- '.nvmrc',
496
- '.yarnrc',
497
- '.*shrc',
498
- 'angular.json',
499
- 'jsconfig.json',
500
- 'settings.json',
501
- 'tsconfig.json',
502
- 'tsconfig.*.json',
503
- ],
496
+ excludedFiles: [...nonJsonRcFiles, ...jsoncFiles],
504
497
  extends: [
505
498
  'plugin:jsonc/recommended-with-json',
506
499
  // eslint-disable-next-line sonarjs/no-duplicate-string
@@ -511,14 +504,7 @@ exports.json = {
511
504
  }
512
505
 
513
506
  exports.jsonc = {
514
- files: [
515
- '*.jsonc',
516
- 'angular.json',
517
- 'jsconfig.json',
518
- 'settings.json',
519
- 'tsconfig.json',
520
- 'tsconfig.*.json',
521
- ],
507
+ files: jsoncFiles,
522
508
  extends: [
523
509
  'plugin:jsonc/recommended-with-jsonc',
524
510
  'plugin:json-schema-validator/recommended',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@1stg/eslint-config",
3
- "version": "5.2.6",
4
- "description": "Personal but Shareable ESLint Configuration for all 1stG.me projects.",
3
+ "version": "5.3.0",
4
+ "description": "Personal but Shareable ESLint Configuration for all 1stG.me projects",
5
5
  "repository": "git+https://github.com/1stG/configs.git",
6
6
  "homepage": "https://github.com/1stG/configs/tree/master/packages/eslint-config",
7
7
  "author": "JounQin (https://www.1stG.me) <admin@1stg.me>",
@@ -45,6 +45,7 @@
45
45
  "eslint": ">=6.0.0"
46
46
  },
47
47
  "dependencies": {
48
+ "@1stg/config": "^0.1.0",
48
49
  "@angular-eslint/eslint-plugin": "^14.0.0",
49
50
  "@angular-eslint/eslint-plugin-template": "^14.0.0",
50
51
  "@angular-eslint/template-parser": "^14.0.0",
@@ -59,16 +60,16 @@
59
60
  "eslint-config-standard-jsx": "^11.0.0",
60
61
  "eslint-config-standard-react": "^11.0.1",
61
62
  "eslint-formatter-friendly": "^7.0.0",
62
- "eslint-import-resolver-typescript": "^3.2.1",
63
+ "eslint-import-resolver-typescript": "^3.2.4",
63
64
  "eslint-plugin-css": "^0.6.0",
64
65
  "eslint-plugin-es-x": "^5.2.1",
65
66
  "eslint-plugin-eslint-comments": "^3.2.0",
66
67
  "eslint-plugin-import": "^2.26.0",
67
68
  "eslint-plugin-jest": "^26.5.3",
68
69
  "eslint-plugin-jsdoc": "^39.3.3",
69
- "eslint-plugin-json-schema-validator": "^3.1.2",
70
+ "eslint-plugin-json-schema-validator": "^3.1.3",
70
71
  "eslint-plugin-jsonc": "^2.3.1",
71
- "eslint-plugin-markup": "^0.9.0",
72
+ "eslint-plugin-markup": "^0.10.0",
72
73
  "eslint-plugin-mdx": "^2.0.1",
73
74
  "eslint-plugin-n": "^15.2.4",
74
75
  "eslint-plugin-prettier": "^4.2.1",
@@ -79,10 +80,10 @@
79
80
  "eslint-plugin-simple-import-sort": "^7.0.0",
80
81
  "eslint-plugin-sonar": "^0.8.0",
81
82
  "eslint-plugin-sonarjs": "^0.13.0",
82
- "eslint-plugin-svelte": "^2.1.0",
83
+ "eslint-plugin-svelte": "^2.2.0",
83
84
  "eslint-plugin-toml": "^0.3.1",
84
85
  "eslint-plugin-unicorn": "^43.0.0",
85
- "eslint-plugin-vue": "^9.1.1",
86
+ "eslint-plugin-vue": "^9.2.0",
86
87
  "eslint-plugin-yml": "^1.0.0"
87
88
  },
88
89
  "publishConfig": {