代码拉取完成,页面将自动刷新
同步操作将从 漫长的白日梦/ react-vite-js-tailwindcss-template 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
module.exports = {
extends: [
'airbnb',
'prettier',
'eslint:recommended',
'plugin:react/recommended',
'plugin:import/recommended',
'plugin:jsx-a11y/recommended',
'eslint-config-prettier',
'plugin:react/jsx-runtime',
],
plugins: ['react', 'react-hooks', 'prettier', 'jsx-a11y', 'import'],
settings: {
react: {
// Tells eslint-plugin-react to automatically detect the version of React to use.
version: 'detect',
},
// Tells eslint how to resolve imports
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
'import/core-modules': [],
},
env: {
browser: true,
es2021: true,
jest: true,
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
rules: {
'no-nested-ternary': 'off',
'no-plusplus': 'off',
'react/jsx-props-no-spreading': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'react/prop-types': 'off',
'prettier/prettier': 'error',
'jsx-a11y/anchor-is-valid': 'off',
'react-hooks/exhaustive-deps': 'off',
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
// allow short circuiting
'no-unused-expressions': [
'error',
{ allowShortCircuit: true, allowTernary: true },
],
'no-param-reassign': [
'error',
{
props: true,
ignorePropertyModificationsFor: ['state'],
},
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。