@1stg/eslint-config 5.4.4 → 5.6.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,36 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#164](https://github.com/1stG/configs/pull/164) [`990677b`](https://github.com/1stG/configs/commit/990677ba11d36dcbd1725b395f27384b1746c9f4) Thanks [@JounQin](https://github.com/JounQin)! - feat(eslint): enable `curly` with `all` option
8
+
9
+ ### Patch Changes
10
+
11
+ - [#164](https://github.com/1stG/configs/pull/164) [`990677b`](https://github.com/1stG/configs/commit/990677ba11d36dcbd1725b395f27384b1746c9f4) Thanks [@JounQin](https://github.com/JounQin)! - fix(eslint): move `prefer-optional-chain` to type awared section
12
+
13
+ - [#164](https://github.com/1stG/configs/pull/164) [`990677b`](https://github.com/1stG/configs/commit/990677ba11d36dcbd1725b395f27384b1746c9f4) Thanks [@JounQin](https://github.com/JounQin)! - chore: bump all (dev)Dependencies
14
+
15
+ - Updated dependencies [[`990677b`](https://github.com/1stG/configs/commit/990677ba11d36dcbd1725b395f27384b1746c9f4)]:
16
+ - @1stg/config@0.2.1
17
+
18
+ ## 5.5.1
19
+
20
+ ### Patch Changes
21
+
22
+ - [#162](https://github.com/1stG/configs/pull/162) [`434e27e`](https://github.com/1stG/configs/commit/434e27e251534630728801bc7efd386d48d58ad1) Thanks [@JounQin](https://github.com/JounQin)! - fix(eslint): move prefer-optional-chain to type awared section
23
+
24
+ ## 5.5.0
25
+
26
+ ### Minor Changes
27
+
28
+ - [#153](https://github.com/1stG/configs/pull/153) [`ac25180`](https://github.com/1stG/configs/commit/ac25180a53911722d587cc752d70fc05d26b06d4) Thanks [@JounQin](https://github.com/JounQin)! - chore(deps): bump all (dev)Dependencies, fix related usage
29
+
30
+ ### Patch Changes
31
+
32
+ - [#153](https://github.com/1stG/configs/pull/153) [`ac25180`](https://github.com/1stG/configs/commit/ac25180a53911722d587cc752d70fc05d26b06d4) Thanks [@JounQin](https://github.com/JounQin)! - fix: ignore UPPER_CASE yaml files as markdown for files like `.github/FUNDING.yml`
33
+
3
34
  ## 5.4.4
4
35
 
5
36
  ### Patch Changes
package/base.js CHANGED
@@ -35,6 +35,7 @@ module.exports = {
35
35
  allow: isWebpackAvailable ? webpackSpecVars : undefined,
36
36
  },
37
37
  ],
38
+ curly: [2, 'all'],
38
39
  'eslint-comments/disable-enable-pair': [
39
40
  2,
40
41
  {
@@ -107,8 +108,8 @@ module.exports = {
107
108
  kebabCase: true,
108
109
  pascalCase: true,
109
110
  },
110
- // ignore UPPER_CASE markdown filenames
111
- ignore: [/^[A-Z](([\dA-Z]+_)*[\dA-Z]+)?\.mdx?$/],
111
+ // ignore UPPER_CASE markdown or yaml filenames
112
+ ignore: [/^[A-Z](([\dA-Z]+_)*[\dA-Z]+)?\.(mdx?|ya?ml)$/],
112
113
  },
113
114
  ],
114
115
  'unicorn/no-array-reduce': 0,
package/overrides.js CHANGED
@@ -88,6 +88,9 @@ const resolveSettings = {
88
88
 
89
89
  const tsBase = {
90
90
  files: ['*.cts', '*.mts', '*.ts', '*.tsx'],
91
+ parserOptions: {
92
+ project,
93
+ },
91
94
  extends: [
92
95
  'plugin:@typescript-eslint/eslint-recommended',
93
96
  'plugin:@typescript-eslint/recommended',
@@ -160,7 +163,6 @@ const tsBase = {
160
163
  ],
161
164
  '@typescript-eslint/prefer-for-of': 2,
162
165
  '@typescript-eslint/prefer-function-type': 2,
163
- '@typescript-eslint/prefer-optional-chain': 2,
164
166
  '@typescript-eslint/prefer-ts-expect-error': 2,
165
167
  '@typescript-eslint/sort-type-union-intersection-members': 2,
166
168
  '@typescript-eslint/triple-slash-reference': [
@@ -214,11 +216,8 @@ exports.ts = [
214
216
  },
215
217
  },
216
218
  {
217
- files: '*.{ts,tsx}',
218
- excludedFiles: '*.d.ts',
219
- parserOptions: {
220
- project,
221
- },
219
+ files: ['*.cts', '*.mts', '*.ts', '*.tsx'],
220
+ excludedFiles: ['*.d.cts', '*.d.mts', '*.d.ts'],
222
221
  extends: ['plugin:@typescript-eslint/recommended-requiring-type-checking'],
223
222
  rules: {
224
223
  '@typescript-eslint/no-floating-promises': [
@@ -241,6 +240,7 @@ exports.ts = [
241
240
  '@typescript-eslint/no-unnecessary-condition': 2,
242
241
  '@typescript-eslint/no-unnecessary-qualifier': 2,
243
242
  '@typescript-eslint/no-unnecessary-type-arguments': 2,
243
+ '@typescript-eslint/prefer-optional-chain': 2,
244
244
  '@typescript-eslint/prefer-readonly': 2,
245
245
  '@typescript-eslint/prefer-reduce-type-parameter': 2,
246
246
  '@typescript-eslint/prefer-string-starts-ends-with': 2,
package/package.json CHANGED
@@ -1,41 +1,10 @@
1
1
  {
2
2
  "name": "@1stg/eslint-config",
3
- "version": "5.4.4",
3
+ "version": "5.6.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",
7
7
  "author": "JounQin (https://www.1stG.me) <admin@1stg.me>",
8
- "donate": {
9
- "recipients": [
10
- {
11
- "name": "unts",
12
- "platform": "opencollective",
13
- "address": "https://opencollective.com/unts",
14
- "weight": 60
15
- },
16
- {
17
- "name": "rxts",
18
- "platform": "opencollective",
19
- "address": "https://opencollective.com/rxts",
20
- "weight": 20
21
- },
22
- {
23
- "name": "1stG",
24
- "email": "i@1stg.me",
25
- "weight": 20,
26
- "platforms": [
27
- {
28
- "platform": "opencollective",
29
- "address": "https://opencollective.com/1stG"
30
- },
31
- {
32
- "platform": "patreon",
33
- "address": "https://www.patreon.com/1stG"
34
- }
35
- ]
36
- }
37
- ]
38
- },
39
8
  "funding": "https://www.patreon.com/1stG",
40
9
  "license": "MIT",
41
10
  "engines": {
@@ -45,46 +14,46 @@
45
14
  "eslint": ">=6.0.0"
46
15
  },
47
16
  "dependencies": {
48
- "@1stg/config": "^0.2.0",
49
- "@angular-eslint/eslint-plugin": "^14.0.2",
50
- "@angular-eslint/eslint-plugin-template": "^14.0.2",
51
- "@angular-eslint/template-parser": "^14.0.2",
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",
52
21
  "@babel/eslint-parser": "^7.18.9",
53
- "@babel/eslint-plugin": "^7.17.7",
22
+ "@babel/eslint-plugin": "^7.18.10",
54
23
  "@pkgr/utils": "^2.3.0",
55
- "@typescript-eslint/eslint-plugin": "^5.30.7",
56
- "@typescript-eslint/parser": "^5.30.7",
24
+ "@typescript-eslint/eslint-plugin": "^5.35.1",
25
+ "@typescript-eslint/parser": "^5.35.1",
57
26
  "angular-eslint-template-parser": "^0.1.1",
58
27
  "eslint-config-prettier": "^8.5.0",
59
28
  "eslint-config-standard": "^17.0.0",
60
29
  "eslint-config-standard-jsx": "^11.0.0",
61
30
  "eslint-config-standard-react": "^11.0.1",
62
31
  "eslint-formatter-friendly": "^7.0.0",
63
- "eslint-import-resolver-typescript": "^3.3.0",
32
+ "eslint-import-resolver-typescript": "^3.5.0",
64
33
  "eslint-plugin-css": "^0.6.0",
65
34
  "eslint-plugin-es-x": "^5.2.1",
66
35
  "eslint-plugin-eslint-comments": "^3.2.0",
67
36
  "eslint-plugin-import": "npm:eslint-plugin-i@^2.26.0",
68
- "eslint-plugin-jest": "^26.6.0",
69
- "eslint-plugin-jsdoc": "^39.3.3",
70
- "eslint-plugin-json-schema-validator": "^4.0.0",
71
- "eslint-plugin-jsonc": "^2.3.1",
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",
72
41
  "eslint-plugin-markup": "^0.10.1",
73
42
  "eslint-plugin-mdx": "^2.0.2",
74
- "eslint-plugin-n": "^15.2.4",
43
+ "eslint-plugin-n": "^15.2.5",
75
44
  "eslint-plugin-prettier": "^4.2.1",
76
- "eslint-plugin-promise": "^6.0.0",
77
- "eslint-plugin-react": "^7.30.1",
45
+ "eslint-plugin-promise": "^6.0.1",
46
+ "eslint-plugin-react": "^7.31.0",
78
47
  "eslint-plugin-react-hooks": "^4.6.0",
79
- "eslint-plugin-regexp": "^1.7.0",
48
+ "eslint-plugin-regexp": "^1.9.0",
80
49
  "eslint-plugin-simple-import-sort": "^7.0.0",
81
- "eslint-plugin-sonar": "^0.8.0",
82
- "eslint-plugin-sonarjs": "^0.14.0",
83
- "eslint-plugin-svelte": "^2.2.0",
50
+ "eslint-plugin-sonar": "^0.9.1",
51
+ "eslint-plugin-sonarjs": "^0.15.0",
52
+ "eslint-plugin-svelte": "^2.7.0",
84
53
  "eslint-plugin-toml": "^0.3.1",
85
54
  "eslint-plugin-unicorn": "^43.0.2",
86
- "eslint-plugin-vue": "^9.2.0",
87
- "eslint-plugin-yml": "^1.0.0"
55
+ "eslint-plugin-vue": "^9.4.0",
56
+ "eslint-plugin-yml": "^1.1.0"
88
57
  },
89
58
  "publishConfig": {
90
59
  "access": "public"