-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4a524a
commit 268d6d8
Showing
10 changed files
with
196 additions
and
46 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import comments from "@eslint-community/eslint-plugin-eslint-comments/configs"; | ||
|
||
import { eslintCommentsRules } from "../rules/eslint-comments"; | ||
|
||
const eslintCommentsConfig = () => { | ||
return [ | ||
{ | ||
...comments.recommended, | ||
name: "jimmy.codes/eslint-comments", | ||
rules: eslintCommentsRules, | ||
}, | ||
]; | ||
}; | ||
|
||
export default eslintCommentsConfig; |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`should create eslintComments rules 1`] = ` | ||
{ | ||
"@eslint-community/eslint-comments/disable-enable-pair": "error", | ||
"@eslint-community/eslint-comments/no-aggregating-enable": "error", | ||
"@eslint-community/eslint-comments/no-duplicate-disable": "error", | ||
"@eslint-community/eslint-comments/no-unlimited-disable": "error", | ||
"@eslint-community/eslint-comments/no-unused-enable": "error", | ||
"@eslint-community/eslint-comments/require-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { eslintCommentsRules } from "./eslint-comments"; | ||
|
||
test("should create eslintComments rules", () => { | ||
expect(eslintCommentsRules).toMatchSnapshot(); | ||
}); |
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,8 @@ | ||
import comments from "@eslint-community/eslint-plugin-eslint-comments/configs"; | ||
|
||
import type { Rules } from "../types"; | ||
|
||
export const eslintCommentsRules = { | ||
...comments.recommended.rules, | ||
"@eslint-community/eslint-comments/require-description": "error", | ||
} satisfies Rules; |
Oops, something went wrong.