1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-keystonejs

Клонировать/Скачать
eslint.config.mjs 1.6 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Emma Hamilton Отправлено 26.02.2025 04:47 4bc14a9
// @ts-check
import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import reactHooks from 'eslint-plugin-react-hooks'
export default tseslint.config(
{
ignores: [
'**/.keystone/',
'**/.next/',
'**/dist/',
'**/__generated__/',
'**/node_modules/',
'**/syntax-error.js',
'**/public/',
'examples/',
],
},
eslint.configs.recommended,
...tseslint.configs.strict,
reactHooks.configs['recommended-latest'],
{
rules: {
'no-empty': ['error', { allowEmptyCatch: true }],
'prefer-const': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-dynamic-delete': 'off',
'@typescript-eslint/no-invalid-void-type': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-require-imports': 'off', // TODO: always
'no-undef': 'off', // https://typescript-eslint.io/troubleshooting/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
'@typescript-eslint/consistent-type-imports': [
'error',
{
disallowTypeAnnotations: true,
fixStyle: 'separate-type-imports',
prefer: 'type-imports',
},
],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/prefer-ts-expect-error': 'error',
'@typescript-eslint/no-empty-object-type': 'off',
// TODO: enable
// 'react-hooks/exhaustive-deps': 'error',
},
}
)

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-keystonejs.git
git@api.gitlife.ru:oschina-mirror/mirrors-keystonejs.git
oschina-mirror
mirrors-keystonejs
mirrors-keystonejs
main