Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion packages/eslint-config-sdk/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,22 @@ module.exports = {
'max-lines': 'error',

// We should require a whitespace beginning a comment
'spaced-comment': 'error',
'spaced-comment': [
'error',
'always',
{
line: {
// this lets us use triple-slash directives
markers: ['/'],
},
block: {
// comments of the form /* ..... */ should always have whitespace before the closing `*/` marker...
balanced: true,
// ... unless they're jsdoc-style block comments, which end with `**/`
exceptions: ['*'],
},
},
],

// Disallow usage of bitwise operators - this makes it an opt in operation
'no-bitwise': 'error',
Expand Down