Skip to content

Commit

Permalink
Merge pull request #14 from novemberfiveco/task/array-type-generic
Browse files Browse the repository at this point in the history
task/array-type-generic
  • Loading branch information
DriesH authored Feb 17, 2024
2 parents 2d57372 + c89bf7b commit b575660
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
5 changes: 4 additions & 1 deletion packages/cra/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ module.exports = {
allowSingleExtends: false,
},
],
"@typescript-eslint/array-type": ["warn"],
"@typescript-eslint/array-type": [
"warn",
{ default: "generic", readonly: "generic" },
],
"@typescript-eslint/no-non-null-assertion": ["warn"],
"no-unused-vars": "off",
"no-console": ["warn", { allow: ["warn", "error", "info"] }],
Expand Down
5 changes: 4 additions & 1 deletion packages/next/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ module.exports = {
allowSingleExtends: false,
},
],
"@typescript-eslint/array-type": ["warn"],
"@typescript-eslint/array-type": [
"warn",
{ default: "generic", readonly: "generic" },
],
"@typescript-eslint/no-non-null-assertion": ["warn"],
"@typescript-eslint/no-unused-vars": [
"warn",
Expand Down
5 changes: 4 additions & 1 deletion packages/react-native/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ module.exports = {
allowSingleExtends: false,
},
],
"@typescript-eslint/array-type": ["warn"],
"@typescript-eslint/array-type": [
"warn",
{ default: "generic", readonly: "generic" },
],
"@typescript-eslint/no-non-null-assertion": ["warn"],
"@typescript-eslint/no-unused-vars": [
"warn",
Expand Down
5 changes: 4 additions & 1 deletion packages/serverless/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ module.exports = {
allowSingleExtends: false,
},
],
"@typescript-eslint/array-type": ["error", { default: "generic" }],
"@typescript-eslint/array-type": [
"error",
{ default: "generic", readonly: "generic" },
],
"@typescript-eslint/no-non-null-assertion": ["warn"],
"@typescript-eslint/no-floating-promises": [
"error",
Expand Down
5 changes: 4 additions & 1 deletion packages/vite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ module.exports = {
allowSingleExtends: false,
},
],
"@typescript-eslint/array-type": ["warn"],
"@typescript-eslint/array-type": [
"warn",
{ default: "generic", readonly: "generic" },
],
"@typescript-eslint/no-non-null-assertion": ["warn"],
"@typescript-eslint/no-unused-vars": [
"warn",
Expand Down

0 comments on commit b575660

Please sign in to comment.