forked from zawys/vscode-as-git-mergetool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
55 lines (55 loc) · 1.41 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
},
plugins: [
"@typescript-eslint",
"eslint-comments",
"promise",
"unicorn",
"prettier",
"header",
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:eslint-comments/recommended",
"plugin:promise/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended",
"prettier",
],
rules: {
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/semi": ["error", "always"],
"unicorn/filename-case": "off",
"unicorn/no-useless-undefined": "off",
"unicorn/no-nested-ternary": "off",
"unicorn/no-null": "off",
"prettier/prettier": "warn",
"header/header": [
2,
"line",
[
{
pattern:
" Copyright \\(C\\) 2\\d{3} zawys\\. Licensed under AGPL-3\\.0-or-later\\.",
template:
" Copyright (C) 2020 zawys. Licensed under AGPL-3.0-or-later.",
},
" See LICENSE file in repository root directory.",
],
2,
],
"unicorn/expiring-todo-comments": [
"error",
{ terms: ["todo", "fixme", "xxx", "debug"] },
],
},
};