1 Star 0 Fork 0

diogoxiang/s-qwerty-learner

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.cjs 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
Kai 提交于 2023-08-19 02:35 . feat: add recite to error book (#587)
/** @type {import("eslint").ESLint.ConfigData} */
// eslint-disable-next-line no-undef
module.exports = {
root: true,
env: {
es2021: true,
},
extends: ['prettier'],
ignorePatterns: ['build'],
overrides: [
{
files: ['scripts/*.cjs', '.eslintrc.cjs'],
env: { node: true },
extends: ['eslint:recommended'],
parser: 'espree',
parserOptions: { sourceType: 'script' },
},
{
files: ['vite.config.ts'],
env: { node: true },
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
},
{
files: ['src/**/*.ts', 'src/**/*.tsx', 'test/**/*.ts', 'test/**/*.tsx'],
env: { browser: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:react/jsx-runtime',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint'],
settings: {
react: {
version: 'detect',
},
},
},
],
rules: {
'sort-imports': ['error', { ignoreDeclarationSort: true }],
'@typescript-eslint/consistent-type-imports': 1,
'react/prop-types': 'off',
},
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/diogoxiang/s-qwerty-learner.git
git@gitee.com:diogoxiang/s-qwerty-learner.git
diogoxiang
s-qwerty-learner
s-qwerty-learner
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385