1 Star 0 Fork 2

lyf/ react-vite-js-tailwindcss-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.cjs 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
漫长的白日梦 提交于 2023-03-27 15:45 +08:00 . update:监控页面ui构建
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,
},
],
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/lyfxh/react-vite-js-tailwindcss-template.git
git@gitee.com:lyfxh/react-vite-js-tailwindcss-template.git
lyfxh
react-vite-js-tailwindcss-template
react-vite-js-tailwindcss-template
master

搜索帮助