@1stg/eslint-config 5.5.0 → 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,11 @@
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
+
3
9
  ## 5.5.0
4
10
 
5
11
  ### Minor Changes
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.5.0",
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",
@@ -52,23 +52,23 @@
52
52
  "@babel/eslint-parser": "^7.18.9",
53
53
  "@babel/eslint-plugin": "^7.18.10",
54
54
  "@pkgr/utils": "^2.3.0",
55
- "@typescript-eslint/eslint-plugin": "^5.33.0",
56
- "@typescript-eslint/parser": "^5.33.0",
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.4.1",
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
67
  "eslint-plugin-import": "npm:eslint-plugin-i@^2.26.0",
68
- "eslint-plugin-jest": "^26.8.2",
68
+ "eslint-plugin-jest": "^26.8.5",
69
69
  "eslint-plugin-jsdoc": "^39.3.6",
70
70
  "eslint-plugin-json-schema-validator": "^4.0.1",
71
- "eslint-plugin-jsonc": "^2.3.1",
71
+ "eslint-plugin-jsonc": "^2.4.0",
72
72
  "eslint-plugin-markup": "^0.10.1",
73
73
  "eslint-plugin-mdx": "^2.0.2",
74
74
  "eslint-plugin-n": "^15.2.4",
@@ -78,9 +78,9 @@
78
78
  "eslint-plugin-react-hooks": "^4.6.0",
79
79
  "eslint-plugin-regexp": "^1.8.0",
80
80
  "eslint-plugin-simple-import-sort": "^7.0.0",
81
- "eslint-plugin-sonar": "^0.9.0",
81
+ "eslint-plugin-sonar": "^0.9.1",
82
82
  "eslint-plugin-sonarjs": "^0.15.0",
83
- "eslint-plugin-svelte": "^2.5.0",
83
+ "eslint-plugin-svelte": "^2.6.0",
84
84
  "eslint-plugin-toml": "^0.3.1",
85
85
  "eslint-plugin-unicorn": "^43.0.2",
86
86
  "eslint-plugin-vue": "^9.3.0",