@aarongoldenthal/stylelint-config-standard 7.0.0 → 10.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.
File without changes
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # stylelint-config-standard
2
2
 
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.
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. Any rules that conflict with `prettier` are disabled.
4
4
 
5
5
  To configure `.stylelintrc.json`:
6
6
 
7
- ```json
7
+ ```json
8
8
  {
9
- "extends": ["@aarongoldenthal/stylelint-config-standard"]
9
+ "extends": ["@aarongoldenthal/stylelint-config-standard"]
10
10
  }
11
11
  ```
package/index.js CHANGED
@@ -1,30 +1,27 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- extends: 'stylelint-config-standard',
4
+ extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
5
5
  overrides: [
6
6
  {
7
- files: [
8
- '**/*.html',
9
- '**/*.handlebars'
10
- ],
7
+ files: ['**/*.html', '**/*.handlebars'],
11
8
  customSyntax: 'postcss-html',
12
9
  rules: {
13
10
  indentation: 'tab'
14
11
  }
15
12
  }
16
13
  ],
17
- plugins: [
18
- 'stylelint-csstree-validator'
19
- ],
14
+ plugins: ['stylelint-csstree-validator', 'stylelint-order'],
20
15
  reportDescriptionlessDisables: true,
21
16
  reportInvalidScopeDisables: true,
22
17
  reportNeedlessDisables: true,
23
18
  rules: {
24
19
  'color-hex-length': 'long',
25
20
  'font-family-name-quotes': 'always-where-recommended',
26
- 'indentation': 4,
21
+ 'keyframe-block-no-duplicate-selectors': true,
22
+ 'selector-not-notation': 'complex',
27
23
  'unit-allowed-list': ['%', 'em', 'fr', 'rem', 's', 'px', 'vh'],
28
- 'csstree/validator': true
24
+ 'csstree/validator': true,
25
+ 'order/properties-alphabetical-order': true
29
26
  }
30
27
  };
package/package.json CHANGED
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "name": "@aarongoldenthal/stylelint-config-standard",
3
- "version": "7.0.0",
3
+ "version": "10.0.0",
4
4
  "description": "Standard StyleLint configuration settings",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "jest --ci --config jest.config.json",
7
+ "hooks-pre-commit": "npm run stylelint-check && npm run lint && npm run prettier-check",
8
+ "hooks-pre-push": "npm audit --audit-level=high && npm test",
9
+ "lint": "npm run lint-js && npm run lint-md",
8
10
  "lint-js": "eslint \"**/*.js\"",
9
11
  "lint-md": "markdownlint **/*.md --ignore node_modules",
10
- "lint": "npm run lint-js && npm run lint-md",
11
- "push": "npm run lint && npm audit --audit-level=high && npm test"
12
+ "prettier-check": "prettier --check --ignore-path=.gitignore .",
13
+ "prettier-fix": "prettier --write --ignore-path=.gitignore .",
14
+ "stylelint-check": "stylelint-config-prettier-check",
15
+ "test": "jest --ci --config jest.config.json"
12
16
  },
13
17
  "repository": {
14
18
  "type": "git",
@@ -20,7 +24,7 @@
20
24
  "author": "Aaron Goldenthal <npm@aarongoldenthal.com>",
21
25
  "license": "MIT",
22
26
  "engines": {
23
- "node": "^12.20.0 || ^14.15.0 || >=16.0.0"
27
+ "node": "^14.15.0 || ^16.13.0 || >=18.0.0"
24
28
  },
25
29
  "files": [
26
30
  "index.js"
@@ -28,21 +32,24 @@
28
32
  "bugs": {
29
33
  "url": "https://gitlab.com/gitlab-ci-utils/stylelint-config-standard/issues"
30
34
  },
31
- "homepage": "https://gitlab.com/gitlab-ci-utils/stylelint-config-standard#readme",
35
+ "homepage": "https://gitlab.com/gitlab-ci-utils/stylelint-config-standard",
32
36
  "dependencies": {
33
- "postcss-html": "^1.3.0",
34
- "stylelint-config-standard": "^25.0.0",
35
- "stylelint-csstree-validator": "^2.0.0"
37
+ "postcss-html": "^1.4.1",
38
+ "stylelint-config-prettier": "^9.0.3",
39
+ "stylelint-config-standard": "^26.0.0",
40
+ "stylelint-csstree-validator": "^2.0.0",
41
+ "stylelint-order": "^5.0.0"
36
42
  },
37
43
  "devDependencies": {
38
- "@aarongoldenthal/eslint-config-standard": "^11.0.0",
39
- "eslint": "^8.8.0",
40
- "jest": "^27.5.1",
41
- "jest-junit": "^13.0.0",
42
- "markdownlint-cli": "^0.31.0",
43
- "stylelint": "^14.4.0"
44
+ "@aarongoldenthal/eslint-config-standard": "^15.0.0",
45
+ "eslint": "^8.18.0",
46
+ "jest": "^28.1.1",
47
+ "jest-junit": "^14.0.0",
48
+ "markdownlint-cli": "^0.31.1",
49
+ "prettier": "^2.7.1",
50
+ "stylelint": "^14.9.1"
44
51
  },
45
52
  "peerDependencies": {
46
- "stylelint": "^14.0.0"
53
+ "stylelint": "^14.8.0"
47
54
  }
48
55
  }