mirror of
https://github.com/github/codeql-action.git
synced 2025-12-31 19:50:32 +08:00
17 lines
375 B
JavaScript
17 lines
375 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
meta: {
|
|
fixable: 'code'
|
|
},
|
|
create: (context, badBrowser) => ({
|
|
'Literal[raw=/_/][value>=0], Literal[raw=/_/][value<=0]'(node) {
|
|
context.report({
|
|
node,
|
|
message: `Numeric Separators are not supported in ${badBrowser}`,
|
|
fix: fixer => fixer.replaceText(node, String(node.value))
|
|
})
|
|
}
|
|
})
|
|
}
|