Skip to content

Commit fc8afd2

Browse files
committed
chore: update
1 parent d053b6c commit fc8afd2

File tree

6 files changed

+31
-17
lines changed

6 files changed

+31
-17
lines changed

src/types-for-node.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// IMPORTANT!
2+
// This file has been automatically generated,
3+
// in order to update its content execute "yarn update"
14
//
25
// The information here can be calculated by calculating the type,
36
// but is pre-defined to avoid the computational cost.

src/utils/rules.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// IMPORTANT!
2+
// This file has been automatically generated,
3+
// in order to update its content execute "yarn update"
14
import type { RuleModule } from "../types"
25
import typescriptEslintNoUnnecessaryCondition from "../rules/@typescript-eslint/no-unnecessary-condition"
36
import blockLang from "../rules/block-lang"

tools/update-rules.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ function toIdentifier(str: string) {
2222
}
2323

2424
const content = `/*
25-
* IMPORTANT!
26-
* This file has been automatically generated,
27-
* in order to update its content execute "yarn update"
28-
*/
25+
* IMPORTANT!
26+
* This file has been automatically generated,
27+
* in order to update its content execute "yarn update"
28+
*/
2929
import type { RuleModule } from "../types"
3030
${rules
3131
.map(

tools/update-rulesets.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import fs from "fs"
33
import { rules } from "./lib/load-rules"
44

55
const baseContent = `/*
6-
* IMPORTANT!
7-
* This file has been automatically generated,
8-
* in order to update its content execute "yarn update"
9-
*/
6+
* IMPORTANT!
7+
* This file has been automatically generated,
8+
* in order to update its content execute "yarn update"
9+
*/
1010
export = {
1111
plugins: ["svelte"],
1212
overrides: [
@@ -43,10 +43,10 @@ const baseFilePath = path.resolve(__dirname, "../src/configs/base.ts")
4343
fs.writeFileSync(baseFilePath, baseContent)
4444

4545
const recommendedContent = `/*
46-
* IMPORTANT!
47-
* This file has been automatically generated,
48-
* in order to update its content execute "yarn update"
49-
*/
46+
* IMPORTANT!
47+
* This file has been automatically generated,
48+
* in order to update its content execute "yarn update"
49+
*/
5050
import path from "path"
5151
const base = require.resolve("./base")
5252
const baseExtend =
@@ -75,10 +75,10 @@ const recommendedFilePath = path.resolve(
7575
fs.writeFileSync(recommendedFilePath, recommendedContent)
7676

7777
const prettierContent = `/*
78-
* IMPORTANT!
79-
* This file has been automatically generated,
80-
* in order to update its content execute "yarn update"
81-
*/
78+
* IMPORTANT!
79+
* This file has been automatically generated,
80+
* in order to update its content execute "yarn update"
81+
*/
8282
import path from "path"
8383
const base = require.resolve("./base")
8484
const baseExtend =

tools/update-types-for-node.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ export type Statement = TSESTree.Statement
4343
export type Pattern = TSESTree.Pattern`,
4444
]
4545
const typesForNodeCode = [
46-
`//
46+
`/*
47+
* IMPORTANT!
48+
* This file has been automatically generated,
49+
* in order to update its content execute "yarn update"
50+
*/
51+
//
4752
// The information here can be calculated by calculating the type,
4853
// but is pre-defined to avoid the computational cost.
4954
//

typings/estree/index.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// IMPORTANT!
2+
// This file has been automatically generated,
3+
// in order to update its content execute "yarn update"
14
//
25
// Replace type information to use "@typescript-eslint/types" instead of "estree".
36
//

0 commit comments

Comments
 (0)