Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: use eslint-plugin-rulesdir instead of --rulesdir for self-linting
- Loading branch information
1 parent
0b89865
commit 98a3685
Showing
12 changed files
with
49 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
/tests/performance/** | ||
/tmp/** | ||
test.js | ||
!.eslintrc.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"use strict"; | ||
|
||
const path = require("path"); | ||
const rulesDirPlugin = require("eslint-plugin-rulesdir"); | ||
|
||
rulesDirPlugin.RULES_DIR = path.join(__dirname, "tools/internal-rules"); | ||
|
||
module.exports = { | ||
root: true, | ||
plugins: [ | ||
"eslint-plugin", | ||
"node", | ||
"rulesdir" | ||
], | ||
extends: [ | ||
"./packages/eslint-config-eslint/default.yml", | ||
"plugin:node/recommended", | ||
"plugin:eslint-plugin/recommended" | ||
], | ||
rules: { | ||
"eslint-plugin/consistent-output": "error", | ||
"eslint-plugin/no-deprecated-context-methods": "error", | ||
"eslint-plugin/no-identical-tests": "error", | ||
"eslint-plugin/prefer-output-null": "error", | ||
"eslint-plugin/prefer-placeholders": "error", | ||
"eslint-plugin/report-message-format": ["error", "[^a-z].*\\.$"], | ||
"eslint-plugin/test-case-property-ordering": "error", | ||
"eslint-plugin/test-case-shorthand-strings": "error" | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
rules: | ||
internal-no-invalid-meta: "error" | ||
internal-consistent-docs-description: "error" | ||
rulesdir/no-invalid-meta: "error" | ||
rulesdir/consistent-docs-description: "error" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
rules: | ||
internal-no-invalid-meta: "error" | ||
internal-consistent-docs-description: "error" | ||
rulesdir/no-invalid-meta: "error" | ||
rulesdir/consistent-docs-description: "error" |
File renamed without changes.
File renamed without changes.