-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed eslint Update readme and docs Updated version to 1.3.2
- Loading branch information
Showing
11 changed files
with
259 additions
and
165 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,69 +1,69 @@ | ||
module.exports = { | ||
root: true, // Don't look outside this project for inherited configs | ||
parser: "@typescript-eslint/parser", // Specifies the ESLint parser | ||
parserOptions: { | ||
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features | ||
sourceType: "module", // Allows for the use of imports | ||
project: "./tsconfig.json", | ||
}, | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
], | ||
plugins: [], | ||
rules: { | ||
"indent": "off", | ||
"@typescript-eslint/indent": [ | ||
"error", | ||
4, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"quotes": [ | ||
"error", | ||
"double", | ||
{ | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"@typescript-eslint/no-parameter-properties": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-use-before-define": [ | ||
"error", | ||
{ | ||
functions: false, | ||
typedefs: false, | ||
classes: false, | ||
}, | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
ignoreRestSiblings: true, | ||
argsIgnorePattern: "^_", | ||
}, | ||
], | ||
"@typescript-eslint/explicit-function-return-type": [ | ||
"warn", | ||
{ | ||
allowExpressions: true, | ||
allowTypedFunctionExpressions: true, | ||
}, | ||
], | ||
"@typescript-eslint/no-object-literal-type-assertion": "off", | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", // This is necessary for Map.has()/get()! | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"no-trailing-spaces": "error", | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.test.ts"], | ||
rules: { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
}, | ||
}, | ||
], | ||
root: true, // Don't look outside this project for inherited configs | ||
parser: "@typescript-eslint/parser", // Specifies the ESLint parser | ||
parserOptions: { | ||
ecmaVersion: "latest", // Allows for the parsing of modern ECMAScript features | ||
sourceType: "module", // Allows for the use of imports | ||
project: "./tsconfig.json", | ||
}, | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
], | ||
plugins: [], | ||
rules: { | ||
"indent": "off", | ||
"@typescript-eslint/indent": [ | ||
"error", | ||
4, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"quotes": [ | ||
"error", | ||
"double", | ||
{ | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
} | ||
], | ||
"@typescript-eslint/no-parameter-properties": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-use-before-define": [ | ||
"error", | ||
{ | ||
functions: false, | ||
typedefs: false, | ||
classes: false, | ||
}, | ||
], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
ignoreRestSiblings: true, | ||
argsIgnorePattern: "^_", | ||
}, | ||
], | ||
"@typescript-eslint/explicit-function-return-type": [ | ||
"warn", | ||
{ | ||
allowExpressions: true, | ||
allowTypedFunctionExpressions: true, | ||
}, | ||
], | ||
"@typescript-eslint/no-object-literal-type-assertion": "off", | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", // This is necessary for Map.has()/get()! | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"no-trailing-spaces": "error", | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["*.test.ts"], | ||
rules: { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
}, | ||
}, | ||
], | ||
}; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.