-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
34 lines (32 loc) · 997 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* eslint-disable @typescript-eslint/naming-convention -- Externally named. */
"use strict";
module.exports = {
extends: ["@glen-84", "prettier"],
parserOptions: {
project: "tsconfig.eslint.json"
},
env: {
es6: true
},
rules: {
// Place to specify ESLint rules.
"@typescript-eslint/quotes": ["error", "double", {avoidEscape: true}],
"class-methods-use-this": "off" // Messes up with the resolvers since it cannot be static.
},
// Lint .*.js files in the project root directory.
ignorePatterns: ["!/.*.js"],
overrides: [
{
// Files that are run with Node.js.
files: ["./*.js"],
rules: {
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-var-requires": "off",
"strict": ["error", "global"]
},
parserOptions: {
sourceType: "script"
}
}
]
};