kindagoose

Форк
0
/
.eslintrc.js 
50 строк · 1.6 Кб
1
module.exports = {
2
    parser: '@typescript-eslint/parser',
3
    parserOptions: {
4
        project: 'tsconfig.json',
5
        tsconfigRootDir: __dirname,
6
        sourceType: 'module',
7
        ecmaVersion: 'latest',
8
        ecmaFeatures: {
9
            jsx: false
10
        }
11
    },
12
    plugins: ['@typescript-eslint/eslint-plugin', 'simple-import-sort', 'sonarjs', 'import', 'unicorn', 'prettier'],
13
    extends: [
14
        'plugin:@typescript-eslint/recommended',
15
        'plugin:sonarjs/recommended',
16
        'plugin:security/recommended',
17
        'plugin:unicorn/recommended'
18
    ],
19
    root: true,
20
    env: {
21
        node: true,
22
        jest: true
23
    },
24
    ignorePatterns: ['.eslintrc.js', 'dist'],
25
    rules: {
26
        '@typescript-eslint/interface-name-prefix': 'off',
27
        '@typescript-eslint/explicit-function-return-type': 'off',
28
        '@typescript-eslint/explicit-module-boundary-types': 'off',
29
        '@typescript-eslint/no-explicit-any': 'off',
30
        '@typescript-eslint/no-empty-function': 'off',
31
        'simple-import-sort/imports': 'error',
32
        'simple-import-sort/exports': 'error',
33
        'import/first': 'error',
34
        'import/newline-after-import': 'error',
35
        'import/no-duplicates': 'error',
36
        'prettier/prettier': ['error', {
37
            'parser': 'typescript',
38
            'singleQuote': true,
39
            'tabWidth': 4,
40
            'tabs': false,
41
            'semicolons': true,
42
            'arrowParens': 'avoid',
43
            'trailingComma': 'all'
44
        }],
45
        'unicorn/prevent-abbreviations': 'off',
46
        'unicorn/filename-case': 'off',
47
        'unicorn/no-null': 'off',
48
        'unicorn/prefer-module': 'off',
49
    }
50
};
51

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.