-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrading to tslint * more lint stuff * more lint fixes * all errors are gone * reduced eslint ignores * fixed todos * more shenanigans * added a few rules
- Loading branch information
1 parent
a8f8c47
commit a8f99cc
Showing
51 changed files
with
1,444 additions
and
853 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
lib | ||
**/*.js |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
}, | ||
plugins: ["@typescript-eslint", "security", "prettier"], | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended", | ||
"plugin:security/recommended", | ||
], | ||
rules: { | ||
"@typescript-eslint/no-inferrable-types": "off", | ||
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }], | ||
"@typescript-eslint/space-infix-ops": "error", | ||
"@typescript-eslint/switch-exhaustiveness-check": "error", | ||
"@typescript-eslint/typedef": [ | ||
"error", | ||
{ | ||
arrayDestructuring: true, | ||
arrowParameter: true, | ||
memberVariableDeclaration: true, | ||
objectDestructuring: true, | ||
parameter: true, | ||
propertyDeclaration: true, | ||
variableDeclaration: true, | ||
}, | ||
], | ||
"@typescript-eslint/unified-signatures": "error", | ||
"prettier/prettier": ["error"], | ||
"security/detect-non-literal-fs-filename": "off", | ||
"security/detect-object-injection": "off", | ||
}, | ||
}; |
Oops, something went wrong.