Skip to content

Commit 1f66f4f

Browse files
committed
print: move eslint config to .eslintrc.json
The config migrator needs the configuration to be in a separate file. https://eslint.org/blog/2024/05/eslint-configuration-migrator/
1 parent e22bc9b commit 1f66f4f

File tree

2 files changed

+30
-34
lines changed

2 files changed

+30
-34
lines changed

print/.eslintrc.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"browser": true,
5+
"node": true
6+
},
7+
"ignorePatterns": ["common/**/*"],
8+
"extends": [
9+
"plugin:vue/vue3-recommended",
10+
"plugin:vue-scoped-css/vue3-recommended",
11+
"@nuxt/eslint-config",
12+
"eslint:recommended",
13+
"plugin:prettier/recommended"
14+
],
15+
"rules": {
16+
"no-undef": "off",
17+
"no-console": "off",
18+
"prettier/prettier": "error",
19+
"prefer-const": "error",
20+
"vue/multi-word-component-names": "off",
21+
"local-rules/matching-translation-keys": [
22+
"error",
23+
{
24+
"ignoreKeysRegex": "^(global|entity|contentNode\\.[a-z][a-zA-Z]+|print\\.(global|activity|cover|picasso|program|story|toc))\\..+",
25+
"translationKeyPropRegex": "[a-zA-Z0-9]-i18n-key$"
26+
}
27+
]
28+
},
29+
"plugins": ["eslint-plugin-local-rules"]
30+
}

print/package.json

-34
Original file line numberDiff line numberDiff line change
@@ -55,39 +55,5 @@
5555
"vitest": "2.0.5",
5656
"vite-svg-loader": "5.1.0",
5757
"vue": "3.4.37"
58-
},
59-
"eslintConfig": {
60-
"root": true,
61-
"env": {
62-
"browser": true,
63-
"node": true
64-
},
65-
"ignorePatterns": [
66-
"common/**/*"
67-
],
68-
"extends": [
69-
"plugin:vue/vue3-recommended",
70-
"plugin:vue-scoped-css/vue3-recommended",
71-
"@nuxt/eslint-config",
72-
"eslint:recommended",
73-
"plugin:prettier/recommended"
74-
],
75-
"rules": {
76-
"no-undef": "off",
77-
"no-console": "off",
78-
"prettier/prettier": "error",
79-
"prefer-const": "error",
80-
"vue/multi-word-component-names": "off",
81-
"local-rules/matching-translation-keys": [
82-
"error",
83-
{
84-
"ignoreKeysRegex": "^(global|entity|contentNode\\.[a-z][a-zA-Z]+|print\\.(global|activity|cover|picasso|program|story|toc))\\..+",
85-
"translationKeyPropRegex": "[a-zA-Z0-9]-i18n-key$"
86-
}
87-
]
88-
},
89-
"plugins": [
90-
"eslint-plugin-local-rules"
91-
]
9258
}
9359
}

0 commit comments

Comments
 (0)