forked from web-devkits/Wasmnizer-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
35 lines (34 loc) · 991 Bytes
/
.eslintrc.json
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
35
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false,
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": false,
"node": true,
"es6": true
},
"plugins": [
"@typescript-eslint/eslint-plugin",
"no-null",
"import",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
// eslint-plugin-import
// deal with import/export package
"import/no-extraneous-dependencies": ["error", { "optionalDependencies": false }],
"@typescript-eslint/no-this-alias": ["off"],
"@typescript-eslint/no-namespace": ["off"]
// eslint-plugin-no-null
// restricts using null as explicit values for variables or function arguments.
// "no-null/no-null": "error"
}
}