@1stg/eslint-config 5.4.3 → 5.5.1

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,29 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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
8
+
9
+ ## 5.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#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
14
+
15
+ ### Patch Changes
16
+
17
+ - [#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`
18
+
19
+ ## 5.4.4
20
+
21
+ ### Patch Changes
22
+
23
+ - [#144](https://github.com/1stG/configs/pull/144) [`8d9171d`](https://github.com/1stG/configs/commit/8d9171dc9f21e84cf9cc2ffd8efd5d3ca99da63c) Thanks [@JounQin](https://github.com/JounQin)! - perf(eslint): bump `eslint-import-resolver-typescript`, `eslint-plugin-json-schema-validator` and `eslint-plugin-mdx`
24
+
25
+ - [#144](https://github.com/1stG/configs/pull/144) [`8d9171d`](https://github.com/1stG/configs/commit/8d9171dc9f21e84cf9cc2ffd8efd5d3ca99da63c) Thanks [@JounQin](https://github.com/JounQin)! - chore(eslint): replace `eslint-plugin-import` with `eslint-plugin-i`
26
+
3
27
  ## 5.4.3
4
28
 
5
29
  ### Patch Changes
package/base.js CHANGED
@@ -107,8 +107,8 @@ module.exports = {
107
107
  kebabCase: true,
108
108
  pascalCase: true,
109
109
  },
110
- // ignore UPPER_CASE markdown filenames
111
- ignore: [/^[A-Z](([\dA-Z]+_)*[\dA-Z]+)?\.mdx?$/],
110
+ // ignore UPPER_CASE markdown or yaml filenames
111
+ ignore: [/^[A-Z](([\dA-Z]+_)*[\dA-Z]+)?\.(mdx?|ya?ml)$/],
112
112
  },
113
113
  ],
114
114
  '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,6 +1,6 @@
1
1
  {
2
2
  "name": "@1stg/eslint-config",
3
- "version": "5.4.3",
3
+ "version": "5.5.1",
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",
@@ -49,42 +49,42 @@
49
49
  "@angular-eslint/eslint-plugin": "^14.0.2",
50
50
  "@angular-eslint/eslint-plugin-template": "^14.0.2",
51
51
  "@angular-eslint/template-parser": "^14.0.2",
52
- "@babel/eslint-parser": "^7.18.2",
53
- "@babel/eslint-plugin": "^7.17.7",
52
+ "@babel/eslint-parser": "^7.18.9",
53
+ "@babel/eslint-plugin": "^7.18.10",
54
54
  "@pkgr/utils": "^2.3.0",
55
- "@typescript-eslint/eslint-plugin": "^5.30.6",
56
- "@typescript-eslint/parser": "^5.30.6",
55
+ "@typescript-eslint/eslint-plugin": "^5.33.1",
56
+ "@typescript-eslint/parser": "^5.33.1",
57
57
  "angular-eslint-template-parser": "^0.1.1",
58
58
  "eslint-config-prettier": "^8.5.0",
59
59
  "eslint-config-standard": "^17.0.0",
60
60
  "eslint-config-standard-jsx": "^11.0.0",
61
61
  "eslint-config-standard-react": "^11.0.1",
62
62
  "eslint-formatter-friendly": "^7.0.0",
63
- "eslint-import-resolver-typescript": "^3.2.7",
63
+ "eslint-import-resolver-typescript": "^3.4.2",
64
64
  "eslint-plugin-css": "^0.6.0",
65
65
  "eslint-plugin-es-x": "^5.2.1",
66
66
  "eslint-plugin-eslint-comments": "^3.2.0",
67
- "eslint-plugin-import": "^2.26.0",
68
- "eslint-plugin-jest": "^26.6.0",
69
- "eslint-plugin-jsdoc": "^39.3.3",
70
- "eslint-plugin-json-schema-validator": "^3.2.5",
71
- "eslint-plugin-jsonc": "^2.3.1",
72
- "eslint-plugin-markup": "^0.10.0",
73
- "eslint-plugin-mdx": "^2.0.1",
67
+ "eslint-plugin-import": "npm:eslint-plugin-i@^2.26.0",
68
+ "eslint-plugin-jest": "^26.8.5",
69
+ "eslint-plugin-jsdoc": "^39.3.6",
70
+ "eslint-plugin-json-schema-validator": "^4.0.1",
71
+ "eslint-plugin-jsonc": "^2.4.0",
72
+ "eslint-plugin-markup": "^0.10.1",
73
+ "eslint-plugin-mdx": "^2.0.2",
74
74
  "eslint-plugin-n": "^15.2.4",
75
75
  "eslint-plugin-prettier": "^4.2.1",
76
76
  "eslint-plugin-promise": "^6.0.0",
77
77
  "eslint-plugin-react": "^7.30.1",
78
78
  "eslint-plugin-react-hooks": "^4.6.0",
79
- "eslint-plugin-regexp": "^1.7.0",
79
+ "eslint-plugin-regexp": "^1.8.0",
80
80
  "eslint-plugin-simple-import-sort": "^7.0.0",
81
- "eslint-plugin-sonar": "^0.8.0",
82
- "eslint-plugin-sonarjs": "^0.13.0",
83
- "eslint-plugin-svelte": "^2.2.0",
81
+ "eslint-plugin-sonar": "^0.9.1",
82
+ "eslint-plugin-sonarjs": "^0.15.0",
83
+ "eslint-plugin-svelte": "^2.6.0",
84
84
  "eslint-plugin-toml": "^0.3.1",
85
- "eslint-plugin-unicorn": "^43.0.1",
86
- "eslint-plugin-vue": "^9.2.0",
87
- "eslint-plugin-yml": "^1.0.0"
85
+ "eslint-plugin-unicorn": "^43.0.2",
86
+ "eslint-plugin-vue": "^9.3.0",
87
+ "eslint-plugin-yml": "^1.1.0"
88
88
  },
89
89
  "publishConfig": {
90
90
  "access": "public"