lobe-chat
/
.eslintrc.js
37 строк · 1.1 Кб
1const config = require('@lobehub/lint').eslint;2
3config.extends.push('plugin:@next/next/recommended');4
5config.rules['unicorn/no-negated-condition'] = 0;6config.rules['unicorn/prefer-type-error'] = 0;7config.rules['unicorn/prefer-logical-operator-over-ternary'] = 0;8config.rules['unicorn/no-null'] = 0;9config.rules['unicorn/no-typeof-undefined'] = 0;10config.rules['unicorn/explicit-length-check'] = 0;11config.rules['unicorn/prefer-code-point'] = 0;12config.rules['no-extra-boolean-cast'] = 0;13config.rules['unicorn/no-useless-undefined'] = 0;14config.rules['react/no-unknown-property'] = 0;15config.rules['unicorn/prefer-ternary'] = 0;16config.rules['unicorn/prefer-spread'] = 0;17config.rules['unicorn/catch-error-name'] = 0;18config.rules['unicorn/no-array-for-each'] = 0;19config.rules['unicorn/prefer-number-properties'] = 0;20
21config.overrides = [22{23extends: ['plugin:mdx/recommended'],24files: ['*.mdx'],25rules: {26'@typescript-eslint/no-unused-vars': 1,27'no-undef': 0,28'react/jsx-no-undef': 0,29'react/no-unescaped-entities': 0,30},31settings: {32'mdx/code-blocks': false,33},34},35];36
37module.exports = config;38