1 Star 0 Fork 0

ouuan/luogu-motaki-client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.cjs 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
ouuan 提交于 2021-12-31 16:11 +08:00 . Initial commit
module.exports = {
root: true,
env: {
node: true,
es2021: true,
},
extends: [
'eslint:recommended',
'airbnb-base',
],
plugins: [
'@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'import/extensions': 0,
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'./*.*',
],
},
],
'@typescript-eslint/explicit-module-boundary-types': 0,
// generic type parameters
'no-spaced-func': 0,
'func-call-spacing': 0,
'@typescript-eslint/func-call-spacing': 2,
// parameters with public/protected/private in class constructor
'no-unused-vars': 0,
'@typescript-eslint/no-unused-vars': 2,
indent: 0,
'@typescript-eslint/indent': [
'error',
2,
],
'no-shadow': 0,
'@typescript-eslint/no-shadow': 2,
semi: 0,
'@typescript-eslint/semi': 2,
'no-empty-function': 0,
'@typescript-eslint/no-empty-function': 2,
'no-useless-constructor': 0,
'@typescript-eslint/no-useless-constructor': 2,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/type-annotation-spacing': 2,
'no-inner-declarations': 0,
'max-statements-per-line': ['error', { max: 1 }],
'no-restricted-syntax': ['error', 'ForInStatement', 'LabeledStatement', 'WithStatement'],
'no-constant-condition': ['error', { checkLoops: false }],
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ouuan/luogu-motaki-client.git
git@gitee.com:ouuan/luogu-motaki-client.git
ouuan
luogu-motaki-client
luogu-motaki-client
master

搜索帮助