1 Star 0 Fork 152

Kael/Qwerty-Learner

forked from Kai/Qwerty-Learner 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.cjs 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
Kai 提交于 2023-03-16 11:08 . Reafactor current code base (#351)
/** @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',
},
},
},
],
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/sh_uii/qwerty-learner.git
git@gitee.com:sh_uii/qwerty-learner.git
sh_uii
qwerty-learner
Qwerty-Learner
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385