linter-bundle 2.12.0 → 2.13.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,33 @@ 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.12.0...HEAD)
9
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.13.0...HEAD)
10
+
11
+ ## [2.13.0] - 2022.04.25
12
+
13
+ ### Changed
14
+
15
+ - [eslint] Activate `allowExpressions` option of [`@typescript-eslint/explicit-function-return-type`](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-function-return-type.md) rule
16
+ - [eslint] Updated `@typescript-eslint` from `5.17.0` to `5.21.0`
17
+ - [eslint] Updated `eslint` from `8.12.0` to `8.14.0`
18
+ - [eslint] Updated `eslint-import-resolver-typescript` from `2.7.0` to `2.7.1`
19
+ - [eslint] Updated `eslint-plugin-functional` from `4.2.0` to `4.2.1`
20
+ - [eslint] Updated `eslint-plugin-import` from `2.25.4` to `2.26.0`
21
+ - [eslint] Updated `eslint-plugin-jest` from `26.1.3` to `26.1.5`
22
+ - [eslint] Updated `eslint-plugin-jsdoc` from `38.1.4` to `39.2.8`
23
+ - [eslint] Updated `eslint-plugin-unicorn` from `41.0.1` to `42.0.0`
24
+ - [stylelint] Updated `postcss-scss` from `4.0.3` to `4.0.4`
25
+ - [stylelint] Updated `stylelint` from `14.6.1` to `14.7.1`
26
+ - [eslint] Activate `allowExpressions` option of [`@typescript-eslint/explicit-function-return-type`](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-function-return-type.md) rule
27
+ - [eslint/overrides-jsdoc] Set [`minLineCount` option to 2](https://github.com/gajus/eslint-plugin-jsdoc/issues/870) for `require-jsdoc` rule
28
+ - [eslint] Reactivated the [`import/no-relative-packages`](https://github.com/import-js/eslint-plugin-import/blob/master/docs/rules/no-relative-packages.md) rule
29
+ - [eslint] Make use of [`unicorn/no-useless-switch-case`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-switch-case.md) rule
30
+ - [eslint] Make use of [`unicorn/prefer-modern-math-apis`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-math-apis.md) rule
31
+ - [eslint] Make use of [`unicorn/no-unreadable-iife`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unreadable-iife.md) rule
32
+ - [eslint] Add but disable [`unicorn/prefer-native-coercion-functions`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-native-coercion-functions.md) rule, because this would produce inconsistency in the code and is harder to read
33
+ - [stylelint] Set new [`selector-not-notation`](https://github.com/stylelint/stylelint/blob/main/lib/rules/selector-not-notation/README.md) rule to `"complex"`
34
+
35
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.12.0...v2.13.0)
10
36
 
11
37
  ## [2.12.0] - 2022.03.30
12
38
 
package/eslint/index.js CHANGED
@@ -426,7 +426,7 @@ module.exports = {
426
426
  '@typescript-eslint/consistent-type-exports': 'error',
427
427
  '@typescript-eslint/consistent-type-imports': ['error', { disallowTypeAnnotations: false }],
428
428
  '@typescript-eslint/dot-notation': 'error',
429
- '@typescript-eslint/explicit-function-return-type': 'error',
429
+ '@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true }],
430
430
  '@typescript-eslint/explicit-member-accessibility': ['error', {
431
431
  ignoredMethodNames: [
432
432
  'constructor',
@@ -800,7 +800,7 @@ module.exports = {
800
800
  'import/no-named-export': 'off',
801
801
  'import/no-namespace': 'off', // @todo Enabling this produces a JavaScript error in the rule; anyhow - could that reduce the package size, because of improved tree-shaking/dead-code-elimination?
802
802
  'import/no-nodejs-modules': 'error',
803
- // 'import/no-relative-packages': 'error', -- Removed because of roll-back of eslint-plugin-import in version 1.18.0
803
+ 'import/no-relative-packages': 'error',
804
804
  'import/no-relative-parent-imports': 'off', // @todo Disabled because of a bug on Windows, re-enable as soon as it's resolved: https://github.com/import-js/eslint-plugin-import/issues/1644
805
805
  'import/no-restricted-paths': 'error',
806
806
  'import/no-self-import': 'error',
@@ -961,6 +961,7 @@ module.exports = {
961
961
  'unicorn/no-thenable': 'error',
962
962
  'unicorn/no-this-assignment': 'error',
963
963
  'unicorn/no-unreadable-array-destructuring': 'error',
964
+ 'unicorn/no-unreadable-iife': 'error',
964
965
  'unicorn/no-unsafe-regex': 'off',
965
966
  'unicorn/no-unused-properties': 'error',
966
967
  'unicorn/no-useless-fallback-in-spread': 'error',
@@ -968,6 +969,7 @@ module.exports = {
968
969
  'unicorn/no-invalid-remove-event-listener': 'error',
969
970
  'unicorn/no-useless-length-check': 'error',
970
971
  'unicorn/no-useless-spread': 'error',
972
+ 'unicorn/no-useless-switch-case': 'error',
971
973
  'unicorn/no-useless-undefined': ['error', { checkArguments: false }],
972
974
  'unicorn/no-zero-fractions': 'error',
973
975
  'unicorn/number-literal-case': 'error',
@@ -992,7 +994,9 @@ module.exports = {
992
994
  'unicorn/prefer-keyboard-event-key': 'error',
993
995
  'unicorn/prefer-math-trunc': 'error',
994
996
  'unicorn/prefer-modern-dom-apis': 'error',
997
+ 'unicorn/prefer-modern-math-apis': 'error',
995
998
  'unicorn/prefer-module': 'off',
999
+ 'unicorn/prefer-native-coercion-functions': 'off',
996
1000
  'unicorn/prefer-negative-index': 'error',
997
1001
  'unicorn/prefer-number-properties': 'error',
998
1002
  'unicorn/prefer-object-has-own': 'off', // Not widely supported yet. Can be activated in 2024
@@ -50,7 +50,7 @@ module.exports = {
50
50
  'jsdoc/require-example': 'off',
51
51
  'jsdoc/require-file-overview': 'error',
52
52
  'jsdoc/require-hyphen-before-param-description': 'error',
53
- 'jsdoc/require-jsdoc': 'error',
53
+ 'jsdoc/require-jsdoc': ['error', { minLineCount: 2 }],
54
54
  'jsdoc/require-param-description': 'error',
55
55
  'jsdoc/require-param-name': 'error',
56
56
  'jsdoc/require-param-type': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linter-bundle",
3
- "version": "2.12.0",
3
+ "version": "2.13.0",
4
4
  "description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -39,26 +39,26 @@
39
39
  "check-outdated": "npx --yes -- check-outdated --ignore-pre-releases"
40
40
  },
41
41
  "dependencies": {
42
- "@typescript-eslint/eslint-plugin": "5.17.0",
43
- "@typescript-eslint/parser": "5.17.0",
44
- "eslint": "8.12.0",
45
- "eslint-import-resolver-typescript": "2.7.0",
42
+ "@typescript-eslint/eslint-plugin": "5.21.0",
43
+ "@typescript-eslint/parser": "5.21.0",
44
+ "eslint": "8.14.0",
45
+ "eslint-import-resolver-typescript": "2.7.1",
46
46
  "eslint-import-resolver-webpack": "0.13.2",
47
47
  "eslint-plugin-eslint-comments": "3.2.0",
48
- "eslint-plugin-functional": "4.2.0",
49
- "eslint-plugin-import": "2.25.4",
50
- "eslint-plugin-jest": "26.1.3",
51
- "eslint-plugin-jsdoc": "38.1.4",
48
+ "eslint-plugin-functional": "4.2.1",
49
+ "eslint-plugin-import": "2.26.0",
50
+ "eslint-plugin-jest": "26.1.5",
51
+ "eslint-plugin-jsdoc": "39.2.8",
52
52
  "eslint-plugin-jsx-a11y": "6.5.1",
53
53
  "eslint-plugin-node": "11.1.0",
54
54
  "eslint-plugin-promise": "6.0.0",
55
55
  "eslint-plugin-react": "7.29.4",
56
56
  "eslint-plugin-react-hooks": "4.4.0",
57
- "eslint-plugin-unicorn": "41.0.1",
57
+ "eslint-plugin-unicorn": "42.0.0",
58
58
  "markdownlint-cli": "0.31.1",
59
59
  "micromatch": "4.0.5",
60
- "postcss-scss": "4.0.3",
61
- "stylelint": "14.6.1",
60
+ "postcss-scss": "4.0.4",
61
+ "stylelint": "14.7.1",
62
62
  "stylelint-declaration-block-no-ignored-properties": "2.5.0",
63
63
  "stylelint-order": "5.0.0",
64
64
  "stylelint-scss": "4.2.0",
@@ -72,7 +72,7 @@
72
72
  "devDependencies": {
73
73
  "@types/eslint": "8.4.1",
74
74
  "@types/micromatch": "4.0.2",
75
- "@types/node": "17.0.23",
75
+ "@types/node": "17.0.27",
76
76
  "stylelint-find-new-rules": "4.0.0",
77
77
  "typescript": "4.6.3"
78
78
  }
@@ -290,6 +290,7 @@ module.exports = {
290
290
  'selector-nested-pattern': null,
291
291
  'selector-no-qualifying-type': [true, { ignore: ['attribute', 'class'] }],
292
292
  'selector-no-vendor-prefix': true,
293
+ 'selector-not-notation': 'complex',
293
294
  'selector-pseudo-class-allowed-list': null,
294
295
  'selector-pseudo-class-case': 'lower',
295
296
  'selector-pseudo-class-disallowed-list': null,