1 Star 0 Fork 0

ArtfulCoder/react-taroify-ts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.71 KB
一键复制 编辑 原始数据 按行查看 历史
HaloPigpig 提交于 2023-04-11 11:20 +08:00 . feat: 项目初始化
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',
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ArtfulCoder/react-taroify-ts.git
git@gitee.com:ArtfulCoder/react-taroify-ts.git
ArtfulCoder
react-taroify-ts
react-taroify-ts
master

搜索帮助