update eslint to omit blank line between members

This commit is contained in:
wancat committed 2024-02-06 09:31:20 +08:00
1 parent e91774fe3b
commit 2a542302bc
5 files changed
+21 -5

No files matched your search

+3 -1
View File
@@ -53,7 +53,9 @@ export default class DAG {
if (node.layer !== undefined) {
return node.layer
}
const previousLayer = node.requirements.map((rId: string) => this.setLayer(rId))
const previousLayer = node.requirements.map((rId: string) =>
this.setLayer(rId)
)
node.layer = Math.max(...previousLayer, 0) + 1
if (this.layers.length < node.layer) {
this.layers.push(1)
+2 -1
View File
@@ -2,7 +2,8 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "./dist"
"outDir": "./dist",
"allowJs": false
},
"include": ["src"],
"exclude": ["node_modules", "dist"]