fix: rules

This commit is contained in:
Anthony Fu 2021-12-06 05:40:37 +08:00
parent cc47ac65e6
commit 6373bc7ec9
2 changed files with 12 additions and 0 deletions

View File

@ -170,6 +170,17 @@ module.exports = {
'template-curly-spacing': 'error', 'template-curly-spacing': 'error',
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }], 'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
'generator-star-spacing': 'off', 'generator-star-spacing': 'off',
'spaced-comment': ['error', 'always', {
line: {
markers: ['/'],
exceptions: ['/', '#'],
},
block: {
markers: ['!'],
exceptions: ['*'],
balanced: true,
},
}],
// best-practice // best-practice
'array-callback-return': 'error', 'array-callback-return': 'error',

View File

@ -36,5 +36,6 @@ module.exports = {
'@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-types': 'off', '@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-namespace': 'off',
}, },
} }