linter-bundle 2.11.1 → 2.12.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,28 @@ 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.11.1...HEAD)
9
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.12.0...HEAD)
10
+
11
+ ## [2.12.0] - 2022.03.30
12
+
13
+ ### Changed
14
+
15
+ - [eslint] Updated `@typescript-eslint` from `5.14.0` to `5.17.0`
16
+ - [eslint] Updated `eslint` from `8.11.0` to `8.12.0`
17
+ - [eslint] Updated `eslint-import-resolver-typescript` from `2.5.0` to `2.7.0`
18
+ - [eslint] Updated `eslint-plugin-jest` from `26.1.1` to `26.1.3`
19
+ - [eslint] Updated `eslint-plugin-jsdoc` from `38.0.2` to `38.1.4`
20
+ - [eslint] Updated `eslint-plugin-react` from `7.29.3` to `7.29.4`
21
+ - [eslint] Updated `eslint-plugin-react-hooks` from `4.3.0` to `4.4.0`
22
+ - [eslint] Updated `eslint-plugin-unicorn` from `41.0.0` to `41.0.1`
23
+ - [stylelint] Updated `stylelint` from `14.5.3` to `14.6.1`
24
+ - [stylelint] Updated `stylelint-scss` from `4.1.0` to `4.2.0`
25
+ - Updated `micromatch` from `4.0.4` to `4.0.5`
26
+ - [eslint] Make use of [`destructuredArrayIgnorePattern`](https://eslint.org/docs/rules/no-unused-vars#destructuredarrayignorepattern) of `@typescript-eslint/no-unused-vars` rule, to ignore variables with leading underscore.
27
+ - [stylelint] Make use of [`declaration-property-max-values`](https://stylelint.io/user-guide/rules/list/declaration-property-max-values/) rule, and set `unprefixed-property-name` to `4`
28
+ - [stylelint] Replace `function-no-unknown` by `scss/function-no-unknown`
29
+
30
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.11.1...v2.12.0)
10
31
 
11
32
  ## [2.11.1] - 2022.03.13
12
33
 
package/README.md CHANGED
@@ -168,7 +168,7 @@ module.exports = {
168
168
  Source | Description | Rules setup
169
169
  -|-|-
170
170
  `linter-bundle/eslint` | General rule setup. This is also the base for the following **overrides**. | [View](./eslint/index.js)
171
- `linter-bundle/eslint/overrides-gatsby` | Settings for Gatsby-based projects. | [View](./eslint/overrides-gatsby)
171
+ `linter-bundle/eslint/overrides-gatsby` | Settings for Gatsby-based projects. | [View](./eslint/overrides-gatsby.js)
172
172
  `linter-bundle/eslint/overrides-javascript` | Strict settings for JavaScript files, which enforces correct types everywhere. | [View](./eslint/overrides-javascript.js)
173
173
  `linter-bundle/eslint/overrides-javascript-lazy` | Can be used instead of `overrides-javascript`. It's less strict and allows the `any` type. | [View](./eslint/overrides-javascript-lazy.js)
174
174
  `linter-bundle/eslint/overrides-jest` | Settings for projects using Jest. | [View](./eslint/overrides-jest.js)
package/eslint/index.js CHANGED
@@ -689,7 +689,7 @@ module.exports = {
689
689
  '@typescript-eslint/no-unsafe-member-access': 'error',
690
690
  '@typescript-eslint/no-unsafe-return': 'error',
691
691
  '@typescript-eslint/no-unused-expressions': 'error',
692
- '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
692
+ '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' }],
693
693
  '@typescript-eslint/no-use-before-define': ['error', { functions: false }],
694
694
  '@typescript-eslint/no-useless-constructor': 'error',
695
695
  '@typescript-eslint/no-var-requires': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linter-bundle",
3
- "version": "2.11.1",
3
+ "version": "2.12.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,29 +39,29 @@
39
39
  "check-outdated": "npx --yes -- check-outdated --ignore-pre-releases"
40
40
  },
41
41
  "dependencies": {
42
- "@typescript-eslint/eslint-plugin": "5.14.0",
43
- "@typescript-eslint/parser": "5.14.0",
44
- "eslint": "8.11.0",
45
- "eslint-import-resolver-typescript": "2.5.0",
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",
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.1",
51
- "eslint-plugin-jsdoc": "38.0.2",
50
+ "eslint-plugin-jest": "26.1.3",
51
+ "eslint-plugin-jsdoc": "38.1.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
- "eslint-plugin-react": "7.29.3",
56
- "eslint-plugin-react-hooks": "4.3.0",
57
- "eslint-plugin-unicorn": "41.0.0",
55
+ "eslint-plugin-react": "7.29.4",
56
+ "eslint-plugin-react-hooks": "4.4.0",
57
+ "eslint-plugin-unicorn": "41.0.1",
58
58
  "markdownlint-cli": "0.31.1",
59
- "micromatch": "4.0.4",
59
+ "micromatch": "4.0.5",
60
60
  "postcss-scss": "4.0.3",
61
- "stylelint": "14.5.3",
61
+ "stylelint": "14.6.1",
62
62
  "stylelint-declaration-block-no-ignored-properties": "2.5.0",
63
63
  "stylelint-order": "5.0.0",
64
- "stylelint-scss": "4.1.0",
64
+ "stylelint-scss": "4.2.0",
65
65
  "stylelint-selector-no-empty": "1.0.8",
66
66
  "stylelint-use-logical-spec": "3.2.2"
67
67
  },
@@ -72,8 +72,8 @@
72
72
  "devDependencies": {
73
73
  "@types/eslint": "8.4.1",
74
74
  "@types/micromatch": "4.0.2",
75
- "@types/node": "17.0.21",
75
+ "@types/node": "17.0.23",
76
76
  "stylelint-find-new-rules": "4.0.0",
77
- "typescript": "4.6.2"
77
+ "typescript": "4.6.3"
78
78
  }
79
79
  }
@@ -157,6 +157,7 @@ module.exports = {
157
157
  ]
158
158
  }
159
159
  ],
160
+ 'declaration-property-max-values': [true, { 'unprefixed-property-name': 4 }],
160
161
  'declaration-no-important': [true, {
161
162
  severity: 'warning'
162
163
  }],
@@ -183,7 +184,7 @@ module.exports = {
183
184
  'function-linear-gradient-no-nonstandard-direction': true,
184
185
  'function-max-empty-lines': 0,
185
186
  'function-name-case': 'lower',
186
- 'function-no-unknown': null, // @todo Create issue for false positives for "color.scale". Need this be covered by the `ignoreFunctions` option?
187
+ 'function-no-unknown': null, // Implemented by scss/function-no-unknown
187
188
  'function-parentheses-newline-inside': 'always-multi-line',
188
189
  'function-parentheses-space-inside': 'never-single-line',
189
190
  'function-url-no-scheme-relative': true,
@@ -890,6 +891,7 @@ module.exports = {
890
891
  'scss/double-slash-comment-inline': null,
891
892
  'scss/double-slash-comment-whitespace-inside': 'always',
892
893
  'scss/function-color-relative': true,
894
+ 'scss/function-no-unknown': true,
893
895
  'scss/function-quote-no-quoted-strings-inside': true,
894
896
  'scss/function-unquote-no-unquoted-strings-inside': true,
895
897
  'scss/map-keys-quotes': 'always',