Skip to content

Commit 93aa8af

Browse files
committed
feat(config): turn off react/prefer-read-only-props
1 parent 2b08126 commit 93aa8af

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/eslint-config/configs/react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050
'react/no-unsafe': 'error',
5151
'react/no-unused-state': 'error',
5252
'react/prefer-es6-class': 'error',
53-
'react/prefer-read-only-props': 'error',
53+
'react/prefer-read-only-props': 'off',
5454
'react/prop-types': 'off',
5555
'react/self-closing-comp': 'error',
5656
'react/style-prop-object': 'error',

packages/eslint-config/test/__snapshots__/d.ts.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ exports[`keeps rules stable 1`] = `
20252025
"error",
20262026
],
20272027
"react/prefer-read-only-props": [
2028-
"error",
2028+
"off",
20292029
],
20302030
"react/prop-types": [
20312031
"off",

packages/eslint-config/test/__snapshots__/js.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,7 @@ exports[`keeps rules stable 1`] = `
15821582
"error",
15831583
],
15841584
"react/prefer-read-only-props": [
1585-
"error",
1585+
"off",
15861586
],
15871587
"react/prop-types": [
15881588
"off",

packages/eslint-config/test/__snapshots__/jsx.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ exports[`keeps rules stable 1`] = `
15811581
"error",
15821582
],
15831583
"react/prefer-read-only-props": [
1584-
"error",
1584+
"off",
15851585
],
15861586
"react/prop-types": [
15871587
"off",

packages/eslint-config/test/__snapshots__/spec.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ exports[`keeps rules stable 1`] = `
17161716
"error",
17171717
],
17181718
"react/prefer-read-only-props": [
1719-
"error",
1719+
"off",
17201720
],
17211721
"react/prop-types": [
17221722
"off",

packages/eslint-config/test/__snapshots__/ts.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ exports[`keeps rules stable 1`] = `
20242024
"error",
20252025
],
20262026
"react/prefer-read-only-props": [
2027-
"error",
2027+
"off",
20282028
],
20292029
"react/prop-types": [
20302030
"off",

packages/eslint-config/test/__snapshots__/tsx.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ exports[`keeps rules stable 1`] = `
20162016
"error",
20172017
],
20182018
"react/prefer-read-only-props": [
2019-
"error",
2019+
"off",
20202020
],
20212021
"react/prop-types": [
20222022
"off",

0 commit comments

Comments
 (0)