forked from mysticatea/eslint-plugin-node
-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support eslint.config.js (fixes #89)
- Loading branch information
1 parent
aa75610
commit 3830d3e
Showing
5 changed files
with
58 additions
and
11 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
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,13 @@ | ||
/** | ||
* @fileoverview the `recommended-module` config for `eslint.config.js` | ||
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
"use strict" | ||
|
||
const { configs, rules } = require("../lib/index.js") | ||
|
||
module.exports = { | ||
plugins: { n: { rules } }, | ||
rules: configs["recommended-module"].rules, | ||
} |
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,13 @@ | ||
/** | ||
* @fileoverview the `recommended-script` config for `eslint.config.js` | ||
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
"use strict" | ||
|
||
const { configs, rules } = require("../lib/index.js") | ||
|
||
module.exports = { | ||
plugins: { n: { rules } }, | ||
rules: configs["recommended-script"].rules, | ||
} |
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,13 @@ | ||
/** | ||
* @fileoverview the `recommended` config for `eslint.config.js` | ||
* @author 唯然<[email protected]> | ||
*/ | ||
|
||
"use strict" | ||
|
||
const { configs, rules } = require("../lib/index.js") | ||
|
||
module.exports = { | ||
plugins: { n: { rules } }, | ||
rules: configs.recommended.rules, | ||
} |
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