Skip to content

Commit b575660

Browse files
authored
Merge pull request #14 from novemberfiveco/task/array-type-generic
task/array-type-generic
2 parents 2d57372 + c89bf7b commit b575660

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

packages/cra/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ module.exports = {
3333
allowSingleExtends: false,
3434
},
3535
],
36-
"@typescript-eslint/array-type": ["warn"],
36+
"@typescript-eslint/array-type": [
37+
"warn",
38+
{ default: "generic", readonly: "generic" },
39+
],
3740
"@typescript-eslint/no-non-null-assertion": ["warn"],
3841
"no-unused-vars": "off",
3942
"no-console": ["warn", { allow: ["warn", "error", "info"] }],

packages/next/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ module.exports = {
2828
allowSingleExtends: false,
2929
},
3030
],
31-
"@typescript-eslint/array-type": ["warn"],
31+
"@typescript-eslint/array-type": [
32+
"warn",
33+
{ default: "generic", readonly: "generic" },
34+
],
3235
"@typescript-eslint/no-non-null-assertion": ["warn"],
3336
"@typescript-eslint/no-unused-vars": [
3437
"warn",

packages/react-native/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ module.exports = {
9898
allowSingleExtends: false,
9999
},
100100
],
101-
"@typescript-eslint/array-type": ["warn"],
101+
"@typescript-eslint/array-type": [
102+
"warn",
103+
{ default: "generic", readonly: "generic" },
104+
],
102105
"@typescript-eslint/no-non-null-assertion": ["warn"],
103106
"@typescript-eslint/no-unused-vars": [
104107
"warn",

packages/serverless/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ module.exports = {
4646
allowSingleExtends: false,
4747
},
4848
],
49-
"@typescript-eslint/array-type": ["error", { default: "generic" }],
49+
"@typescript-eslint/array-type": [
50+
"error",
51+
{ default: "generic", readonly: "generic" },
52+
],
5053
"@typescript-eslint/no-non-null-assertion": ["warn"],
5154
"@typescript-eslint/no-floating-promises": [
5255
"error",

packages/vite/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ module.exports = {
4848
allowSingleExtends: false,
4949
},
5050
],
51-
"@typescript-eslint/array-type": ["warn"],
51+
"@typescript-eslint/array-type": [
52+
"warn",
53+
{ default: "generic", readonly: "generic" },
54+
],
5255
"@typescript-eslint/no-non-null-assertion": ["warn"],
5356
"@typescript-eslint/no-unused-vars": [
5457
"warn",

0 commit comments

Comments
 (0)