Skip to content

Commit

Permalink
chore: Migrate to use typescript-eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Jan 8, 2021
1 parent 05b4670 commit e54f660
Show file tree
Hide file tree
Showing 8 changed files with 1,802 additions and 1,273 deletions.
8 changes: 8 additions & 0 deletions .build.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": [
"./.eslintrc.json"
],
"rules": {
"no-debugger": "error"
}
}
45 changes: 45 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:promise/recommended",
"plugin:regexp/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-async-promise-executor": "off",
"no-debugger": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": [
"error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"@typescript-eslint/consistent-type-imports": [
"error", {
"prefer": "type-imports",
"disallowTypeAnnotations": false
}
]
}
}
Loading

0 comments on commit e54f660

Please sign in to comment.