lobe-chat

Форк
0
/
.eslintrc.js 
37 строк · 1.1 Кб
1
const config = require('@lobehub/lint').eslint;
2

3
config.extends.push('plugin:@next/next/recommended');
4

5
config.rules['unicorn/no-negated-condition'] = 0;
6
config.rules['unicorn/prefer-type-error'] = 0;
7
config.rules['unicorn/prefer-logical-operator-over-ternary'] = 0;
8
config.rules['unicorn/no-null'] = 0;
9
config.rules['unicorn/no-typeof-undefined'] = 0;
10
config.rules['unicorn/explicit-length-check'] = 0;
11
config.rules['unicorn/prefer-code-point'] = 0;
12
config.rules['no-extra-boolean-cast'] = 0;
13
config.rules['unicorn/no-useless-undefined'] = 0;
14
config.rules['react/no-unknown-property'] = 0;
15
config.rules['unicorn/prefer-ternary'] = 0;
16
config.rules['unicorn/prefer-spread'] = 0;
17
config.rules['unicorn/catch-error-name'] = 0;
18
config.rules['unicorn/no-array-for-each'] = 0;
19
config.rules['unicorn/prefer-number-properties'] = 0;
20

21
config.overrides = [
22
  {
23
    extends: ['plugin:mdx/recommended'],
24
    files: ['*.mdx'],
25
    rules: {
26
      '@typescript-eslint/no-unused-vars': 1,
27
      'no-undef': 0,
28
      'react/jsx-no-undef': 0,
29
      'react/no-unescaped-entities': 0,
30
    },
31
    settings: {
32
      'mdx/code-blocks': false,
33
    },
34
  },
35
];
36

37
module.exports = config;
38

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

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

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

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