lumino

Форк
0
/
.eslintrc.js 
65 строк · 1.9 Кб
1
module.exports = {
2
  env: {
3
    browser: true,
4
    es6: true,
5
    commonjs: true,
6
    node: true
7
  },
8
  globals: {
9
    context: 'readonly',
10
    describe: 'readonly',
11
    it: 'readonly',
12
    before: 'readonly',
13
    after: 'readonly',
14
    beforeAll: 'readonly',
15
    afterAll: 'readonly',
16
    beforeEach: 'readonly',
17
    afterEach: 'readonly'
18
  },
19
  root: true,
20
  extends: [
21
    'eslint:recommended',
22
    'plugin:@typescript-eslint/recommended',
23
    'prettier'
24
  ],
25
  parser: '@typescript-eslint/parser',
26
  parserOptions: {
27
    ecmaVersion: 'ES2018',
28
    project: ['./tsconfigbase.json']
29
  },
30
  plugins: ['@typescript-eslint'],
31
  rules: {
32
    '@typescript-eslint/no-unused-vars': ['warn', { args: 'none' }],
33
    '@typescript-eslint/no-use-before-define': 'off',
34
    '@typescript-eslint/no-explicit-any': 'off',
35
    '@typescript-eslint/no-non-null-assertion': 'off',
36
    '@typescript-eslint/no-namespace': 'off',
37
    '@typescript-eslint/interface-name-prefix': 'off',
38
    '@typescript-eslint/explicit-function-return-type': 'off',
39
    '@typescript-eslint/ban-ts-comment': ['warn', { 'ts-ignore': true }],
40
    '@typescript-eslint/ban-types': 'warn',
41
    '@typescript-eslint/no-non-null-asserted-optional-chain': 'warn',
42
    '@typescript-eslint/no-var-requires': 'off',
43
    '@typescript-eslint/no-empty-interface': 'off',
44
    '@typescript-eslint/triple-slash-reference': 'warn',
45
    '@typescript-eslint/no-inferrable-types': 'off',
46
    camelcase: 'warn',
47
    'no-inner-declarations': 'off',
48
    'no-prototype-builtins': 'off',
49
    'no-control-regex': 'warn',
50
    'no-undef': 'off',
51
    'no-case-declarations': 'warn',
52
    'no-useless-escape': 'off',
53
    'prefer-const': 'off',
54
    'sort-imports': [
55
      'error',
56
      {
57
        ignoreCase: true,
58
        ignoreDeclarationSort: true,
59
        ignoreMemberSort: false,
60
        memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
61
        allowSeparatedGroups: false
62
      }
63
    ]
64
  }
65
};
66

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

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

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

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