@massimo-cassandro/stylelint-config 2.0.2 → 2.1.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/README.md +28 -17
- package/index.js +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -2,33 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
My [stylelint](https://stylelint.io/) config,
|
|
4
4
|
|
|
5
|
-
Previous versions at <https://github.com/massimo-cassandro/linters-config>.
|
|
6
5
|
|
|
7
6
|
## Use
|
|
8
7
|
|
|
9
|
-
Install
|
|
8
|
+
Install package:
|
|
10
9
|
|
|
11
10
|
```bash
|
|
12
11
|
npm install -D stylelint @massimo-cassandro/stylelint-config
|
|
13
|
-
|
|
14
|
-
Create a `.stylelintrc.cjs` file (or use any other name you like, following the instructions at <https://stylelint.io/user-guide/configure>) and add:
|
|
15
|
-
|
|
16
|
-
```javascript
|
|
17
|
-
/* eslint-env node */
|
|
18
|
-
|
|
19
|
-
module.exports = {
|
|
20
|
-
extends: '@massimo-cassandro/stylelint-config'
|
|
21
|
-
};
|
|
22
12
|
```
|
|
23
13
|
|
|
24
|
-
|
|
14
|
+
Create a `stylelint.config.mjs` file and add:
|
|
25
15
|
|
|
26
16
|
```javascript
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
export default {
|
|
18
|
+
extends: [
|
|
19
|
+
'@massimo-cassandro/stylelint-config',
|
|
20
|
+
],
|
|
21
|
+
|
|
22
|
+
// Files to be ignored
|
|
23
|
+
ignoreFiles: [
|
|
24
|
+
'node_modules/**/*.{css,scss}',
|
|
25
|
+
'vendor/**/*.{css,scss}',
|
|
26
|
+
'templates/**/*.{css,scss}',
|
|
27
|
+
'dist/**/*.css',
|
|
28
|
+
'build/**/*.css',
|
|
29
|
+
'public/**/*.css',
|
|
30
|
+
'test/**/*.css'
|
|
31
|
+
],
|
|
32
|
+
|
|
33
|
+
// Overrides
|
|
34
|
+
rules: {
|
|
35
|
+
//********************** optionally for tailwind:
|
|
36
|
+
// 'at-rule-no-unknown': [
|
|
37
|
+
// true,
|
|
38
|
+
// 'value-keyword-case': null,
|
|
39
|
+
// '@stylistic/number-no-trailing-zeros': null
|
|
40
|
+
// ],
|
|
41
|
+
//********************** /tailwind
|
|
42
|
+
}
|
|
31
43
|
};
|
|
32
44
|
```
|
|
33
45
|
|
|
34
|
-
(NB: note that `stylelint-config-standard` is included in [stylelint-config-twbs-bootstrap](https://github.com/twbs/stylelint-config-twbs-bootstrap) )
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@massimo-cassandro/stylelint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "my stylelint config",
|
|
5
5
|
"author": "Massimo Cassandro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@eslint/js": "^10.0.1",
|
|
33
|
-
"@massimo-cassandro/dev-updater": "^
|
|
33
|
+
"@massimo-cassandro/dev-updater": "^3.0.1",
|
|
34
34
|
"@massimo-cassandro/eslint-config": "^2.0.8",
|
|
35
35
|
"eslint": "^10.0.0",
|
|
36
36
|
"globals": "^17.3.0"
|