coreui-react

Форк
0
/
.eslintrc.js 
72 строки · 1.6 Кб
1
/**
2
 * Copyright (c) 2013-present, creativeLabs Lukasz Holeczek.
3
 *
4
 * This source code is licensed under the MIT license found in the
5
 * LICENSE file in the root directory of this source tree.
6
 */
7

8
'use strict'
9

10
module.exports = {
11
  root: true, // So parent files don't get applied
12
  env: {
13
    es6: true,
14
    browser: true,
15
    node: true,
16
  },
17
  extends: [
18
    'plugin:react/recommended',
19
    'plugin:@typescript-eslint/recommended',
20
    'plugin:prettier/recommended',
21
    'plugin:unicorn/recommended',
22
  ],
23
  parser: '@typescript-eslint/parser',
24
  parserOptions: {
25
    ecmaVersion: 2020,
26
    sourceType: 'module',
27
    ecmaFeatures: {
28
      jsx: true,
29
    },
30
  },
31
  plugins: ['@typescript-eslint', 'react', 'react-hooks'],
32
  settings: {
33
    react: {
34
      pragma: 'React',
35
      version: 'detect',
36
    },
37
  },
38
  rules: {
39
    'unicorn/filename-case': 'off',
40
    'unicorn/no-array-for-each': 'off',
41
    'unicorn/no-null': 'off',
42
    'unicorn/prefer-dom-node-append': 'off',
43
    'unicorn/prefer-export-from': 'off',
44
    'unicorn/prefer-query-selector': 'off',
45
    'unicorn/prevent-abbreviations': 'off',
46
  },
47
  overrides: [
48
    {
49
      files: ['packages/docs/build/**'],
50
      env: {
51
        browser: false,
52
        node: true,
53
      },
54
      parserOptions: {
55
        sourceType: 'script',
56
      },
57
      rules: {
58
        '@typescript-eslint/no-var-requires': 'off',
59
        'no-console': 'off',
60
        'unicorn/prefer-module': 'off',
61
        'unicorn/prefer-top-level-await': 'off',
62
      },
63
    },
64
    {
65
      files: ['packages/docs/**'],
66
      rules: {
67
        '@typescript-eslint/no-var-requires': 'off',
68
        'unicorn/prefer-module': 'off',
69
      },
70
    },
71
  ],
72
}
73

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

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

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

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