1 Star 0 Fork 0

K. / mui-ext

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
const OFF = 'off';
const ERROR = 'error';
// const WARN = 'warn';
module.exports = {
root : true,
parser : '@typescript-eslint/parser',
plugins : [
'@typescript-eslint'
],
extends : [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:@typescript-eslint/recommended'
],
settings : {
version: 'detect'
},
env : {
node : true,
mocha: true
},
ignorePatterns: [
'node_modules',
'*.config.*',
'dist',
'dist/**/*',
'*.stories.tsx',
'*.stories.ts',
'*.stories.mdx'
],
rules : {
'@typescript-eslint/ban-ts-comment' : [
ERROR,
{
'ts-expect-error': 'allow-with-description',
'ts-ignore' : 'allow-with-description',
'ts-nocheck' : 'allow-with-description',
'ts-check' : 'allow-with-description'
}
],
'no-shadow' : OFF,
'@typescript-eslint/no-shadow' : ERROR,
'@typescript-eslint/no-empty-interface': OFF,
'@typescript-eslint/no-explicit-any' : [
ERROR,
{
ignoreRestArgs: true
}
],
'react/no-unknown-property' : [
ERROR,
{ ignore: ['css'] }
]
}
};
1
https://gitee.com/janpoem/mui-ext.git
git@gitee.com:janpoem/mui-ext.git
janpoem
mui-ext
mui-ext
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891