File tree Expand file tree Collapse file tree 9 files changed +64
-1717
lines changed
Expand file tree Collapse file tree 9 files changed +64
-1717
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,19 +5,24 @@ Stylelint configuration for Plesk projects
55[ ![ NPM version] ( https://img.shields.io/npm/v/@plesk/stylelint-config.svg )] ( https://www.npmjs.org/package/@plesk/stylelint-config )
66[ ![ NPM Downloads] ( https://img.shields.io/npm/dm/@plesk/stylelint-config.svg )] ( https://www.npmjs.org/package/@plesk/stylelint-config )
77
8-
98## Installation
10-
11- ```
12- npm install --save-dev @plesk/stylelint-config
9+ Install a compatible version of stylelint.
1310```
11+ # with npm:
12+ npm install --save-dev styleling @plesk/stylelint-config
1413
14+ # with yarn:
15+ yarn add --dev styleling @plesk/stylelint-config
16+ ```
1517
1618## Usage
1719
1820Put into your ` .stylelintrc `
1921``` json
2022{
21- "extends" : " @plesk/stylelint-config"
23+ "extends" : " @plesk/stylelint-config" ,
24+ "rules" : {
25+ // Add overrides and additional rules here
26+ }
2227}
2328```
Original file line number Diff line number Diff line change 1- const stylelint = require ( './src/rules/stylelint' ) ;
2-
31module . exports = {
4- rules : stylelint ,
5- } ;
2+ extends : [
3+ 'stylelint-config-standard'
4+ ] ,
5+ rules : {
6+ 'alpha-value-notation' : 'number' ,
7+ 'custom-property-pattern' : null ,
8+ 'hue-degree-notation' : null ,
9+ 'import-notation' : null ,
10+ 'keyframes-name-pattern' : null ,
11+ 'media-feature-range-notation' : null ,
12+ 'no-descending-specificity' : null ,
13+ 'property-no-vendor-prefix' : null ,
14+ 'selector-class-pattern' : null ,
15+ 'selector-id-pattern' : null ,
16+ 'selector-not-notation' : null
17+ } ,
18+ overrides : [
19+ {
20+ files : [ '**/*.less' ] ,
21+ customSyntax : 'postcss-less' ,
22+ rules : {
23+ 'function-no-unknown' : null ,
24+ 'no-invalid-position-at-import-rule' : null
25+ }
26+ }
27+ ]
28+ }
Original file line number Diff line number Diff line change 11{
22 "name" : " @plesk/stylelint-config" ,
3- "version" : " 1.0.0" ,
4- "description" : " Plesk shareable config for stylelint" ,
3+ "version" : " 2.0.0" ,
4+ "description" : " Stylelint shareable config for Plesk projects" ,
5+ "main" : " index.js" ,
6+ "keywords" : [
7+ " plesk" ,
8+ " stylelint" ,
9+ " stylelint-config"
10+ ],
511 "repository" : {
612 "type" : " git" ,
713 "url" : " git+https://github.com/plesk/stylelint-config.git"
814 },
9- "main" : " index.js" ,
10- "files" : [
11- " src" ,
12- " index.js"
13- ],
14- "scripts" : {
15- "test" : " eslint ."
16- },
17- "devDependencies" : {
18- "@plesk/eslint-config" : " ^1.1.0"
15+ "dependencies" : {
16+ "stylelint-config-standard" : " ^33.0.0"
1917 },
2018 "peerDependencies" : {
21- "stylelint" : " ^14.0.0"
19+ "stylelint" : " ^15.5.0" ,
20+ "postcss-less" : " ^6.0.0"
21+ },
22+ "peerDependenciesMeta" : {
23+ "postcss-less" : {
24+ "optional" : true
25+ }
2226 },
23- "author" : " Alexey Sinko " ,
27+ "author" : " Plesk " ,
2428 "license" : " Apache-2.0"
2529}
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments