forked from taiga-family/maskito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
38 lines (38 loc) · 1.22 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
/**
* @type {import('eslint').Linter.Config}
*/
module.exports = {
root: true,
extends: [
'@tinkoff/eslint-config-angular',
'@tinkoff/eslint-config-angular/html',
'@tinkoff/eslint-config-angular/rxjs',
'@tinkoff/eslint-config-angular/imports',
'@tinkoff/eslint-config-angular/promise',
'@tinkoff/eslint-config-angular/file-progress',
'@tinkoff/eslint-config-angular/line-statements',
'@tinkoff/eslint-config-angular/member-ordering',
'@tinkoff/eslint-config-angular/decorator-position',
'@tinkoff/eslint-config-angular/experimental',
'@tinkoff/eslint-config-angular/function-return-type',
],
rules: {
'@typescript-eslint/prefer-nullish-coalescing': 'off',
},
overrides: [
{
files: ['projects/react/**/*.{js,ts,jsx,tsx}'],
extends: ['@tinkoff/eslint-config-react'],
},
],
ignorePatterns: ['projects/**/test.ts', '*.json', '*.less', '*.md', '*.js'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: [require.resolve('./tsconfig.eslint.json')],
},
env: {
jest: true,
},
};