-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
31 lines (31 loc) · 963 Bytes
/
.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
module.exports = {
parser: '@typescript-eslint/parser',
env: { browser: true, es2021: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier',
'plugin:promise/recommended',
'plugin:import/recommended',
],
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
ecmaVersion: 'latest',
sourceType: 'module',
},
ignorePatterns: ['.eslintrc.cjs'],
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '_', varsIgnorePattern: '_', caughtErrorsIgnorePattern: '_' },
],
eqeqeq: 'error',
'import/order': ['error', { 'newlines-between': 'always' }],
'no-console': 'error',
'prettier/prettier': ['error', { endOfLine: 'auto' }],
},
settings: { 'import/resolver': { node: { extensions: ['.js', '.ts'] } } },
};