Skip to content

Commit

Permalink
Add rules from existing .eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Feb 13, 2024
1 parent ad553ed commit 816cf28
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,18 @@ export default tseslint.config({
},
},
rules: {
"@typescript-eslint/no-unsafe-argument": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-call": "error",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/no-unsafe-return": "error",
"import/order": ["error", { alphabetize: { order: "asc" } }],
"import/first": "error",
"import/no-mutable-exports": "error",
"import/no-unresolved": "off",
"@typescript-eslint/array-type": ["error", { default: "array" }],
"@typescript-eslint/naming-convention": [
"error",
{
selector: "default",
format: ["camelCase", "UPPER_CASE", "PascalCase"],
leadingUnderscore: "allow",
},
],
},
});

0 comments on commit 816cf28

Please sign in to comment.