|
17 | 17 | "./tools/stylelint/no-unused-import.ts" |
18 | 18 | ], |
19 | 19 | "rules": { |
20 | | - "material/no-prefixes": [true, { |
21 | | - "browsers": ["last 2 versions", "not dead", "not and_qq > 0", "not OperaMini all", "not ie > 0", "not edge < 78"], |
22 | | - "filePattern": "**/!(*-example.css)" |
23 | | - }], |
| 20 | + "material/no-prefixes": [ |
| 21 | + true, |
| 22 | + { |
| 23 | + "browsers": [ |
| 24 | + "last 2 versions", |
| 25 | + "not dead", |
| 26 | + "not and_qq > 0", |
| 27 | + "not OperaMini all", |
| 28 | + "not ie > 0", |
| 29 | + "not edge < 78" |
| 30 | + ], |
| 31 | + "filePattern": "**/!(*-example.css)" |
| 32 | + } |
| 33 | + ], |
24 | 34 | "material/theme-mixin-api": true, |
25 | 35 | "material/selector-no-deep": true, |
26 | 36 | "material/no-nested-mixin": true, |
27 | 37 | "material/no-unused-import": true, |
28 | | - "material/single-line-comment-only": [true, { |
29 | | - "filePattern": "\\.scss$" |
30 | | - }], |
31 | | - "material/no-import": [true, { |
32 | | - "exclude": "\\.import\\.scss$" |
33 | | - }], |
34 | | - "material/no-ampersand-beyond-selector-start": [true, { |
35 | | - "filePattern": "-theme\\.scss$" |
36 | | - }], |
37 | | - "material/no-concrete-rules": [true, { |
38 | | - "filePattern": "^_.*\\.scss$" |
39 | | - }], |
40 | | - "material/no-top-level-ampersand-in-mixin": [true, { |
41 | | - "filePattern": "-theme\\.scss$" |
42 | | - }], |
| 38 | + "material/single-line-comment-only": [ |
| 39 | + true, |
| 40 | + { |
| 41 | + "filePattern": "\\.scss$" |
| 42 | + } |
| 43 | + ], |
| 44 | + "material/no-import": [ |
| 45 | + true, |
| 46 | + { |
| 47 | + "exclude": "\\.import\\.scss$" |
| 48 | + } |
| 49 | + ], |
| 50 | + "material/no-ampersand-beyond-selector-start": [ |
| 51 | + true, |
| 52 | + { |
| 53 | + "filePattern": "-theme\\.scss$" |
| 54 | + } |
| 55 | + ], |
| 56 | + "material/no-concrete-rules": [ |
| 57 | + true, |
| 58 | + { |
| 59 | + "filePattern": "^_.*\\.scss$" |
| 60 | + } |
| 61 | + ], |
| 62 | + "material/no-top-level-ampersand-in-mixin": [ |
| 63 | + true, |
| 64 | + { |
| 65 | + "filePattern": "-theme\\.scss$" |
| 66 | + } |
| 67 | + ], |
43 | 68 |
|
44 | 69 | "color-hex-case": "lower", |
45 | 70 | "color-no-invalid-hex": true, |
|
71 | 96 | "property-case": "lower", |
72 | 97 | "no-duplicate-at-import-rules": true, |
73 | 98 |
|
74 | | - "declaration-block-no-duplicate-properties": [true, { |
75 | | - "ignore": ["consecutive-duplicates-with-different-values"] |
76 | | - }], |
| 99 | + "declaration-block-no-duplicate-properties": [ |
| 100 | + true, |
| 101 | + { |
| 102 | + "ignore": ["consecutive-duplicates-with-different-values"] |
| 103 | + } |
| 104 | + ], |
77 | 105 | "declaration-block-trailing-semicolon": "always", |
78 | 106 | "declaration-block-single-line-max-declarations": 1, |
79 | 107 | "declaration-block-semicolon-space-before": "never", |
|
105 | 133 | "selector-max-id": 0, |
106 | 134 | "no-missing-end-of-source-newline": true, |
107 | 135 | "no-eol-whitespace": true, |
108 | | - "max-line-length": [100, { |
109 | | - "ignorePattern": "/https?://.*/" |
110 | | - }], |
| 136 | + "max-line-length": [ |
| 137 | + 100, |
| 138 | + { |
| 139 | + "ignorePattern": "/https?://.*/" |
| 140 | + } |
| 141 | + ], |
111 | 142 | "linebreaks": "unix", |
112 | | - "selector-class-pattern": ["^_?(mat-|cdk-|example-|demo-|ng-|mdc-|map-|test-)", { |
113 | | - "resolveNestedSelectors": true |
114 | | - }] |
| 143 | + "selector-class-pattern": [ |
| 144 | + "^_?(mat-|cdk-|example-|demo-|ng-|mdc-|map-|test-)", |
| 145 | + { |
| 146 | + "resolveNestedSelectors": true |
| 147 | + } |
| 148 | + ] |
115 | 149 | } |
116 | 150 | } |
0 commit comments