@siemens/stylelint-config-scss 1.0.1 → 1.1.0

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/README.md CHANGED
@@ -59,7 +59,7 @@ export default typescriptEslint.config({
59
59
  files: ['**/*.ts'],
60
60
  languageOptions: {
61
61
  parserOptions: {
62
- project: ['tsconfig.json', 'tsconfig.app.json', 'tsconfig.spec.json', 'e2e/tsconfig.json']
62
+ project: ['tsconfig.json', 'tsconfig.app.json', 'tsconfig.spec.json', 'e2e/tsconfig.json'],
63
63
  tsconfigRootDir: __dirname
64
64
  }
65
65
  }
@@ -80,6 +80,7 @@ import { fileURLToPath } from 'url';
80
80
  import typescriptEslint from 'typescript-eslint';
81
81
  import angularTypescriptConfig from '@siemens/eslint-config-angular';
82
82
  import angularTemplateConfig from '@siemens/eslint-config-angular/template';
83
+ import prettier from 'eslint-config-prettier';
83
84
 
84
85
  // mimic CommonJS variables
85
86
  const __filename = fileURLToPath(import.meta.url);
@@ -90,7 +91,7 @@ export const tsConfig = typescriptEslint.config({
90
91
  files: ['**/*.ts'],
91
92
  languageOptions: {
92
93
  parserOptions: {
93
- project: ['tsconfig.json', 'tsconfig.app.json', 'tsconfig.spec.json', 'e2e/tsconfig.json']
94
+ project: ['tsconfig.json', 'tsconfig.app.json', 'tsconfig.spec.json', 'e2e/tsconfig.json'],
94
95
  tsconfigRootDir: __dirname
95
96
  }
96
97
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siemens/stylelint-config-scss",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Configuration for Stylelint using SCSS (Sass).",
5
5
  "files": [
6
6
  "*.yml",
@@ -26,7 +26,6 @@
26
26
  "license": "MIT",
27
27
  "peerDependencies": {
28
28
  "stylelint": "^16.8.1",
29
- "stylelint-config-sass-guidelines": "^11.1.0",
30
29
  "stylelint-scss": "^6.5.1"
31
30
  }
32
31
  }
package/stylelintrc.yml CHANGED
@@ -1,6 +1,54 @@
1
- extends:
2
- - stylelint-config-sass-guidelines
1
+ plugins:
2
+ - stylelint-scss
3
3
  rules:
4
+ at-rule-disallowed-list:
5
+ - debug
6
+ at-rule-no-unknown: null
7
+ at-rule-no-vendor-prefix: true
8
+ block-no-empty: true
9
+ color-hex-length: short
10
+ color-no-invalid-hex: true
11
+ declaration-block-single-line-max-declarations: 1
12
+ declaration-property-value-disallowed-list:
13
+ border:
14
+ - none
15
+ border-top:
16
+ - none
17
+ border-right:
18
+ - none
19
+ border-bottom:
20
+ - none
21
+ border-left:
22
+ - none
23
+ function-url-quotes: always
24
+ length-zero-no-unit: true
25
+ media-feature-name-no-vendor-prefix: true
26
+ property-no-unknown: true
27
+ property-no-vendor-prefix: true
28
+ rule-empty-line-before:
29
+ - always-multi-line
30
+ - except:
31
+ - first-nested
32
+ ignore:
33
+ - after-comment
34
+ selector-class-pattern:
35
+ - '^[a-z0-9\-]+$'
36
+ - message: 'Selector should be written in lowercase with hyphens (selector-class-pattern)'
37
+ selector-max-id: 0
38
+ selector-no-vendor-prefix: true
39
+ selector-pseudo-element-colon-notation: double
40
+ shorthand-property-no-redundant-values: true
41
+ value-no-vendor-prefix: true
42
+ scss/at-function-pattern: '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$'
43
+ scss/at-import-partial-extension-disallowed-list:
44
+ - scss
45
+ scss/at-rule-no-unknown: true
46
+ scss/dollar-variable-colon-space-before: never
47
+ scss/dollar-variable-pattern: '^[_]?[a-z]+([a-z0-9-]+[a-z0-9]+)?$'
48
+ scss/load-no-partial-leading-underscore: true
49
+ scss/no-global-function-names: true
50
+ scss/percent-placeholder-pattern: '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$'
51
+ scss/selector-no-redundant-nesting-selector: true
4
52
  color-named: never
5
53
  color-no-hex: true
6
54
  declaration-no-important: true