linter-bundle 2.25.0 → 2.25.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,16 @@ 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.0...HEAD)
9
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.25.1...HEAD)
10
+
11
+ ## [2.25.1] - 2022-10-20
12
+
13
+ ### Removed
14
+
15
+ - [eslint/overrides-react] Revert: Replaced deprecated `react/jsx-sort-default-props` rule by new [`react/sort-default-props`](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/sort-default-props.md) rule
16
+ - [eslint/overrides-react] Revert: Activate `allowDestructuredState` option of [`react/hook-use-state`](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/hook-use-state.md) rule
17
+
18
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.25.0...v2.25.1)
10
19
 
11
20
  ## [2.25.0] - 2022-10-20
12
21
 
@@ -27,8 +36,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
27
36
  - [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
28
37
  - [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"`
29
38
  - [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
30
- - [eslint/overrides-react] Replaced deprecated `react/jsx-sort-default-props` rule by new [`react/sort-default-props`](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/sort-default-props.md) rule
31
- - [eslint/overrides-react] Activate `allowDestructuredState` option of [`react/hook-use-state`](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/hook-use-state.md) rule
32
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
33
40
  - [stylelint] Updated `stylelint` from `14.12.1` to `14.14.0`
34
41
  - [stylelint] Ignore `!default` annotation in [`annotation-no-unknown`](https://stylelint.io/user-guide/rules/annotation-no-unknown/) rule
@@ -103,7 +103,7 @@ module.exports = {
103
103
  namedComponents: 'arrow-function',
104
104
  unnamedComponents: 'arrow-function'
105
105
  }],
106
- 'react/hook-use-state': ['error', { allowDestructuredState: true }],
106
+ 'react/hook-use-state': 'error', // ['error', { allowDestructuredState: true }],
107
107
  'react/jsx-boolean-value': ['error', 'always'],
108
108
  'react/jsx-child-element-spacing': 'off', // @todo Why is this disabled? Could it be, that the faulty behaviour is fixed in the meantime?
109
109
  'react/jsx-closing-bracket-location': 'error',
@@ -205,7 +205,7 @@ module.exports = {
205
205
  'static-methods'
206
206
  ]
207
207
  }],
208
- 'react/sort-default-props': 'error',
208
+ 'react/jsx-sort-default-props': 'error', // sort-default-props
209
209
  'react/sort-prop-types': 'error',
210
210
  'react/state-in-constructor': 'error',
211
211
  'react/static-property-placement': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linter-bundle",
3
- "version": "2.25.0",
3
+ "version": "2.25.1",
4
4
  "description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
5
5
  "keywords": [
6
6
  "eslint",