|
1 | 1 | module.exports = {
|
2 | 2 | root: true,
|
| 3 | + env: { |
| 4 | + node: true, |
| 5 | + }, |
3 | 6 | extends: ['airbnb-typescript'],
|
4 | 7 | plugins: ['@typescript-eslint'],
|
5 | 8 | parser: '@typescript-eslint/parser',
|
6 | 9 | rules: {
|
7 |
| - 'max-len': ['warn', 120], |
| 10 | + semi: ['error', 'never'], |
| 11 | + quotes: [2, 'single', { avoidEscape: true }], |
| 12 | + 'max-len': ['error', { ignoreComments: true, ignoreStrings: true, ignoreRegExpLiterals: true, code: 120 }], |
8 | 13 | 'class-methods-use-this': 'off',
|
9 | 14 | 'import/no-extraneous-dependencies': 'off', // temporary disabled
|
| 15 | + '@typescript-eslint/semi': ['error', 'never'], |
| 16 | + 'object-curly-newline': 'off', |
| 17 | + 'import/prefer-default-export': 'off', |
| 18 | + '@typescript-eslint/comma-dangle': 'off', |
| 19 | + 'implicit-arrow-linebreak': 'off', |
| 20 | + 'import/order': [ |
| 21 | + 1, |
| 22 | + { |
| 23 | + groups: [ |
| 24 | + 'external', |
| 25 | + 'builtin', |
| 26 | + 'internal', |
| 27 | + 'sibling', |
| 28 | + 'parent', |
| 29 | + 'index', |
| 30 | + ], |
| 31 | + pathGroups: [ |
| 32 | + { |
| 33 | + pattern: 'desktopSrc/**', |
| 34 | + group: 'internal', |
| 35 | + position: 'after' |
| 36 | + }, |
| 37 | + { |
| 38 | + pattern: 'uiSrc/**', |
| 39 | + group: 'internal', |
| 40 | + position: 'after' |
| 41 | + }, |
| 42 | + { |
| 43 | + pattern: 'apiSrc/**', |
| 44 | + group: 'internal', |
| 45 | + position: 'after' |
| 46 | + }, |
| 47 | + ], |
| 48 | + warnOnUnassignedImports: true, |
| 49 | + pathGroupsExcludedImportTypes: ['builtin'] |
| 50 | + }, |
| 51 | + ], |
10 | 52 | },
|
11 | 53 | parserOptions: {
|
12 | 54 | project: './tsconfig.json',
|
| 55 | + ecmaVersion: 2020, |
| 56 | + sourceType: 'module', |
| 57 | + createDefaultProgram: true, |
13 | 58 | },
|
14 | 59 | ignorePatterns: [
|
15 | 60 | 'redisinsight/ui',
|
| 61 | + 'redisinsight/api', |
16 | 62 | ],
|
17 |
| -}; |
| 63 | +} |
0 commit comments