Skip to content

Commit

Permalink
fix: rules
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 5, 2021
1 parent cc47ac6 commit 6373bc7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,17 @@ module.exports = {
'template-curly-spacing': 'error',
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
'generator-star-spacing': 'off',
'spaced-comment': ['error', 'always', {
line: {
markers: ['/'],
exceptions: ['/', '#'],
},
block: {
markers: ['!'],
exceptions: ['*'],
balanced: true,
},
}],

// best-practice
'array-callback-return': 'error',
Expand Down
1 change: 1 addition & 0 deletions packages/typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,6 @@ module.exports = {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-namespace': 'off',
},
}

0 comments on commit 6373bc7

Please sign in to comment.