added Linting for TypeScript
This commit is contained in:
17
.eslintrc.js
Normal file
17
.eslintrc.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/* eslint-env node */
|
||||
|
||||
export default {
|
||||
parser: "@typescript-eslint/parser",
|
||||
plugins: ["@typescript-eslint"],
|
||||
extends: [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended"
|
||||
],
|
||||
parserOptions: {
|
||||
project: "./tsconfig.json",
|
||||
sourceType: "module"
|
||||
},
|
||||
rules: {
|
||||
"@typescript-eslint/no-floating-promises": "error"
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user