File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
cra-template-redux-typescript/template
cra-template-redux/template Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import reactHooksPlugin from "eslint-plugin-react-hooks"
6
6
import globals from "globals"
7
7
import { config , configs } from "typescript-eslint"
8
8
9
- export default config (
9
+ const eslintConfig = config (
10
10
{
11
11
name : "global-ignores" ,
12
12
ignores : [
@@ -52,6 +52,7 @@ export default config(
52
52
} ,
53
53
} ,
54
54
rules : {
55
+ "no-undef" : [ 0 ] ,
55
56
"no-restricted-imports" : [
56
57
2 ,
57
58
{
@@ -79,3 +80,5 @@ export default config(
79
80
80
81
prettierConfig ,
81
82
)
83
+
84
+ export default eslintConfig
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import reactHooksPlugin from "eslint-plugin-react-hooks"
6
6
import globals from "globals"
7
7
import { config , configs } from "typescript-eslint"
8
8
9
- export default config (
9
+ const eslintConfig = config (
10
10
{
11
11
name : "global-ignores" ,
12
12
ignores : [
@@ -50,3 +50,5 @@ export default config(
50
50
51
51
prettierConfig ,
52
52
)
53
+
54
+ export default eslintConfig
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import reactHooksPlugin from "eslint-plugin-react-hooks"
6
6
import globals from "globals"
7
7
import { config , configs } from "typescript-eslint"
8
8
9
- const ESLintConfig = config (
9
+ const eslintConfig = config (
10
10
{
11
11
name : "global-ignores" ,
12
12
ignores : [
@@ -55,6 +55,7 @@ const ESLintConfig = config(
55
55
} ,
56
56
} ,
57
57
rules : {
58
+ "no-undef" : [ 0 ] ,
58
59
"@typescript-eslint/consistent-type-definitions" : [ 2 , "type" ] ,
59
60
"@typescript-eslint/consistent-type-imports" : [
60
61
2 ,
@@ -83,4 +84,4 @@ const ESLintConfig = config(
83
84
prettierConfig ,
84
85
)
85
86
86
- export default ESLintConfig
87
+ export default eslintConfig
You can’t perform that action at this time.
0 commit comments