forked from ritwickdey/vscode-live-sass-compiler
-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.js
31 lines (28 loc) · 988 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
module.exports = {
env: {
es6: true,
node: true,
},
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
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
],
ignorePatterns: ["node_modules", "out"],
rules: {
// enable additional rules
semi: ["error", "always"],
curly: "error",
// override default options for rules from base configurations
"no-cond-assign": ["error", "always"],
// disable rules from base configurations
"no-console": "off",
// ts rules
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-assertion": "off",
},
};