@aarongoldenthal/stylelint-config-standard 8.0.0 → 11.0.0

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.
Files changed (3) hide show
  1. package/README.md +12 -1
  2. package/index.js +19 -5
  3. package/package.json +19 -16
package/README.md CHANGED
@@ -2,10 +2,21 @@
2
2
 
3
3
  Custom standard StyleLint configuration for all projects. Includes all referenced configurations and plugins as dependencies so they do not need to be added separately.
4
4
 
5
- To configure `.stylelintrc.json`:
5
+ To setup `.stylelintrc.json` with this configuration alone:
6
6
 
7
7
  ```json
8
8
  {
9
9
  "extends": ["@aarongoldenthal/stylelint-config-standard"]
10
10
  }
11
11
  ```
12
+
13
+ If using prettier, the `stylelint-config-prettier` config (included with this package) should be added as the last `extends` in you project's stylelint config to ensure conflicting rules are disabled.
14
+
15
+ ```json
16
+ {
17
+ "extends": [
18
+ "@aarongoldenthal/stylelint-config-standard",
19
+ "stylelint-config-prettier"
20
+ ]
21
+ }
22
+ ```
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- extends: 'stylelint-config-standard',
4
+ extends: ['stylelint-config-standard'],
5
5
  overrides: [
6
6
  {
7
7
  files: ['**/*.html', '**/*.handlebars'],
@@ -11,16 +11,30 @@ module.exports = {
11
11
  }
12
12
  }
13
13
  ],
14
- plugins: ['stylelint-csstree-validator'],
14
+ plugins: ['stylelint-csstree-validator', 'stylelint-order'],
15
15
  reportDescriptionlessDisables: true,
16
16
  reportInvalidScopeDisables: true,
17
17
  reportNeedlessDisables: true,
18
18
  rules: {
19
+ 'annotation-no-unknown': true,
19
20
  'color-hex-length': 'long',
20
21
  'font-family-name-quotes': 'always-where-recommended',
21
- indentation: 4,
22
+ 'keyframe-block-no-duplicate-selectors': true,
23
+ 'keyframe-selector-notation': 'percentage',
22
24
  'selector-not-notation': 'complex',
23
- 'unit-allowed-list': ['%', 'em', 'fr', 'rem', 's', 'px', 'vh'],
24
- 'csstree/validator': true
25
+ 'unit-allowed-list': [
26
+ '%',
27
+ 'em',
28
+ 'fr',
29
+ 'rem',
30
+ 's',
31
+ 'px',
32
+ 'vh',
33
+ 's',
34
+ 'ms',
35
+ 'deg'
36
+ ],
37
+ 'csstree/validator': true,
38
+ 'order/properties-alphabetical-order': true
25
39
  }
26
40
  };
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@aarongoldenthal/stylelint-config-standard",
3
- "version": "8.0.0",
3
+ "version": "11.0.0",
4
4
  "description": "Standard StyleLint configuration settings",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "hooks-pre-commit": "npm run lint && npm run prettier-check",
7
+ "hooks-pre-commit": "npm run stylelint-check && npm run lint && npm run prettier-check",
8
8
  "hooks-pre-push": "npm audit --audit-level=high && npm test",
9
9
  "lint": "npm run lint-js && npm run lint-md",
10
10
  "lint-js": "eslint \"**/*.js\"",
11
11
  "lint-md": "markdownlint **/*.md --ignore node_modules",
12
- "prettier-check": "prettier --check --ignore-path=.gitignore .",
13
- "prettier-fix": "prettier --write --ignore-path=.gitignore .",
12
+ "prettier-check": "prettier --check .",
13
+ "prettier-fix": "prettier --write .",
14
+ "stylelint-check": "stylelint-config-prettier-check",
14
15
  "test": "jest --ci --config jest.config.json"
15
16
  },
16
17
  "repository": {
@@ -23,7 +24,7 @@
23
24
  "author": "Aaron Goldenthal <npm@aarongoldenthal.com>",
24
25
  "license": "MIT",
25
26
  "engines": {
26
- "node": "^12.20.0 || ^14.15.0 || >=16.0.0"
27
+ "node": "^14.15.0 || ^16.13.0 || >=18.0.0"
27
28
  },
28
29
  "files": [
29
30
  "index.js"
@@ -33,20 +34,22 @@
33
34
  },
34
35
  "homepage": "https://gitlab.com/gitlab-ci-utils/stylelint-config-standard",
35
36
  "dependencies": {
36
- "postcss-html": "^1.4.1",
37
- "stylelint-config-standard": "^25.0.0",
38
- "stylelint-csstree-validator": "^2.0.0"
37
+ "postcss-html": "^1.5.0",
38
+ "stylelint-config-prettier": "^9.0.3",
39
+ "stylelint-config-standard": "^27.0.0",
40
+ "stylelint-csstree-validator": "^2.0.0",
41
+ "stylelint-order": "^5.0.0"
39
42
  },
40
43
  "devDependencies": {
41
- "@aarongoldenthal/eslint-config-standard": "^14.0.0",
42
- "eslint": "^8.13.0",
43
- "jest": "^27.5.1",
44
- "jest-junit": "^13.1.0",
45
- "markdownlint-cli": "^0.31.1",
46
- "prettier": "^2.6.2",
47
- "stylelint": "^14.7.1"
44
+ "@aarongoldenthal/eslint-config-standard": "^15.0.0",
45
+ "eslint": "^8.22.0",
46
+ "jest": "^28.1.3",
47
+ "jest-junit": "^14.0.0",
48
+ "markdownlint-cli": "^0.32.1",
49
+ "prettier": "^2.7.1",
50
+ "stylelint": "^14.10.0"
48
51
  },
49
52
  "peerDependencies": {
50
- "stylelint": "^14.7.0"
53
+ "stylelint": "^14.8.0"
51
54
  }
52
55
  }