-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
31 lines (30 loc) · 885 Bytes
/
.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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['plugin:prettier/recommended', 'plugin:import/recommended'],
plugins: ['@typescript-eslint', 'prettier', 'jest', 'import'],
rules: {
'prettier/prettier': 'error',
curly: ['error', 'multi-line'],
},
overrides: [
{
files: ['**/*.ts'],
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.eslint.json'],
},
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended-requiring-type-checking', // could impact performance
'prettier/@typescript-eslint',
],
},
{
files: ['tests/**/*.ts'],
extends: ['plugin:jest/recommended', 'plugin:jest/style'],
rules: { 'jest/consistent-test-it': 'error' },
},
],
}