Skip to content

Commit 303fc5d

Browse files
committed
refactor: disable deprecated rules by default
1 parent 3c0c235 commit 303fc5d

File tree

17 files changed

+102
-24
lines changed

17 files changed

+102
-24
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.11-beta.12
1+
1.5.11-next.13

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/monorepo",
3-
"version": "1.5.11-beta.12",
3+
"version": "1.5.11-next.13",
44
"private": true,
55
"description": "A series of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
66
"keywords": [

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/core",
3-
"version": "1.5.11-beta.12",
3+
"version": "1.5.11-next.13",
44
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin-react-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-core",
3-
"version": "1.5.11-beta.12",
3+
"version": "1.5.11-next.13",
44
"description": "ESLint React's ESLint plugin for React related rules.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin-react-debug/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-debug",
3-
"version": "1.5.11-beta.12",
3+
"version": "1.5.11-next.13",
44
"description": "ESLint React's ESLint plugin for debugging related rules.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin-react-dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-dom",
3-
"version": "1.5.11-beta.12",
3+
"version": "1.5.11-next.13",
44
"description": "ESLint React's ESLint plugin for React DOM related rules.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin-react-hooks-extra/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-hooks-extra",
3-
"version": "1.5.11-beta.12",
3+
"version": "1.5.11-next.13",
44
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin-react-naming-convention/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-react-naming-convention",
3-
"version": "1.5.11-beta.12",
3+
"version": "1.5.11-next.13",
44
"description": "ESLint React's ESLint plugin for naming convention related rules.",
55
"homepage": "https://github.com/rel1cx/eslint-react",
66
"bugs": {

packages/plugins/eslint-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eslint-react/eslint-plugin",
3-
"version": "1.5.11-beta.12",
3+
"version": "1.5.11-next.13",
44
"description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
55
"keywords": [
66
"eslint",

packages/plugins/eslint-plugin/src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@ const allPreset = {
2222
"no-class-component": "warn",
2323
"no-clone-element": "warn",
2424
"no-comment-textnodes": "warn",
25-
"no-complicated-conditional-rendering": "warn",
25+
// This rule has been deprecated
26+
// "no-complicated-conditional-rendering": "warn",
2627
"no-component-will-mount": "error",
2728
"no-component-will-receive-props": "error",
2829
"no-component-will-update": "error",
2930
"no-create-ref": "error",
3031
"no-direct-mutation-state": "error",
3132
"no-duplicate-key": "error",
32-
"no-implicit-key": "error",
33+
// This rule has been deprecated
34+
// "no-implicit-key": "error",
35+
// This rule requires type information
3336
// "no-leaked-conditional-rendering": "warn",
3437
"no-missing-component-display-name": "warn",
3538
"no-missing-key": "error",
@@ -95,7 +98,7 @@ const recommendedPreset = {
9598
"no-create-ref": "error",
9699
"no-direct-mutation-state": "error",
97100
"no-duplicate-key": "error",
98-
"no-implicit-key": "error",
101+
// "no-implicit-key": "error",
99102
// "no-leaked-conditional-rendering": "warn",
100103
// "no-missing-component-display-name": "warn",
101104
"no-missing-key": "error",

0 commit comments

Comments
 (0)