@cherepanov.pavel/shareable-config 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,6 @@
7
7
  // typescript
8
8
  "yoavbls.pretty-ts-errors",
9
9
  "vue.volar",
10
- "mrmlnc.vscode-scss",
11
10
  "ms-azuretools.vscode-containers",
12
11
  // "redhat.vscode-yaml",
13
12
  "savh.json5-kit",
@@ -43,10 +43,9 @@
43
43
  "jsonc",
44
44
  "json5",
45
45
  ],
46
- // "stylelint.validate": [
47
- // "css",
48
- // "scss",
49
- // "vue"
50
- // ],
46
+ "stylelint.validate": [
47
+ "css",
48
+ "vue",
49
+ ],
51
50
  "cSpell.language": "en,ru",
52
51
  }
@@ -9,7 +9,7 @@
9
9
  "<template>",
10
10
  "</template>",
11
11
  "",
12
- "<style scoped lang=\"scss\">",
12
+ "<style scoped>",
13
13
  "</style>",
14
14
  ],
15
15
  // typescript multiline
@@ -20,7 +20,7 @@
20
20
  "<template>",
21
21
  "</template>",
22
22
  "",
23
- "<style scoped lang=\"scss\">",
23
+ "<style scoped>",
24
24
  "</style>",
25
25
  ],
26
26
  // typescript multiline end
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cherepanov.pavel/shareable-config",
3
3
  "description": "setup for new repositories",
4
- "version": "1.0.16",
4
+ "version": "1.0.18",
5
5
  "type": "module",
6
6
  "devEngines": {
7
7
  "packageManager": {
@@ -66,7 +66,6 @@
66
66
  "postcss-html": "^2.0.0",
67
67
  "stylelint": "^17.14.1",
68
68
  "stylelint-config-standard": "^40.0.0",
69
- "stylelint-config-standard-scss": "^17.0.0",
70
69
  "stylelint-config-standard-vue": "^2.0.0",
71
70
  "stylelint-order": "^8.1.1",
72
71
  "vue-eslint-parser": "^10.4.1"
@@ -19,6 +19,8 @@ import stylisticPlugin from "@stylistic/eslint-plugin";
19
19
  const JSON_BUT_JSONC_FILES = [
20
20
  "**/.vscode/*.json",
21
21
  "**/.vscode/*.code-snippets",
22
+ ];
23
+ const JSON_BUT_JSONC_FILES_WITHOUT_COMMA_DANGLE = [
22
24
  "**/tsconfig*.json",
23
25
  ];
24
26
  const COMMON_RULES = {
@@ -109,7 +111,12 @@ const JSON_JSONC_RULES = {
109
111
  "jsonc/no-infinity": ERROR,
110
112
  "jsonc/no-multi-str": suggestionRules["no-multi-str"],
111
113
  };
112
-
114
+ const JSON_JSONC_RULES_WITHOUT_COMMA_DANGLE = {
115
+ "jsonc/comma-dangle": [
116
+ ERROR,
117
+ "never",
118
+ ],
119
+ };
113
120
 
114
121
  export default defineConfig([
115
122
  {
@@ -125,6 +132,7 @@ export default defineConfig([
125
132
  ],
126
133
  ignores: [
127
134
  ...JSON_BUT_JSONC_FILES,
135
+ ...JSON_BUT_JSONC_FILES_WITHOUT_COMMA_DANGLE,
128
136
  "package-lock.json",
129
137
  ],
130
138
  language: "jsonc/json",
@@ -146,6 +154,17 @@ export default defineConfig([
146
154
  ...JSON_JSONC_RULES,
147
155
  },
148
156
  },
157
+ {
158
+ files: [
159
+ ...JSON_BUT_JSONC_FILES_WITHOUT_COMMA_DANGLE,
160
+ ],
161
+ language: "jsonc/jsonc",
162
+ rules: {
163
+ ...COMMON_RULES,
164
+ ...JSON_JSONC_RULES,
165
+ ...JSON_JSONC_RULES_WITHOUT_COMMA_DANGLE,
166
+ },
167
+ },
149
168
 
150
169
  {
151
170
  files: [
@@ -14,15 +14,13 @@ export default {
14
14
  extends: concat(
15
15
  [
16
16
  "stylelint-config-standard",
17
- "stylelint-config-standard-scss",
18
- "stylelint-config-standard-vue/scss",
17
+ "stylelint-config-standard-vue",
19
18
  ],
20
19
  [
21
20
  "./rules/base.js",
22
21
  "./rules/stylistic.js",
23
22
  "./rules/order.js",
24
23
  "./rules/conflicts.js",
25
- "./rules/scss.js",
26
24
  ].map((string) => {
27
25
  return path.resolve(currentDir, string);
28
26
  }),
@@ -1,13 +0,0 @@
1
- export default {
2
- rules: {
3
- /* $-variables */
4
- "scss/dollar-variable-empty-line-before": [
5
- "never",
6
- {
7
- ignore: "after-dollar-variable",
8
- },
9
- ],
10
- // https://gitlab.kadnk.ru/frontend/configs/-/issues/1
11
- "scss/load-partial-extension": "always",
12
- },
13
- };