-
-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
24 lines (24 loc) · 640 Bytes
/
.eslintrc.cjs
File metadata and controls
24 lines (24 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module.exports = {
extends: ["standard-with-typescript"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig-eslint.json",
tsconfigRootDir: __dirname,
sourceType: "module",
warnOnUnsupportedTypeScriptVersion: false,
},
plugins: [
"redos",
"simple-import-sort"
],
rules: {
// note you must disable the base rule as it can report incorrect errors
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/triple-slash-reference": "off",
"simple-import-sort/imports": "error",
},
env: {
mocha: true
}
};