1 Star 0 Fork 156

k44092437/Qwerty-Learner

forked from Kai/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',
},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/k44092437/qwerty-learner.git
[email protected]:k44092437/qwerty-learner.git
k44092437
qwerty-learner
Qwerty-Learner
master

搜索帮助