initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
34
github/codeql-action-v1/node_modules/eslint-plugin-eslint-comments/lib/rules/no-unused-disable.js
generated
vendored
Normal file
34
github/codeql-action-v1/node_modules/eslint-plugin-eslint-comments/lib/rules/no-unused-disable.js
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/**
|
||||
* @author Toru Nagashima <https://github.com/mysticatea>
|
||||
* See LICENSE file in root directory for full license.
|
||||
*/
|
||||
"use strict"
|
||||
|
||||
// Patch `Linter#verify` to work.
|
||||
require("../utils/patch")()
|
||||
|
||||
module.exports = {
|
||||
meta: {
|
||||
docs: {
|
||||
description: "disallow unused `eslint-disable` comments",
|
||||
category: "Best Practices",
|
||||
recommended: false,
|
||||
url:
|
||||
"https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html",
|
||||
},
|
||||
fixable: null,
|
||||
schema: [],
|
||||
type: "problem",
|
||||
},
|
||||
|
||||
create() {
|
||||
// This rule patches `Linter#verify` method and:
|
||||
//
|
||||
// 1. enables `reportUnusedDisableDirectives` option.
|
||||
// 2. verifies the code.
|
||||
// 3. converts `reportUnusedDisableDirectives` errors to `no-unused-disable` errors.
|
||||
//
|
||||
// So this rule itself does nothing.
|
||||
return {}
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue