forked from kantai/multisig-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
46 lines (42 loc) · 1.21 KB
/
.eslintrc.cjs
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
/* eslint-env node */
// TODO: Get rules requiring `parserOptions` working
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
//'plugin:@typescript-eslint/recommended-type-checked'
],
parser: '@typescript-eslint/parser',
/*
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
*/
plugins: ['@typescript-eslint'],
rules: {
// Possible Problems
'no-duplicate-imports': 'warn',
// Layout & Formatting
'indent': ['warn', 2],
'no-trailing-spaces': 'warn',
'semi': ['warn', 'always'],
//'quotes': ['error', 'single', { 'avoidEscape': true, 'allowTemplateLiterals': true }],
// Suggestions
//'dot-notation': 'error',
'eqeqeq': ['error', 'always'],
'no-eval': 'error',
'no-var': 'error',
// @typescript-eslint
//'@typescript-eslint/prefer-nullish-coalescing': 'error',
//'@typescript-eslint/prefer-readonly': 'error',
//'@typescript-eslint/promise-function-async': 'error',
// @typescript-eslint Extension Rules
//'@typescript-eslint/dot-notation': 'error',
//'@typescript-eslint/no-use-before-define': 'error',
},
ignorePatterns: [
'dist/*'
],
root: true,
};