mirror of
https://github.com/github/codeql-action.git
synced 2025-12-30 03:00:13 +08:00
15 lines
360 B
JavaScript
15 lines
360 B
JavaScript
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))
|
|
})
|
|
}
|
|
})
|
|
}
|