Skip to content

Commit

Permalink
Update eslint-config-yscope to 1.0.0 and move config into eslint.conf…
Browse files Browse the repository at this point in the history
…ig.mjs; change "new-cap" capIsNewExceptions.
  • Loading branch information
junhaoliao committed Jan 13, 2025
1 parent a11b15b commit ef0aca7
Show file tree
Hide file tree
Showing 10 changed files with 879 additions and 1,195 deletions.
44 changes: 44 additions & 0 deletions components/log-viewer-webui/server/eslint.config.mjs
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;
Loading

0 comments on commit ef0aca7

Please sign in to comment.