1 | module.exports = {
|
2 | extends: ['eslint:recommended', 'prettier'],
|
3 | root: true,
|
4 | env: {
|
5 | es6: true,
|
6 | browser: false,
|
7 | jest: true,
|
8 | node: true,
|
9 | },
|
10 | overrides: [
|
11 | {
|
12 | files: ['**/*.ts'],
|
13 | plugins: ['@typescript-eslint'],
|
14 | extends: [
|
15 | 'plugin:@typescript-eslint/recommended-type-checked',
|
16 | 'plugin:@typescript-eslint/strict-type-checked',
|
17 | 'plugin:@typescript-eslint/stylistic-type-checked',
|
18 | 'prettier',
|
19 | ],
|
20 | parser: '@typescript-eslint/parser',
|
21 | parserOptions: {
|
22 | project: './tsconfig.eslint.json',
|
23 | tsconfigRootDir: __dirname,
|
24 | },
|
25 | rules: {
|
26 | '@typescript-eslint/restrict-template-expressions': 'off',
|
27 | },
|
28 | },
|
29 | ],
|
30 | ignorePatterns: ['index.js', 'index.d.ts'],
|
31 | };
|