-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
27 lines (27 loc) · 1.01 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
module.exports = {
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended', 'prettier'],
ignorePatterns: ['dist/', '.eslintrc.cjs', 'jest.config.js'],
env: {
es2020: true,
node: true,
jest: true
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020
},
plugins: ['@typescript-eslint', 'eslint-plugin-prettier'],
rules: {
'prettier/prettier': 'warn',
'no-unreachable': 'error',
'no-warning-comments': 'warn',
'array-callback-return': 'error',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/explicit-module-boundary-types': 'error',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/ban-ts-comment': 'warn'
}
};