File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @cloudfour/eslint-plugin ' : minor
3+ ---
4+
5+ Make capitalized-comments ignore most commented code
Original file line number Diff line number Diff line change @@ -135,6 +135,17 @@ module.exports.configs = {
135135 'prefer-template' : 'error' ,
136136 'no-param-reassign' : 'off' , // We don't use `arguments`, and assigning to parameters can be useful
137137 'no-promise-executor-return' : 'off' , // Allow implicit return in promise executor
138+ 'capitalized-comments' : [
139+ 'error' ,
140+ 'always' ,
141+ {
142+ ignorePattern :
143+ 'pragma|ignore|prettier-ignore|webpack\\w+:|c8|return|const|let|var|await|function|console' ,
144+ ignoreInlineComments : true ,
145+ ignoreConsecutiveComments : true ,
146+ } ,
147+ ] ,
148+
138149 'node/no-unsupported-features/es-syntax' : 'off' , // Does not account for transpilation
139150 'node/no-unpublished-require' : 'off' , // Does not account for "build" scripts
140151 'node/shebang' : 'off' , // Tons of false positives
You can’t perform that action at this time.
0 commit comments