-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
314 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,38 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
// Standard rules | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"no-unused-vars": "off", | ||
"no-undef": "error", | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/strict"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
// Standard rules | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"no-unused-vars": "off", | ||
"no-undef": "error", | ||
|
||
// Prevents duplicate imports | ||
"no-duplicate-imports": "error", | ||
|
||
// Prevents return in constructor | ||
"no-constructor-return": "error", | ||
// Prevents duplicate imports | ||
"no-duplicate-imports": "error", | ||
|
||
// Prevents return in promise executor | ||
"no-promise-executor-return": "error", | ||
// Prevents return in constructor | ||
"no-constructor-return": "error", | ||
|
||
// disable string concatenation | ||
"prefer-template": "error", | ||
// Prevents return in promise executor | ||
"no-promise-executor-return": "error", | ||
|
||
// TypeScript specific | ||
"@typescript-eslint/no-unused-vars" : "error", | ||
"@typescript-eslint/no-explicit-any": "error" | ||
} | ||
// disable string concatenation | ||
"prefer-template": "error", | ||
|
||
"dot-notation": "error", | ||
"func-style": ["error", "declaration", { "allowArrowFunctions": true }], | ||
"object-shorthand": "error", | ||
"capitalized-comments": "error", | ||
"spaced-comment": "error" | ||
} | ||
} |
Oops, something went wrong.