-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update eslint-config-yscope to 1.0.0 and move config into eslint.conf…
…ig.mjs; change "new-cap" capIsNewExceptions.
- Loading branch information
1 parent
a11b15b
commit ef0aca7
Showing
10 changed files
with
879 additions
and
1,195 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import CommonConfig from "eslint-config-yscope/CommonConfig.mjs"; | ||
import StylisticConfigArray from "eslint-config-yscope/StylisticConfigArray.mjs"; | ||
import TsConfigArray from "eslint-config-yscope/TsConfigArray.mjs"; | ||
|
||
|
||
const EslintConfig = [ | ||
{ | ||
ignores: [ | ||
"dist/", | ||
"node_modules/", | ||
], | ||
}, | ||
CommonConfig, | ||
...TsConfigArray.map( | ||
(config) => ({ | ||
files: [ | ||
"**/*.ts", | ||
], | ||
...config, | ||
}) | ||
), | ||
...StylisticConfigArray, | ||
{ | ||
rules: { | ||
"@typescript-eslint/require-await": [ | ||
// Fastify recommends async syntax, but not all plugins require Promise resolution | ||
// in their function bodies. | ||
"off", | ||
], | ||
"new-cap": [ | ||
"error", | ||
{ | ||
capIsNewExceptions: [ | ||
"Type.Enum", | ||
"Type.Integer", | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
]; | ||
|
||
|
||
export default EslintConfig; |
Oops, something went wrong.