@rgb72/coding-standards 0.1.0 → 0.1.2
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.
- package/package.json +3 -5
- package/stylelint/index.mjs +7 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rgb72/coding-standards",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Shared Prettier, ESLint, Stylelint, EditorConfig and PHP CS Fixer config for rgb72 projects (Laravel + Vue/Vuetify)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,8 +33,6 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
|
36
|
-
"@stylistic/stylelint-config": "^5.0.0",
|
|
37
|
-
"@stylistic/stylelint-plugin": "^5.0.0",
|
|
38
36
|
"eslint-plugin-vuetify": "^2.5.0",
|
|
39
37
|
"postcss-html": "^1.8.0",
|
|
40
38
|
"postcss-scss": "^4.0.9",
|
|
@@ -45,13 +43,13 @@
|
|
|
45
43
|
"peerDependencies": {
|
|
46
44
|
"eslint": "^9.22.0",
|
|
47
45
|
"prettier": "^3.0.0",
|
|
48
|
-
"stylelint": "^17.
|
|
46
|
+
"stylelint": "^17.0.0"
|
|
49
47
|
},
|
|
50
48
|
"devDependencies": {
|
|
51
49
|
"eslint": "^9.22.0",
|
|
52
50
|
"eslint-plugin-vue": "^10.0.0",
|
|
53
51
|
"prettier": "^3.0.0",
|
|
54
|
-
"stylelint": "^17.
|
|
52
|
+
"stylelint": "^17.0.0",
|
|
55
53
|
"typescript": "^5.9.0",
|
|
56
54
|
"typescript-eslint": "^8.73.0"
|
|
57
55
|
},
|
package/stylelint/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared Stylelint config for SCSS + Vue SFC styles (Vuetify / Vuexy).
|
|
3
|
+
* Formatting is Prettier's job — no @stylistic rules here.
|
|
3
4
|
*
|
|
4
5
|
* Usage (stylelint.config.mjs):
|
|
5
6
|
* export default { extends: ['@rgb72/coding-standards/stylelint'] }
|
|
@@ -7,23 +8,20 @@
|
|
|
7
8
|
* @type {import('stylelint').Config}
|
|
8
9
|
*/
|
|
9
10
|
export default {
|
|
10
|
-
extends: [
|
|
11
|
-
|
|
12
|
-
'stylelint-config-idiomatic-order',
|
|
13
|
-
'@stylistic/stylelint-config',
|
|
14
|
-
],
|
|
15
|
-
plugins: ['stylelint-use-logical-spec', '@stylistic/stylelint-plugin'],
|
|
11
|
+
extends: ['stylelint-config-standard-scss', 'stylelint-config-idiomatic-order'],
|
|
12
|
+
plugins: ['stylelint-use-logical-spec'],
|
|
16
13
|
overrides: [
|
|
17
14
|
{ files: ['**/*.scss'], customSyntax: 'postcss-scss' },
|
|
18
15
|
{ files: ['**/*.vue'], customSyntax: 'postcss-html' },
|
|
19
16
|
],
|
|
20
17
|
rules: {
|
|
21
|
-
'@stylistic/indentation': 2,
|
|
22
|
-
'@stylistic/string-quotes': 'single',
|
|
23
|
-
'@stylistic/max-line-length': [120, { ignore: ['comments'] }],
|
|
24
18
|
'liberty/use-logical-spec': true,
|
|
25
19
|
'selector-class-pattern': null,
|
|
26
20
|
'color-function-notation': null,
|
|
21
|
+
// Vuetify: rgba(var(--v-theme-primary), 0.12)
|
|
22
|
+
'color-function-alias-notation': null,
|
|
23
|
+
'alpha-value-notation': null,
|
|
24
|
+
'selector-pseudo-class-no-unknown': [true, { ignorePseudoClasses: ['deep', 'slotted', 'global'] }],
|
|
27
25
|
'media-feature-range-notation': null,
|
|
28
26
|
'shorthand-property-no-redundant-values': null,
|
|
29
27
|
'annotation-no-unknown': [true, { ignoreAnnotations: ['default'] }],
|