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

OSCHINA-MIRROR/mirrors-GoAlert

Клонировать/Скачать
.eslintrc.js 2 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Nathaniel Caza Отправлено 06.01.2024 01:08 0b20184
module.exports = {
parser: '@typescript-eslint/parser',
plugins: [
'import',
'cypress',
'jsx-a11y',
'react',
'react-hooks',
'prettier',
'@typescript-eslint',
],
extends: [
'standard',
'standard-jsx',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:react/recommended',
'plugin:cypress/recommended',
'plugin:jsx-a11y/recommended',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:storybook/recommended',
],
rules: {
'no-else-return': ['error', { allowElseIf: false }],
'prettier/prettier': 'error',
'react-hooks/rules-of-hooks': 'error',
'react/jsx-fragments': ['error', 'element'],
'react/prop-types': 'off',
// buggy, handled better by no unused imports and actual build
'import/no-unresolved': 'off',
// handled by prettier
'react/jsx-curly-newline': 'off',
'react/jsx-indent': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/explicit-function-return-type': [
'error',
{
allowExpressions: true,
},
],
'@typescript-eslint/no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
},
],
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'array-callback-return': 'off',
},
overrides: [
{
files: ['*.js', '*.jsx'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
},
{
files: ['*.d.ts'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
},
},
],
settings: {
react: { version: 'detect' },
},
env: {
'cypress/globals': true,
},
globals: {
beforeAll: 'readonly',
afterAll: 'readonly',
},
}

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

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

1
https://api.gitlife.ru/oschina-mirror/mirrors-GoAlert.git
git@api.gitlife.ru:oschina-mirror/mirrors-GoAlert.git
oschina-mirror
mirrors-GoAlert
mirrors-GoAlert
master