代码拉取完成,页面将自动刷新
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 }],
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。