generated from mmisty/npm-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (45 loc) · 1.48 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
module.exports = {
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'eslint-config-prettier'],
parser: '@typescript-eslint/parser',
env: {
es6: true,
browser: false,
node: true,
commonjs: false,
es2021: true,
},
plugins: ['prettier', '@typescript-eslint'],
ignorePatterns: ['*.yaml', '*.yml', '*.csv'],
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'prefer-template': 'error',
quotes: ['error', 'single', { avoidEscape: true }],
'@typescript-eslint/no-var-requires': 'warn',
'import/prefer-default-export': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
'prettier/prettier': ['error', require('./.prettierrc.js')],
'@typescript-eslint/lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'func-names': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'global-require': 'off',
'no-param-reassign': 'off',
'no-return-assign': 'off',
'no-plusplus': 'off',
'padding-line-between-statements': [
'error',
{
blankLine: 'always',
prev: '*',
next: ['class', 'function', 'return', 'try', 'switch'],
},
{ blankLine: 'always', prev: 'import', next: '*' },
{ blankLine: 'never', prev: 'import', next: 'import' },
{
blankLine: 'always',
prev: '*',
next: ['multiline-block-like', 'multiline-const'],
},
],
},
};