代码拉取完成,页面将自动刷新
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
node: true,
},
extends: ['airbnb-base', 'airbnb-typescript', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 12,
project: './tsconfig.eslint.json',
},
rules: {
'no-console': ['warn', { allow: ['warn', 'error'] }],
'no-prototype-builtins': 'off',
'no-restricted-syntax': 'off',
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': [
'error',
{ allowShortCircuit: true, allowTernary: true },
],
'import/no-unresolved': [
2,
{
ignore: [
'vue',
'react',
'@crud',
'react-dom',
'vite-plugin-vue2',
'mockjs',
'umi-request',
],
},
],
'global-require': 'off',
'import/no-dynamic-require': 'off',
'react/react-in-jsx-scope': 'off',
'no-shadow': 'off',
'react/jsx-props-no-spreading': 'off',
'@typescript-eslint/no-shadow': ['error'],
'import/prefer-default-export': 'off',
'react/destructuring-assignment': [0, 'always'],
'import/no-extraneous-dependencies': 0,
'no-param-reassign': 0,
'no-nested-ternary': 'off',
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.vue', '.tsx', '.ts'],
},
},
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。