@@ -2,7 +2,12 @@ import path from "path"
2
2
import fs from "fs"
3
3
import { rules } from "./lib/load-rules"
4
4
5
- const baseContent = `export = {
5
+ const baseContent = `/*
6
+ * IMPORTANT!
7
+ * This file has been automatically generated,
8
+ * in order to update its content execute "yarn update"
9
+ */
10
+ export = {
6
11
plugins: ["svelte"],
7
12
overrides: [
8
13
{
@@ -37,7 +42,12 @@ const baseFilePath = path.resolve(__dirname, "../src/configs/base.ts")
37
42
// Update file.
38
43
fs . writeFileSync ( baseFilePath , baseContent )
39
44
40
- const recommendedContent = `import path from "path"
45
+ const recommendedContent = `/*
46
+ * IMPORTANT!
47
+ * This file has been automatically generated,
48
+ * in order to update its content execute "yarn update"
49
+ */
50
+ import path from "path"
41
51
const base = require.resolve("./base")
42
52
const baseExtend =
43
53
path.extname(\`\${base}\`) === ".ts" ? "plugin:svelte/base" : base
@@ -64,7 +74,12 @@ const recommendedFilePath = path.resolve(
64
74
// Update file.
65
75
fs . writeFileSync ( recommendedFilePath , recommendedContent )
66
76
67
- const prettierContent = `import path from "path"
77
+ const prettierContent = `/*
78
+ * IMPORTANT!
79
+ * This file has been automatically generated,
80
+ * in order to update its content execute "yarn update"
81
+ */
82
+ import path from "path"
68
83
const base = require.resolve("./base")
69
84
const baseExtend =
70
85
path.extname(\`\${base}\`) === ".ts" ? "plugin:svelte/base" : base
0 commit comments