linter-bundle 2.5.0 → 2.8.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
@@ -6,7 +6,40 @@ 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.5.0...HEAD)
9
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.8.1...HEAD)
10
+
11
+ ## [2.8.1] - 2022.02.19
12
+
13
+ - [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.
14
+
15
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.8.0...v2.8.1)
16
+
17
+ ## [2.8.0] - 2022.02.18
18
+
19
+ - [eslint] Update `eslint-plugin-jsdoc` from v37.9.1 to v37.9.4
20
+ - [eslint] Update `eslint-plugin-unicorn` from v40.1.0 to v41.0.0
21
+ - [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
22
+ - [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
23
+
24
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.7.0...v2.8.0)
25
+
26
+ ## [2.7.0] - 2022.02.16
27
+
28
+ - [eslint] Update `eslint-plugin-jest` from v26.1.0 to v26.1.1
29
+ - [stylelint] Update `stylelint` from v14.5.0 to v14.5.1
30
+ - [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
31
+
32
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.6.0...v2.7.0)
33
+
34
+ ## [2.6.0] - 2022.02.14
35
+
36
+ - [eslint] Updated `@typescript-eslint/eslint-plugin` from v5.11.0 to v5.12.0
37
+ - [eslint] Updated `@typescript-eslint/parser` from v5.11.0 to v5.12.0
38
+ - [eslint] Updated `eslint` from v8.8.0 to v8.9.0
39
+ - [eslint] Updated `eslint-plugin-jsdoc` from v37.8.2 to v37.9.1
40
+ - [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)
41
+
42
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.5.0...v2.6.0)
10
43
 
11
44
  ## [2.5.0] - 2022.02.11
12
45
 
package/eslint/index.js CHANGED
@@ -416,7 +416,9 @@ module.exports = {
416
416
  }],
417
417
  '@typescript-eslint/brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
418
418
  '@typescript-eslint/class-literal-property-style': 'error',
419
- '@typescript-eslint/comma-dangle': ['error', 'never'],
419
+ '@typescript-eslint/comma-dangle': ['error', {
420
+ generics: 'ignore'
421
+ }],
420
422
  '@typescript-eslint/comma-spacing': 'error',
421
423
  '@typescript-eslint/consistent-indexed-object-style': 'error',
422
424
  '@typescript-eslint/consistent-type-assertions': 'error',
@@ -964,7 +966,7 @@ module.exports = {
964
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
965
967
  'unicorn/prefer-dom-node-remove': 'error',
966
968
  'unicorn/prefer-dom-node-text-content': 'error',
967
- 'unicorn/prefer-export-from': 'error',
969
+ 'unicorn/prefer-export-from': ['error', { ignoreUsedVariables: true }],
968
970
  'unicorn/prefer-includes': 'error',
969
971
  'unicorn/prefer-json-parse-buffer': 'error',
970
972
  'unicorn/prefer-keyboard-event-key': 'error',
@@ -1003,6 +1005,7 @@ module.exports = {
1003
1005
  }
1004
1006
  }],
1005
1007
  'unicorn/template-indent': 'error',
1008
+ 'unicorn/text-encoding-identifier-case': 'off',
1006
1009
  'unicorn/throw-new-error': 'error'
1007
1010
  }
1008
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.5.0",
3
+ "version": "2.8.1",
4
4
  "description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -39,25 +39,25 @@
39
39
  "check-outdated": "npx --yes -- check-outdated --ignore-pre-releases"
40
40
  },
41
41
  "dependencies": {
42
- "@typescript-eslint/eslint-plugin": "5.11.0",
43
- "@typescript-eslint/parser": "5.11.0",
44
- "eslint": "8.8.0",
42
+ "@typescript-eslint/eslint-plugin": "5.12.0",
43
+ "@typescript-eslint/parser": "5.12.0",
44
+ "eslint": "8.9.0",
45
45
  "eslint-import-resolver-typescript": "2.5.0",
46
46
  "eslint-import-resolver-webpack": "0.13.2",
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.8.2",
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,