Слияние кода завершено, страница обновится автоматически
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 )