Skip to content

Commit 7ce3db0

Browse files
author
Dmitry Kuznetsov
committed
Updating config for stylelint 15. Adding stylelint-config-standard to dependencies.
1 parent 6a44c95 commit 7ce3db0

File tree

9 files changed

+64
-1717
lines changed

9 files changed

+64
-1717
lines changed

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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

1820
Put 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
```

index.js

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
1-
const stylelint = require('./src/rules/stylelint');
2-
31
module.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+
}

package.json

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
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
}

src/rules/stylelint/avoid-errors.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

src/rules/stylelint/enforce-conventions.js

Lines changed: 0 additions & 81 deletions
This file was deleted.

src/rules/stylelint/index.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/rules/stylelint/stylistic-issues.js

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)