@davidsneighbour/stylelint-config 4.0.9 → 5.0.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/LICENSE.md +1 -1
- package/README.md +22 -47
- package/index.js +4 -0
- package/package.json +14 -15
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2023 Patrick Kollitsch / David's Neighbour
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
package/README.md
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
[Stylelint](https://github.com/stylelint/stylelint) configuration for [davidsneighbour](https://github.com/davidsneighbour) projects.
|
|
4
|
-
|
|
5
|
-
### Installation
|
|
6
|
-
|
|
7
|
-
Use npm to install this package as development dependency:
|
|
8
|
-
|
|
9
|
-
```shell
|
|
10
|
-
npm install --save-dev @davidsneighbour/stylelint-config
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
### Configuration
|
|
1
|
+
# Stylelint
|
|
14
2
|
|
|
15
3
|
Add the configuration to your repository (for instance in `.stylelintrc` or `.stylelintrc.json` or the `stylelint` parameter in package.json):
|
|
16
4
|
|
|
17
5
|
```json
|
|
18
6
|
{
|
|
19
|
-
"extends": "@davidsneighbour/stylelint
|
|
7
|
+
"extends": "@davidsneighbour/config/stylelint"
|
|
20
8
|
}
|
|
21
9
|
```
|
|
22
10
|
|
|
@@ -24,7 +12,7 @@ To change parts of the configuration use the `rules` parameter.
|
|
|
24
12
|
|
|
25
13
|
```json
|
|
26
14
|
{
|
|
27
|
-
"extends": "@davidsneighbour/stylelint
|
|
15
|
+
"extends": "@davidsneighbour/config/stylelint",
|
|
28
16
|
"rules": {
|
|
29
17
|
"max-nesting-depth": null
|
|
30
18
|
}
|
|
@@ -45,7 +33,7 @@ Add scripts to your package.json:
|
|
|
45
33
|
|
|
46
34
|
Exchange the `assets/scss/` with your own styles folder.
|
|
47
35
|
|
|
48
|
-
|
|
36
|
+
## Usage
|
|
49
37
|
|
|
50
38
|
Run stylelint and show errors and warnings:
|
|
51
39
|
|
|
@@ -65,34 +53,21 @@ Print the current stylelint configuration:
|
|
|
65
53
|
npm run stylelint:config
|
|
66
54
|
```
|
|
67
55
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
| [cypress-config](https://github.com/davidsneighbour/configurations/tree/main/packages/cypress-config) | [Cypress](https://www.cypress.io/) configuration |
|
|
87
|
-
| [eslint-config](https://github.com/davidsneighbour/configurations/tree/main/packages/eslint-config) | [ESLint](https://github.com/eslint/eslint) configuration |
|
|
88
|
-
| [htmlvalidate-config](https://github.com/davidsneighbour/configurations/tree/main/packages/htmlvalidate-config) | [HTMLValidate](https://html-validate.org/) configuration |
|
|
89
|
-
| [postcss-config](https://github.com/davidsneighbour/configurations/tree/main/packages/postcss-config) | [PostCSS](https://postcss.org/) configuration |
|
|
90
|
-
| [prettier-config](https://github.com/davidsneighbour/configurations/tree/main/packages/prettier-config) | [Prettier](https://prettier.io/) configuration |
|
|
91
|
-
| [remark-config](https://github.com/davidsneighbour/configurations/tree/main/packages/remark-config) | [ReMark](https://github.com/remarkjs/remark-lint) configuration |
|
|
92
|
-
| [standard-version-config](https://github.com/davidsneighbour/configurations/tree/main/packages/standard-version-config) | [Standard Version](https://github.com/conventional-changelog/standard-version) configuration |
|
|
93
|
-
| [stylelint-config](https://github.com/davidsneighbour/configurations/tree/main/packages/stylelint-config) | [StyleLint](https://github.com/stylelint/stylelint) configuration |
|
|
94
|
-
| [textlint-config](https://github.com/davidsneighbour/configurations/tree/main/packages/textlint-config) | [TextLint](https://github.com/textlint/textlint) configuration |
|
|
95
|
-
| [webpack-config](https://github.com/davidsneighbour/configurations/tree/main/packages/webpack-config) | [Webpack](https://webpack.js.org/) configuration |
|
|
96
|
-
| [tools](https://github.com/davidsneighbour/configurations/tree/main/packages/tools) | Tools |
|
|
97
|
-
|
|
98
|
-
<!-- CONFIGURATIONS END -->
|
|
56
|
+
# All configurations
|
|
57
|
+
|
|
58
|
+
- [Babel](/packages/babel-config)
|
|
59
|
+
- [Bootstrap](/packages/bootstrap-config)
|
|
60
|
+
- [Browserslist](/packages/browserslist-config)
|
|
61
|
+
- [Commitlint](/packages/commitlint-config)
|
|
62
|
+
- [CssNano](/packages/cssnano-config)
|
|
63
|
+
- [Cypress](/packages/cypress-config)
|
|
64
|
+
- [ESLint](/packages/eslint-config)
|
|
65
|
+
- [Markdownlint](/packages/markdownlint-config)
|
|
66
|
+
- [PostCSS](/packages/postcss-config)
|
|
67
|
+
- [Prettier](/packages/prettier-config)
|
|
68
|
+
- [Remark Lint](/packages/remark-config)
|
|
69
|
+
- [Standard Version](/packages/standard-version-config)
|
|
70
|
+
- [Stylelint](/packages/stylelint-config)
|
|
71
|
+
- [Textlint](/packages/textlint-config)
|
|
72
|
+
- [Tools](/packages/tools)
|
|
73
|
+
- [Webpack](/packages/webpack-config)
|
package/index.js
CHANGED
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
6
|
module.exports = {
|
|
7
|
+
// https://github.com/bjankord/stylelint-config-sass-guidelines
|
|
8
|
+
// https://sass-guidelin.es/
|
|
7
9
|
extends: ["stylelint-config-sass-guidelines"],
|
|
8
10
|
plugins: ["stylelint-order", "stylelint-no-unsupported-browser-features"],
|
|
11
|
+
// https://stylelint.io/user-guide/rules/
|
|
9
12
|
rules: {
|
|
10
13
|
"max-empty-lines": [
|
|
11
14
|
1,
|
|
@@ -320,4 +323,5 @@ module.exports = {
|
|
|
320
323
|
},
|
|
321
324
|
],
|
|
322
325
|
},
|
|
326
|
+
"ignoreFiles": []
|
|
323
327
|
};
|
package/package.json
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@davidsneighbour/stylelint-config",
|
|
3
|
-
"
|
|
3
|
+
"description": "Stylelint configuration for use in @davidsneighbour projects.",
|
|
4
|
+
"version": "5.0.2",
|
|
4
5
|
"license": "MIT",
|
|
5
|
-
"
|
|
6
|
+
"repository": "davidsneighbour/configurations",
|
|
6
7
|
"author": {
|
|
7
8
|
"name": "Patrick Kollitsch",
|
|
8
9
|
"email": "patrick@davids-neighbour.com",
|
|
9
10
|
"web": "https://davids-neighbour.com"
|
|
10
11
|
},
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/davidsneighbour/configurations/issues"
|
|
15
|
-
},
|
|
12
|
+
"bugs": "https://github.com/davidsneighbour/configurations/issues",
|
|
13
|
+
"homepage": "https://github.com/davidsneighbour/configurations/blob/main/docs/stylelint.md",
|
|
16
14
|
"dependencies": {
|
|
17
|
-
"stylelint": "
|
|
18
|
-
"stylelint-config-sass-guidelines": "
|
|
19
|
-
"stylelint-config-standard": "
|
|
20
|
-
"stylelint-no-unsupported-browser-features": "
|
|
21
|
-
"stylelint-order": "
|
|
15
|
+
"stylelint": "14.16.1",
|
|
16
|
+
"stylelint-config-sass-guidelines": "9.0.1",
|
|
17
|
+
"stylelint-config-standard": "29.0.0",
|
|
18
|
+
"stylelint-no-unsupported-browser-features": "6.0.1",
|
|
19
|
+
"stylelint-order": "6.0.1"
|
|
22
20
|
},
|
|
23
|
-
"main": "index.js",
|
|
24
21
|
"scripts": {
|
|
25
|
-
"
|
|
26
|
-
}
|
|
22
|
+
"fixpack": "fixpack"
|
|
23
|
+
},
|
|
24
|
+
"main": "index.js",
|
|
25
|
+
"gitHead": "8af7f637920a8701d198aa71ecd164fe02b1f6e7"
|
|
27
26
|
}
|