linter-bundle 2.6.0 → 2.8.2

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,36 @@ 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.6.0...HEAD)
9
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.8.2...HEAD)
10
+
11
+ ## [2.8.2] - 2022.02.19
12
+
13
+ - [eslint] Disable `@typescript-eslint/no-unnecessary-type-arguments` rule, because of false positives with `React.FunctionComponent` generics
14
+
15
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.8.1...v2.8.2)
16
+
17
+ ## [2.8.1] - 2022.02.19
18
+
19
+ - [eslint/overrides-javascript] Use [`unicorn/text-encoding-identifier-case`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md) rule, only in JavaScript files.
20
+
21
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.8.0...v2.8.1)
22
+
23
+ ## [2.8.0] - 2022.02.18
24
+
25
+ - [eslint] Update `eslint-plugin-jsdoc` from v37.9.1 to v37.9.4
26
+ - [eslint] Update `eslint-plugin-unicorn` from v40.1.0 to v41.0.0
27
+ - [eslint] Make use of new [`unicorn/text-encoding-identifier-case`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/text-encoding-identifier-case.md) rule
28
+ - [stylelint] Fixed disabling of [`function-no-unknown`](https://github.com/stylelint/stylelint/blob/main/lib/rules/function-no-unknown/README.md) rule, because of false positives
29
+
30
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.7.0...v2.8.0)
31
+
32
+ ## [2.7.0] - 2022.02.16
33
+
34
+ - [eslint] Update `eslint-plugin-jest` from v26.1.0 to v26.1.1
35
+ - [stylelint] Update `stylelint` from v14.5.0 to v14.5.1
36
+ - [eslint] Activate `ignoreUsedVariables` option of [`unicorn/prefer-export-from`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-export-from.md) rule
37
+
38
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.6.0...v2.7.0)
10
39
 
11
40
  ## [2.6.0] - 2022.02.14
12
41
 
@@ -14,7 +43,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
14
43
  - [eslint] Updated `@typescript-eslint/parser` from v5.11.0 to v5.12.0
15
44
  - [eslint] Updated `eslint` from v8.8.0 to v8.9.0
16
45
  - [eslint] Updated `eslint-plugin-jsdoc` from v37.8.2 to v37.9.1
17
- - [eslint] Ignore `generics` in [@typescript-eslint/comma-dangle](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/comma-dangle.md) to allow [generic component definitions for function components](https://wanago.io/2020/03/09/functional-react-components-with-generic-props-in-typescript/#crayon-620a96e97d44a141656396)
46
+ - [eslint] Ignore `generics` in [`@typescript-eslint/comma-dangle`](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/comma-dangle.md) to allow [generic component definitions for function components](https://wanago.io/2020/03/09/functional-react-components-with-generic-props-in-typescript/#crayon-620a96e97d44a141656396)
18
47
 
19
48
  [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.5.0...v2.6.0)
20
49
 
package/eslint/index.js CHANGED
@@ -660,7 +660,7 @@ module.exports = {
660
660
  '@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
661
661
  '@typescript-eslint/no-unnecessary-condition': 'error',
662
662
  '@typescript-eslint/no-unnecessary-qualifier': 'error',
663
- '@typescript-eslint/no-unnecessary-type-arguments': 'error',
663
+ '@typescript-eslint/no-unnecessary-type-arguments': 'off', // @todo Disabled because of false positives with `React.FunctionComponent` generics
664
664
  '@typescript-eslint/no-unnecessary-type-assertion': 'error',
665
665
  '@typescript-eslint/no-unnecessary-type-constraint': 'error',
666
666
  '@typescript-eslint/no-unsafe-argument': 'error',
@@ -966,7 +966,7 @@ module.exports = {
966
966
  'unicorn/prefer-dom-node-dataset': 'off', // `setAttribute` is faster than `dataset`. See https://www.measurethat.net/Benchmarks/Show/7740/0/classname-vs-setattribute-vs-classlist-vs-dataset
967
967
  'unicorn/prefer-dom-node-remove': 'error',
968
968
  'unicorn/prefer-dom-node-text-content': 'error',
969
- 'unicorn/prefer-export-from': 'error',
969
+ 'unicorn/prefer-export-from': ['error', { ignoreUsedVariables: true }],
970
970
  'unicorn/prefer-includes': 'error',
971
971
  'unicorn/prefer-json-parse-buffer': 'error',
972
972
  'unicorn/prefer-keyboard-event-key': 'error',
@@ -1005,6 +1005,7 @@ module.exports = {
1005
1005
  }
1006
1006
  }],
1007
1007
  'unicorn/template-indent': 'error',
1008
+ 'unicorn/text-encoding-identifier-case': 'off',
1008
1009
  'unicorn/throw-new-error': 'error'
1009
1010
  }
1010
1011
  };
@@ -109,7 +109,8 @@ module.exports = {
109
109
  'unicorn/no-process-exit': 'off', // node/no-process-exit
110
110
  'unicorn/prefer-module': 'off', // @todo Requires Node.js v13.2. Activate in 2023
111
111
  'unicorn/prefer-node-protocol': 'off', // @todo Requires Node.js v16. Activate in 2025
112
- 'unicorn/prevent-abbreviations': ['error', { ignore: ['args', 'dev', 'env', 'i', 'j', 'i18n', 'pkg', 'ref', 'Ref', 'req', 'res', 'setupDevServerMiddleware'] }]
112
+ 'unicorn/prevent-abbreviations': ['error', { ignore: ['args', 'dev', 'env', 'i', 'j', 'i18n', 'pkg', 'ref', 'Ref', 'req', 'res', 'setupDevServerMiddleware'] }],
113
+ 'unicorn/text-encoding-identifier-case': 'off'
113
114
  }
114
115
  }
115
116
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linter-bundle",
3
- "version": "2.6.0",
3
+ "version": "2.8.2",
4
4
  "description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -47,17 +47,17 @@
47
47
  "eslint-plugin-eslint-comments": "3.2.0",
48
48
  "eslint-plugin-functional": "4.2.0",
49
49
  "eslint-plugin-import": "2.25.4",
50
- "eslint-plugin-jest": "26.1.0",
51
- "eslint-plugin-jsdoc": "37.9.1",
50
+ "eslint-plugin-jest": "26.1.1",
51
+ "eslint-plugin-jsdoc": "37.9.4",
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.28.0",
56
56
  "eslint-plugin-react-hooks": "4.3.0",
57
- "eslint-plugin-unicorn": "40.1.0",
57
+ "eslint-plugin-unicorn": "41.0.0",
58
58
  "markdownlint-cli": "0.31.1",
59
59
  "postcss-scss": "4.0.3",
60
- "stylelint": "14.5.0",
60
+ "stylelint": "14.5.1",
61
61
  "stylelint-declaration-block-no-ignored-properties": "2.5.0",
62
62
  "stylelint-order": "5.0.0",
63
63
  "stylelint-scss": "4.1.0",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/eslint": "8.4.1",
73
- "@types/node": "17.0.17",
73
+ "@types/node": "17.0.18",
74
74
  "stylelint-find-new-rules": "^3.0.4",
75
75
  "typescript": "4.5.5"
76
76
  }
@@ -183,7 +183,7 @@ module.exports = {
183
183
  'function-linear-gradient-no-nonstandard-direction': true,
184
184
  'function-max-empty-lines': 0,
185
185
  'function-name-case': 'lower',
186
- 'function-no-unknown': false, // @todo Create issue for false positives for "color.scale". Need this be covered by the `ignoreFunctions` option?
186
+ 'function-no-unknown': null, // @todo Create issue for false positives for "color.scale". Need this be covered by the `ignoreFunctions` option?
187
187
  'function-parentheses-newline-inside': 'always-multi-line',
188
188
  'function-parentheses-space-inside': 'never-single-line',
189
189
  'function-url-no-scheme-relative': true,