initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
13
github/codeql-action-v2/node_modules/eslint-plugin-escompat/lib/rules/no-hashbang-comment.js
generated
vendored
Normal file
13
github/codeql-action-v2/node_modules/eslint-plugin-escompat/lib/rules/no-hashbang-comment.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = (context, badBrowser) => {
|
||||
const { sourceCode = context.getSourceCode() } = context;
|
||||
return {
|
||||
'Program:exit' (node) {
|
||||
const [comment] = sourceCode.getAllComments();
|
||||
if (comment && comment.type === 'Shebang') {
|
||||
context.report(node, `Hashbang comments are not supported in ${badBrowser}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue