1 | const ts = {
|
2 | files: ['**/*.ts'],
|
3 | extends: [
|
4 | 'eslint:recommended',
|
5 | 'plugin:@typescript-eslint/eslint-recommended',
|
6 | 'plugin:@typescript-eslint/recommended'
|
7 | ],
|
8 | parser: '@typescript-eslint/parser',
|
9 | parserOptions: {
|
10 | ecmaVersion: 2018,
|
11 | sourceType: 'module',
|
12 | project: './tsconfig.json'
|
13 | },
|
14 | plugins: ['@typescript-eslint'],
|
15 | rules: {
|
16 | '@typescript-eslint/no-explicit-any': 0
|
17 | }
|
18 | };
|
19 |
|
20 | module.exports = {
|
21 | env: {
|
22 | es6: true,
|
23 | node: true
|
24 | },
|
25 | extends: 'eslint:recommended',
|
26 | parserOptions: {
|
27 | sourceType: 'module',
|
28 | ecmaVersion: 2018
|
29 | },
|
30 | rules: {
|
31 | 'require-atomic-updates': 0,
|
32 | indent: ['error', 'tab'],
|
33 | 'linebreak-style': ['error', 'unix'],
|
34 | quotes: ['error', 'single'],
|
35 | semi: ['error', 'always']
|
36 | },
|
37 | overrides: [ts]
|
38 | };
|