Skip to content

Commit

Permalink
chore: stricter eslint
Browse files Browse the repository at this point in the history
using typescript-eslint
  • Loading branch information
chhoumann committed Mar 24, 2023
1 parent 5cf3e28 commit 0fd8101
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
{
"overrides": [
{
"extends": ["plugin:@typescript-eslint/recommended-requiring-type-checking"],
"files": ["*.ts"],
"parserOptions": {
"project": ["./tsconfig.json"]
}
}
],
"root": true,
"parser": "@typescript-eslint/parser",
"env": { "node": true },
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"sourceType": "module"
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
"@typescript-eslint/ban-ts-comment": "off",
"no-prototype-builtins": "off",
"@typescript-eslint/no-empty-function": "off"
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/consistent-type-imports": "warn"
},
"ignorePatterns": ["node_modules/", "main.js"]
}

0 comments on commit 0fd8101

Please sign in to comment.