linter-bundle 2.25.0 → 2.25.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,22 @@ 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.2...HEAD)
10
+
11
+ ## [2.25.2] - 2022-10-20
12
+
13
+ - [eslint/overrides-react] Revert: 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
14
+
15
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.25.1...v2.25.2)
16
+
17
+ ## [2.25.1] - 2022-10-20
18
+
19
+ ### Removed
20
+
21
+ - [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
22
+ - [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
23
+
24
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v2.25.0...v2.25.1)
10
25
 
11
26
  ## [2.25.0] - 2022-10-20
12
27
 
@@ -27,9 +42,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
27
42
  - [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
43
  - [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
44
  - [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
- - [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
45
  - [stylelint] Updated `stylelint` from `14.12.1` to `14.14.0`
34
46
  - [stylelint] Ignore `!default` annotation in [`annotation-no-unknown`](https://stylelint.io/user-guide/rules/annotation-no-unknown/) rule
35
47
 
@@ -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',
@@ -164,7 +164,7 @@ module.exports = {
164
164
  'react/no-is-mounted': 'error',
165
165
  'react/no-multi-comp': 'error',
166
166
  'react/no-namespace': 'error',
167
- 'react/no-object-type-as-default-prop': 'error',
167
+ // 'react/no-object-type-as-default-prop': 'error',
168
168
  'react/no-redundant-should-component-update': 'error',
169
169
  'react/no-render-return-value': 'error',
170
170
  'react/no-set-state': 'off',
@@ -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.2",
4
4
  "description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
5
5
  "keywords": [
6
6
  "eslint",