linter-bundle 2.25.1 → 2.26.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
@@ -6,7 +6,30 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.25.1...HEAD)
9
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.26.0...HEAD)
10
+
11
+ ## [2.26.0] - 2022-10-27
12
+
13
+ ### Changed
14
+
15
+ - [eslint] Updated `@typescript-eslint` from `5.40.1` to `5.41.0`
16
+ - [eslint] Updated `eslint` from `8.25.0` to `8.26.0`
17
+ - [eslint] Updated `eslint-plugin-jsdoc` from `39.3.14` to `39.3.25`
18
+ - [stylelint] Updated `stylelint-declaration-block-no-ignored-properties` from `2.5.0` to `2.6.0`
19
+ - [stylelint] Grouped `hyphenate-character` below `hyphens` for `order/properties-order` rule
20
+
21
+ ### Added
22
+
23
+ - [general] Stop execution on outdated "overrides"/"resolutions" in package.json
24
+ - [eslint] Make use of [`@typescript-eslint/no-unsafe-declaration-merging`](https://typescript-eslint.io/rules/no-unsafe-declaration-merging/) rule
25
+
26
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.25.2...v2.26.0)
27
+
28
+ ## [2.25.2] - 2022-10-20
29
+
30
+ - [eslint/overrides-react] Revert: Added new [`react/no-object-type-as-default-prop`](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-object-type-as-default-prop.md) rule
31
+
32
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.25.1...v2.25.2)
10
33
 
11
34
  ## [2.25.1] - 2022-10-20
12
35
 
@@ -36,7 +59,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
36
59
  - [eslint] Make use of new [`unicorn/no-unnecessary-await`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unnecessary-await.md) rule
37
60
  - [eslint] Make use of new [`unicorn/switch-case-braces`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-braces.md) rule with option `"avoid"`
38
61
  - [eslint/overrides-jest] Added but disable new [`jest/no-restricted-jest-methods`](https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/no-restricted-jest-methods.md) rule
39
- - [eslint/overrides-react] Added new [`react/no-object-type-as-default-prop`](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-object-type-as-default-prop.md) rule
40
62
  - [stylelint] Updated `stylelint` from `14.12.1` to `14.14.0`
41
63
  - [stylelint] Ignore `!default` annotation in [`annotation-no-unknown`](https://stylelint.io/user-guide/rules/annotation-no-unknown/) rule
42
64
 
@@ -131,7 +153,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
131
153
 
132
154
  ### Changed
133
155
 
134
- - [eslint] Updated `@typescript-eslint/eslint-plugin` from `5.33.0` to `5.33.1`
156
+ - [eslint] Updated `@typescript-eslint` from `5.33.0` to `5.33.1`
135
157
  - [eslint] Updated `eslint` from `8.21.0` to `8.22.0`
136
158
  - [eslint] Updated `eslint-import-resolver-typescript` from `3.4.0` to `3.4.2`
137
159
  - [eslint] Updated `eslint-plugin-jest` from `26.8.2` to `26.8.3`
@@ -151,7 +173,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
151
173
 
152
174
  ### Changed
153
175
 
154
- - [eslint] Updated `@typescript-eslint/eslint-plugin` from `5.32.0` to `5.33.0`
176
+ - [eslint] Updated `@typescript-eslint` from `5.32.0` to `5.33.0`
155
177
  - [eslint] Updated `eslint-plugin-jest` from `26.7.0` to `26.8.2`
156
178
  - [eslint] Updated `eslint-plugin-jsdoc` from `39.3.4` to `39.3.6`
157
179
 
package/eslint/index.js CHANGED
@@ -682,6 +682,7 @@ module.exports = {
682
682
  '@typescript-eslint/no-unsafe-argument': 'error',
683
683
  '@typescript-eslint/no-unsafe-assignment': 'error',
684
684
  '@typescript-eslint/no-unsafe-call': 'error',
685
+ '@typescript-eslint/no-unsafe-declaration-merging': 'error',
685
686
  '@typescript-eslint/no-unsafe-member-access': 'error',
686
687
  '@typescript-eslint/no-unsafe-return': 'error',
687
688
  '@typescript-eslint/no-unused-expressions': 'error',
@@ -164,7 +164,7 @@ module.exports = {
164
164
  'react/no-is-mounted': 'error',
165
165
  'react/no-multi-comp': 'error',
166
166
  'react/no-namespace': 'error',
167
- 'react/no-object-type-as-default-prop': 'error',
167
+ // 'react/no-object-type-as-default-prop': 'error',
168
168
  'react/no-redundant-should-component-update': 'error',
169
169
  'react/no-render-return-value': 'error',
170
170
  'react/no-set-state': 'off',
package/lint.js CHANGED
@@ -24,7 +24,9 @@ const isTerminal = tty.isatty(1);
24
24
  void (async () => {
25
25
  const npmOrYarn = isNpmOrYarn();
26
26
 
27
- validateEnvironment(npmOrYarn);
27
+ if (!validateEnvironment(npmOrYarn)) {
28
+ return;
29
+ }
28
30
 
29
31
  /** @type {{ diff: Promise<ProcessResult>; modified: Promise<ProcessResult>; deleted: Promise<ProcessResult>; } | undefined} */
30
32
  let gitFilesProcessPromise;
@@ -239,7 +241,7 @@ void (async () => {
239
241
  * Ensures that the environment in which the linter is running has the correct versions of the required dependencies.
240
242
  *
241
243
  * @param {ReturnType<isNpmOrYarn>} npmOrYarn - This should be the return value of `isNpmOrYarn()`.
242
- * @returns {void}
244
+ * @returns {boolean} Returns `true` if the environment is valid, otherwise `false` is returned.
243
245
  */
244
246
  function validateEnvironment (npmOrYarn) {
245
247
  const outdatedOverrides = validatePackageOverrides();
@@ -255,7 +257,7 @@ function validateEnvironment (npmOrYarn) {
255
257
 
256
258
  process.exitCode = 1;
257
259
 
258
- return;
260
+ return false;
259
261
  }
260
262
 
261
263
  const missingOverrides = findMissingOverrides().filter(({ name }) => !(npmOrYarn === 'npm' && outdatedOverrides.overrides.some((override) => name === override.name)) && !(npmOrYarn === 'yarn' && outdatedOverrides.resolutions.some((override) => name === override.name)));
@@ -281,8 +283,10 @@ function validateEnvironment (npmOrYarn) {
281
283
 
282
284
  process.exitCode = 1;
283
285
 
284
- return;
286
+ return false;
285
287
  }
288
+
289
+ return true;
286
290
  }
287
291
 
288
292
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linter-bundle",
3
- "version": "2.25.1",
3
+ "version": "2.26.0",
4
4
  "description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -40,17 +40,17 @@
40
40
  "check-outdated": "npx --yes -- check-outdated --ignore-pre-releases"
41
41
  },
42
42
  "dependencies": {
43
- "@typescript-eslint/eslint-plugin": "5.40.1",
44
- "@typescript-eslint/parser": "5.40.1",
45
- "@typescript-eslint/utils": "5.40.1",
46
- "eslint": "8.25.0",
43
+ "@typescript-eslint/eslint-plugin": "5.41.0",
44
+ "@typescript-eslint/parser": "5.41.0",
45
+ "@typescript-eslint/utils": "5.41.0",
46
+ "eslint": "8.26.0",
47
47
  "eslint-import-resolver-typescript": "3.5.2",
48
48
  "eslint-import-resolver-webpack": "0.13.2",
49
49
  "eslint-plugin-eslint-comments": "3.2.0",
50
50
  "eslint-plugin-functional": "4.4.1",
51
51
  "eslint-plugin-import": "2.26.0",
52
52
  "eslint-plugin-jest": "27.1.3",
53
- "eslint-plugin-jsdoc": "39.3.14",
53
+ "eslint-plugin-jsdoc": "39.3.25",
54
54
  "eslint-plugin-jsx-a11y": "6.6.1",
55
55
  "eslint-plugin-n": "15.3.0",
56
56
  "eslint-plugin-promise": "6.1.1",
@@ -61,7 +61,7 @@
61
61
  "micromatch": "4.0.5",
62
62
  "postcss-scss": "4.0.5",
63
63
  "stylelint": "14.14.0",
64
- "stylelint-declaration-block-no-ignored-properties": "2.5.0",
64
+ "stylelint-declaration-block-no-ignored-properties": "2.6.0",
65
65
  "stylelint-order": "5.0.0",
66
66
  "stylelint-scss": "4.3.0",
67
67
  "stylelint-selector-no-empty": "1.0.9",
@@ -72,9 +72,9 @@
72
72
  "typescript": "^4.0.0"
73
73
  },
74
74
  "devDependencies": {
75
- "@types/eslint": "8.4.7",
75
+ "@types/eslint": "8.4.8",
76
76
  "@types/micromatch": "4.0.2",
77
- "@types/node": "18.11.3",
77
+ "@types/node": "18.11.7",
78
78
  "stylelint-find-new-rules": "4.0.0",
79
79
  "typescript": "4.8.4"
80
80
  }
@@ -800,6 +800,7 @@ module.exports = {
800
800
  'white-space',
801
801
  'word-spacing',
802
802
  'hyphens',
803
+ 'hyphenate-character',
803
804
 
804
805
  'src'
805
806
  ]