Skip to content

Commit 6341f80

Browse files
committed
fix(eslint): Correct mistake with replacing 0 with warn
1 parent cdca097 commit 6341f80

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

.eslintrc.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ module.exports = {
3232
"object-shorthand": "warn",
3333
"no-else-return": "warn",
3434
"react/jsx-no-useless-fragment": "warn",
35-
"react/react-in-jsx-scope": "warn",
36-
"react/display-name": "warn",
37-
"react/prop-types": "warn",
35+
"react/react-in-jsx-scope": "off",
36+
"react/display-name": "off",
37+
"react/prop-types": "off",
3838
"react/jsx-sort-props": [
3939
"warn",
4040
{
@@ -46,22 +46,22 @@ module.exports = {
4646
reservedFirst: false,
4747
},
4848
],
49-
"react-hooks/rules-of-hooks": "error",
49+
"react-hooks/rules-of-hooks": "warn",
5050
"react-hooks/exhaustive-deps": "warn",
51-
"@typescript-eslint/explicit-function-return-type": "warn",
52-
"@typescript-eslint/explicit-module-boundary-types": "warn",
53-
"@typescript-eslint/explicit-member-accessibility": "warn",
54-
"@typescript-eslint/indent": 0,
55-
"@typescript-eslint/member-delimiter-style": "warn",
56-
"@typescript-eslint/no-explicit-any": "warn",
57-
"@typescript-eslint/no-var-requires": "warn",
58-
"@typescript-eslint/no-use-before-define": "warn",
51+
"@typescript-eslint/explicit-function-return-type": "off",
52+
"@typescript-eslint/explicit-module-boundary-types": "off",
53+
"@typescript-eslint/explicit-member-accessibility": "off",
54+
"@typescript-eslint/indent": "off",
55+
"@typescript-eslint/member-delimiter-style": "off",
56+
"@typescript-eslint/no-explicit-any": "off",
57+
"@typescript-eslint/no-var-requires": "off",
58+
"@typescript-eslint/no-use-before-define": "off",
5959
"@typescript-eslint/consistent-type-imports": "warn",
6060
"@typescript-eslint/no-unnecessary-condition": "warn",
6161
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
6262
"@typescript-eslint/no-unnecessary-type-constraint": "warn",
63-
"@typescript-eslint/no-unused-vars": "warn",
64-
"no-console": "warn",
63+
"@typescript-eslint/no-unused-vars": "off",
64+
"no-console": "off",
6565
"prettier/prettier": [
6666
"warn",
6767
{
@@ -75,7 +75,7 @@ module.exports = {
7575
},
7676
],
7777
"simple-import-sort/imports": [
78-
"error",
78+
"warn",
7979
{
8080
groups: [
8181
[
@@ -96,8 +96,8 @@ module.exports = {
9696
],
9797
},
9898
],
99-
"simple-import-sort/exports": "error",
100-
"unused-imports/no-unused-imports": "error",
99+
"simple-import-sort/exports": "warn",
100+
"unused-imports/no-unused-imports": "warn",
101101
"unused-imports/no-unused-vars": [
102102
"warn",
103103
{

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-var-requires */
2-
const eslintrc = require("./.eslintrc");
1+
const eslintrc = require('./.eslintrc');
32

43
module.exports = eslintrc;

0 commit comments

Comments
 (0)