代码拉取完成,页面将自动刷新
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['plugin:react/recommended', 'airbnb'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', 'prettier', '@typescript-eslint'],
rules: {
'import/order': 'off',
'jsx-quotes': ['error', 'prefer-single'],
'import/extensions': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'react/jsx-filename-extension': 'off',
'operator-linebreak': 'off',
'max-len': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'implicit-arrow-linebreak': 'off',
'no-unused-expressions': 'off',
'object-curly-newline': 'off',
'no-confusing-arrow': 'off',
'react/jsx-boolean-value': 'off',
'jsx-a11y/alt-text': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'linebreak-style': ['off', 'windows'],
'react/function-component-definition': 'off',
'no-console': 'off',
'no-undef': 'off',
'react/no-unstable-nested-components': 0,
'function-paren-newline': 'off',
'react/require-default-props': 'off',
'react/jsx-wrap-multilines': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-props-no-spreading': 'off',
'prefer-destructuring': 'off',
'react/jsx-curly-newline': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-one-expression-per-line': 'off',
'arrow-body-style': 'off',
'prefer-regex-literals': 'off',
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。