@1stg/eslint-config 5.6.0 → 6.0.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,21 @@
1
1
  # Change Log
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`d03df9f`](https://github.com/1stG/configs/commit/d03df9fd9c0e6441909a4aaa85e40730a0c99581) Thanks [@JounQin](https://github.com/JounQin)! - feat!: migrate to eslint-community packages, bump stylelint
8
+
9
+ ### Minor Changes
10
+
11
+ - [#178](https://github.com/1stG/configs/pull/178) [`16bf6b4`](https://github.com/1stG/configs/commit/16bf6b4567843a27c52467c9fb18c08f15ac7638) Thanks [@JounQin](https://github.com/JounQin)! - chore: bump all (dev)Dependencies
12
+
13
+ ## 5.7.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#172](https://github.com/1stG/configs/pull/172) [`02236f3`](https://github.com/1stG/configs/commit/02236f35c72d92ec1c4165b32ad71cba7e3b96d3) Thanks [@JounQin](https://github.com/JounQin)! - chore: bump all (dev)Dependencies, update node engine
18
+
3
19
  ## 5.6.0
4
20
 
5
21
  ### Minor Changes
package/base.js CHANGED
@@ -11,7 +11,7 @@ const {
11
11
  module.exports = {
12
12
  extends: [
13
13
  'eslint:recommended',
14
- 'plugin:eslint-comments/recommended',
14
+ 'plugin:@eslint-community/eslint-comments/recommended',
15
15
  'plugin:css/recommended',
16
16
  'plugin:import/recommended',
17
17
  'plugin:n/recommended',
@@ -26,6 +26,13 @@ module.exports = {
26
26
  plugins: ['es-x', 'simple-import-sort'],
27
27
  globals: isWebpackAvailable ? getGlobals(webpackSpecVars) : undefined,
28
28
  rules: {
29
+ '@eslint-community/eslint-comments/disable-enable-pair': [
30
+ 2,
31
+ {
32
+ allowWholeFile: true,
33
+ },
34
+ ],
35
+ '@eslint-community/eslint-comments/no-unused-disable': 2,
29
36
  'arrow-body-style': 2,
30
37
  camelcase: [
31
38
  2,
@@ -36,13 +43,6 @@ module.exports = {
36
43
  },
37
44
  ],
38
45
  curly: [2, 'all'],
39
- 'eslint-comments/disable-enable-pair': [
40
- 2,
41
- {
42
- allowWholeFile: true,
43
- },
44
- ],
45
- 'eslint-comments/no-unused-disable': 2,
46
46
  'import/first': 2,
47
47
  'import/newline-after-import': 2,
48
48
  'import/no-duplicates': 2,
package/overrides.js CHANGED
@@ -159,6 +159,7 @@ const tsBase = {
159
159
  2,
160
160
  {
161
161
  argsIgnorePattern: '^_',
162
+ varsIgnorePattern: '^_',
162
163
  },
163
164
  ],
164
165
  '@typescript-eslint/prefer-for-of': 2,
@@ -508,45 +509,28 @@ exports.json = {
508
509
  extends: [
509
510
  'plugin:jsonc/recommended-with-json',
510
511
  // eslint-disable-next-line sonarjs/no-duplicate-string
511
- 'plugin:json-schema-validator/recommended',
512
- // eslint-disable-next-line sonarjs/no-duplicate-string
513
512
  'plugin:jsonc/prettier',
514
513
  ],
515
514
  }
516
515
 
517
516
  exports.jsonc = {
518
517
  files: jsoncFiles,
519
- extends: [
520
- 'plugin:jsonc/recommended-with-jsonc',
521
- 'plugin:json-schema-validator/recommended',
522
- 'plugin:jsonc/prettier',
523
- ],
518
+ extends: ['plugin:jsonc/recommended-with-jsonc', 'plugin:jsonc/prettier'],
524
519
  }
525
520
 
526
521
  exports.json5 = {
527
522
  files: '*.json5',
528
- extends: [
529
- 'plugin:jsonc/recommended-with-json5',
530
- 'plugin:json-schema-validator/recommended',
531
- 'plugin:jsonc/prettier',
532
- ],
523
+ extends: ['plugin:jsonc/recommended-with-json5', 'plugin:jsonc/prettier'],
533
524
  }
534
525
 
535
526
  exports.toml = {
536
527
  files: '*.toml',
537
- extends: [
538
- 'plugin:toml/recommended',
539
- 'plugin:json-schema-validator/recommended',
540
- ],
528
+ extends: ['plugin:toml/recommended'],
541
529
  }
542
530
 
543
531
  exports.yml = exports.yaml = {
544
532
  files: ['*.yml', '*.yaml'],
545
- extends: [
546
- 'plugin:yml/recommended',
547
- 'plugin:json-schema-validator/recommended',
548
- 'plugin:yml/prettier',
549
- ],
533
+ extends: ['plugin:yml/recommended', 'plugin:yml/prettier'],
550
534
  }
551
535
 
552
536
  exports.overrides = []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1stg/eslint-config",
3
- "version": "5.6.0",
3
+ "version": "6.0.0",
4
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",
@@ -8,54 +8,53 @@
8
8
  "funding": "https://www.patreon.com/1stG",
9
9
  "license": "MIT",
10
10
  "engines": {
11
- "node": "^12.20.0 || ^14.18.0 || >=16.0.0"
11
+ "node": "^14.18.0 || >=16.0.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "eslint": ">=6.0.0"
14
+ "eslint": ">=8.0.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "@1stg/config": "^0.2.1",
18
- "@angular-eslint/eslint-plugin": "^14.0.3",
19
- "@angular-eslint/eslint-plugin-template": "^14.0.3",
20
- "@angular-eslint/template-parser": "^14.0.3",
21
- "@babel/eslint-parser": "^7.18.9",
22
- "@babel/eslint-plugin": "^7.18.10",
23
- "@pkgr/utils": "^2.3.0",
24
- "@typescript-eslint/eslint-plugin": "^5.35.1",
25
- "@typescript-eslint/parser": "^5.35.1",
18
+ "@angular-eslint/eslint-plugin": "^15.2.1",
19
+ "@angular-eslint/eslint-plugin-template": "^15.2.1",
20
+ "@angular-eslint/template-parser": "^15.2.1",
21
+ "@babel/eslint-parser": "^7.21.3",
22
+ "@babel/eslint-plugin": "^7.19.1",
23
+ "@eslint-community/eslint-plugin-eslint-comments": "^3.2.1",
24
+ "@pkgr/utils": "^2.3.1",
25
+ "@typescript-eslint/eslint-plugin": "^5.57.1",
26
+ "@typescript-eslint/parser": "^5.57.1",
26
27
  "angular-eslint-template-parser": "^0.1.1",
27
- "eslint-config-prettier": "^8.5.0",
28
+ "eslint-config-prettier": "^8.8.0",
28
29
  "eslint-config-standard": "^17.0.0",
29
30
  "eslint-config-standard-jsx": "^11.0.0",
30
- "eslint-config-standard-react": "^11.0.1",
31
+ "eslint-config-standard-react": "^13.0.0",
31
32
  "eslint-formatter-friendly": "^7.0.0",
32
- "eslint-import-resolver-typescript": "^3.5.0",
33
- "eslint-plugin-css": "^0.6.0",
34
- "eslint-plugin-es-x": "^5.2.1",
35
- "eslint-plugin-eslint-comments": "^3.2.0",
36
- "eslint-plugin-import": "npm:eslint-plugin-i@^2.26.0",
37
- "eslint-plugin-jest": "^26.8.7",
38
- "eslint-plugin-jsdoc": "^39.3.6",
39
- "eslint-plugin-json-schema-validator": "^4.0.1",
40
- "eslint-plugin-jsonc": "^2.4.0",
41
- "eslint-plugin-markup": "^0.10.1",
42
- "eslint-plugin-mdx": "^2.0.2",
43
- "eslint-plugin-n": "^15.2.5",
33
+ "eslint-import-resolver-typescript": "^3.5.4",
34
+ "eslint-plugin-css": "^0.7.0",
35
+ "eslint-plugin-es-x": "^6.1.0",
36
+ "eslint-plugin-import": "npm:eslint-plugin-i@^2.27.5",
37
+ "eslint-plugin-jest": "^27.2.1",
38
+ "eslint-plugin-jsdoc": "^40.1.1",
39
+ "eslint-plugin-jsonc": "^2.7.0",
40
+ "eslint-plugin-markup": "^0.10.2",
41
+ "eslint-plugin-mdx": "^2.0.5",
42
+ "eslint-plugin-n": "^15.7.0",
44
43
  "eslint-plugin-prettier": "^4.2.1",
45
- "eslint-plugin-promise": "^6.0.1",
46
- "eslint-plugin-react": "^7.31.0",
44
+ "eslint-plugin-promise": "^6.1.1",
45
+ "eslint-plugin-react": "^7.32.2",
47
46
  "eslint-plugin-react-hooks": "^4.6.0",
48
- "eslint-plugin-regexp": "^1.9.0",
49
- "eslint-plugin-simple-import-sort": "^7.0.0",
50
- "eslint-plugin-sonar": "^0.9.1",
51
- "eslint-plugin-sonarjs": "^0.15.0",
52
- "eslint-plugin-svelte": "^2.7.0",
53
- "eslint-plugin-toml": "^0.3.1",
54
- "eslint-plugin-unicorn": "^43.0.2",
55
- "eslint-plugin-vue": "^9.4.0",
56
- "eslint-plugin-yml": "^1.1.0"
47
+ "eslint-plugin-regexp": "^1.14.0",
48
+ "eslint-plugin-simple-import-sort": "^10.0.0",
49
+ "eslint-plugin-sonar": "^0.11.1",
50
+ "eslint-plugin-sonarjs": "^0.19.0",
51
+ "eslint-plugin-svelte": "^2.25.0",
52
+ "eslint-plugin-toml": "^0.4.0",
53
+ "eslint-plugin-unicorn": "^46.0.0",
54
+ "eslint-plugin-vue": "^9.10.0",
55
+ "eslint-plugin-yml": "^1.5.0"
57
56
  },
58
57
  "publishConfig": {
59
58
  "access": "public"
60
59
  }
61
- }
60
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 1stG
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.