@aarongoldenthal/stylelint-config-standard 2.0.0 → 4.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.0.0 (2021-10-22)
4
+
5
+ ### Changed
6
+
7
+ - BREAKING: Updated to `stylelint` v14
8
+ - Added `post-css` to parse `.html` and `.handlebars` syntax
9
+ - BREAKING: Update to `stylelint-config-standard` v23
10
+
11
+ ### Fixed
12
+
13
+ - Updated to latest dependencies
14
+
15
+ ### Miscellaneous
16
+
17
+ - Move `jest` config to separate file (#9)
18
+
19
+ ## v3.0.1 (2021-08-29)
20
+
21
+ ### Fixed
22
+
23
+ - Updated to latest dependencies
24
+
25
+ ### Miscellaneous
26
+
27
+ - Integrate [renovate](https://docs.renovatebot.com/) for automatic dependency updates (#6)
28
+
29
+ ## v3.0.0 (2021-05-31)
30
+
31
+ ### Changed
32
+
33
+ - BREAKING: Deprecated support for Node 10 and 15 since end-of-life. Compatible with all current and LTS releases (`^12.20.0 || ^14.15.0 || >=16.0.0`). (#4)
34
+
35
+ ### Fixed
36
+
37
+ - Updated to latest dependencies
38
+
39
+ ## v2.0.1 (2021-05-09)
40
+
41
+ ### Fixed
42
+
43
+ - Updated to latest dependencies, including resolving vulnerabilities
44
+
45
+ ### Miscellaneous
46
+
47
+ - Optimize published package to only include the minimum required files (#3)
48
+
3
49
  ## v2.0.0 (2021-03-13)
4
50
 
5
51
  ### Changed
package/index.js CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  module.exports = {
4
4
  extends: 'stylelint-config-standard',
5
+ overrides: [
6
+ {
7
+ files: [
8
+ '**/*.html',
9
+ '**/*.handlebars'
10
+ ],
11
+ customSyntax: 'postcss-html',
12
+ rules: {
13
+ indentation: 'tab'
14
+ }
15
+ }
16
+ ],
5
17
  reportDescriptionlessDisables: true,
6
18
  reportInvalidScopeDisables: true,
7
19
  reportNeedlessDisables: true,
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@aarongoldenthal/stylelint-config-standard",
3
- "version": "2.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Standard StyleLint configuration settings",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "jest --ci",
7
+ "test": "jest --ci --config jest.config.json",
8
8
  "lint-js": "eslint \"**/*.js\"",
9
9
  "lint-md": "markdownlint **/*.md --ignore node_modules",
10
10
  "lint": "npm run lint-js && npm run lint-md",
@@ -17,54 +17,31 @@
17
17
  "keywords": [
18
18
  "stylelint"
19
19
  ],
20
- "author": "Aaron Goldenthal",
20
+ "author": "Aaron Goldenthal <npm@aarongoldenthal.com>",
21
21
  "license": "MIT",
22
22
  "engines": {
23
- "node": "^10.13.0 || ^12.13.0 || >=14.0.0"
23
+ "node": "^12.20.0 || ^14.15.0 || >=16.0.0"
24
24
  },
25
+ "files": [
26
+ "index.js"
27
+ ],
25
28
  "bugs": {
26
29
  "url": "https://gitlab.com/gitlab-ci-utils/stylelint-config-standard/issues"
27
30
  },
28
31
  "homepage": "https://gitlab.com/gitlab-ci-utils/stylelint-config-standard#readme",
29
32
  "dependencies": {
30
- "stylelint-config-standard": "^21.0.0"
33
+ "postcss-html": "^1.0.1",
34
+ "stylelint-config-standard": "^23.0.0"
31
35
  },
32
36
  "devDependencies": {
33
- "@aarongoldenthal/eslint-config-standard": "^6.2.0",
34
- "eslint": "^7.22.0",
35
- "husky": "^4.3.8",
36
- "jest": "^26.6.3",
37
- "jest-junit": "^12.0.0",
38
- "markdownlint-cli": "^0.27.1",
39
- "stylelint": "^13.12.0"
37
+ "@aarongoldenthal/eslint-config-standard": "^10.0.0",
38
+ "eslint": "^8.1.0",
39
+ "jest": "^27.3.1",
40
+ "jest-junit": "^13.0.0",
41
+ "markdownlint-cli": "^0.29.0",
42
+ "stylelint": "^14.0.0"
40
43
  },
41
44
  "peerDependencies": {
42
- "stylelint": "^13.10.0"
43
- },
44
- "jest": {
45
- "collectCoverage": true,
46
- "collectCoverageFrom": [
47
- "**/*.js",
48
- "!**/coverage/**"
49
- ],
50
- "reporters": [
51
- "default",
52
- [
53
- "jest-junit",
54
- {
55
- "suiteNameTemplate": "{filename}",
56
- "classNameTemplate": "{classname}",
57
- "titleTemplate": "{title}"
58
- }
59
- ]
60
- ],
61
- "verbose": true,
62
- "testEnvironment": "node"
63
- },
64
- "husky": {
65
- "hooks": {
66
- "pre-commit": "npm run lint",
67
- "pre-push": "npm run push"
68
- }
45
+ "stylelint": "^14.0.0"
69
46
  }
70
47
  }
package/.codeclimate.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "version": "2",
3
- "plugins": {
4
- "eslint": {
5
- "enabled": false
6
- }
7
- }
8
- }
package/.depcheckrc.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "ignores": ["stylelint-config-standard"]
3
- }
package/.eslintrc.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "extends": [
3
- "@aarongoldenthal/eslint-config-standard",
4
- "@aarongoldenthal/eslint-config-standard/jest-config",
5
- "@aarongoldenthal/eslint-config-standard/jsdoc-config",
6
- "@aarongoldenthal/eslint-config-standard/node-config",
7
- "@aarongoldenthal/eslint-config-standard/sonarjs-config"
8
- ],
9
- "ignorePatterns": [
10
- ".vscode/",
11
- "Archive/",
12
- "node_modules/",
13
- "coverage/"
14
- ],
15
- "root": true
16
- }
package/.gitattributes DELETED
@@ -1,4 +0,0 @@
1
- * text=auto
2
-
3
- *.js text eol=lf
4
- *.handlebars eol=lf
@@ -1,16 +0,0 @@
1
- {
2
- "defaults": {
3
- "name": "$$CHANGELOG",
4
- "description": "$$CHANGELOG",
5
- "assets": {
6
- "links": [
7
- {
8
- "name": "npm",
9
- "url": "https://www.npmjs.com/package/@aarongoldenthal/stylelint-config-standard",
10
- "type": "package"
11
- }
12
- ]
13
- },
14
- "milestones": [ "${CI_COMMIT_TAG}" ]
15
- }
16
- }
@@ -1,13 +0,0 @@
1
- {
2
- "default": true,
3
- "header-style": { "style": "atx" },
4
- "ul-style": { "style": "dash" },
5
- "ul-indent": { "indent": 2 },
6
- "line-length": false,
7
- "no-duplicate-header": { "siblings_only": true } ,
8
- "ol-prefix": { "style": "ordered" },
9
- "no-inline-html": false,
10
- "no-bare-urls": false,
11
- "hr-style": { "style": "---" },
12
- "fenced-code-language": false
13
- }
package/.stylelintrc.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "extends": ["./index.js"]
3
- }
@@ -1,20 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`test config should validate CSS with errors and find correct errors 1`] = `
4
- Array [
5
- Object {
6
- "column": 23,
7
- "line": 53,
8
- "rule": "color-hex-length",
9
- "severity": "error",
10
- "text": "Expected \\"#333\\" to be \\"#333333\\" (color-hex-length)",
11
- },
12
- Object {
13
- "column": 16,
14
- "line": 12,
15
- "rule": "unit-allowed-list",
16
- "severity": "error",
17
- "text": "Unexpected unit \\"pt\\" (unit-allowed-list)",
18
- },
19
- ]
20
- `;
@@ -1,29 +0,0 @@
1
- 'use strict';
2
-
3
- const { lint } = require('stylelint');
4
- const config = require('../index');
5
-
6
- const fileTestAllPass = './tests/test-cases/test-all-pass.css';
7
- const fileTestSomeFail = './tests/test-cases/test-some-fail.css';
8
-
9
- describe('test config', () => {
10
- it('should validate CSS default config and find no parsing errors', async() => {
11
- expect.assertions(1);
12
- const result = await lint({ config, files: fileTestAllPass });
13
- expect(result.results[0].parseErrors).toHaveLength(0);
14
- });
15
-
16
- it('should validate CSS with no errors and find no errors', async() => {
17
- expect.assertions(1);
18
- const result = await lint({ config, files: fileTestAllPass });
19
- expect(result.errored).toStrictEqual(false);
20
- });
21
-
22
- it('should validate CSS with errors and find correct errors', async() => {
23
- expect.assertions(2); // eslint-disable-line no-magic-numbers
24
- const result = await lint({ config, files: fileTestSomeFail });
25
- expect(result.errored).toStrictEqual(true);
26
- const output = JSON.parse(result.output);
27
- expect(output[0].warnings).toMatchSnapshot();
28
- });
29
- });
@@ -1,72 +0,0 @@
1
- html {
2
- margin: 0;
3
- padding: 0;
4
- }
5
-
6
- body {
7
- color: #333333;
8
- font-family: Arial, Helvetica, sans-serif;
9
- font-size: 0.85rem;
10
- padding: 1rem;
11
- margin: auto;
12
- max-width: 1000px;
13
- }
14
-
15
- ul {
16
- margin: 0;
17
- margin-block: 0;
18
- margin-inline: 0;
19
- padding: 0;
20
- padding-inline: 0;
21
- }
22
-
23
- li {
24
- list-style: none;
25
- }
26
-
27
- li:hover {
28
- background-color: rgba(255, 255, 255, 0.1);
29
- border: 1px dotted;
30
- border-right: 4px solid;
31
- padding: calc(0.25rem - 1px);
32
- }
33
-
34
- h1 {
35
- margin-block: 0;
36
- margin-inline: 0;
37
- margin: 1rem 0 0.75rem 0;
38
- }
39
-
40
- h2 {
41
- font-size: 1rem;
42
- }
43
-
44
- .test-summary {
45
- display: flex;
46
- flex-direction: row;
47
- margin-bottom: 2rem;
48
- max-width: 50%;
49
- }
50
-
51
- .summary {
52
- background-color: #f4f4f4;
53
- border: 1px solid #333333;
54
- display: inline-block;
55
- flex: 1 1 10%;
56
- margin: 0 0.25rem;
57
- padding: 0.25rem 0.5rem;
58
- }
59
-
60
- .summary:first-of-type {
61
- margin-left: 0;
62
- }
63
-
64
- .summary:last-of-type {
65
- margin-right: 0;
66
- }
67
-
68
- .passed {
69
- background-color: #dff2bf;
70
- border: 1px solid #44760f;
71
- color: #44760f;
72
- }
@@ -1,72 +0,0 @@
1
- html {
2
- margin: 0;
3
- padding: 0;
4
- }
5
-
6
- body {
7
- color: #333333;
8
- font-family: Arial, Helvetica, sans-serif;
9
- font-size: 0.85rem;
10
- padding: 1rem;
11
- margin: auto;
12
- max-width: 1000pt;
13
- }
14
-
15
- ul {
16
- margin: 0;
17
- margin-block: 0;
18
- margin-inline: 0;
19
- padding: 0;
20
- padding-inline: 0;
21
- }
22
-
23
- li {
24
- list-style: none;
25
- }
26
-
27
- li:hover {
28
- background-color: rgba(255, 255, 255, 0.1);
29
- border: 1px dotted;
30
- border-right: 4px solid;
31
- padding: calc(0.25rem - 1px);
32
- }
33
-
34
- h1 {
35
- margin-block: 0;
36
- margin-inline: 0;
37
- margin: 1rem 0 0.75rem 0;
38
- }
39
-
40
- h2 {
41
- font-size: 1rem;
42
- }
43
-
44
- .test-summary {
45
- display: flex;
46
- flex-direction: row;
47
- margin-bottom: 2rem;
48
- max-width: 50%;
49
- }
50
-
51
- .summary {
52
- background-color: #f4f4f4;
53
- border: 1px solid #333;
54
- display: inline-block;
55
- flex: 1 1 10%;
56
- margin: 0 0.25rem;
57
- padding: 0.25rem 0.5rem;
58
- }
59
-
60
- .summary:first-of-type {
61
- margin-left: 0;
62
- }
63
-
64
- .summary:last-of-type {
65
- margin-right: 0;
66
- }
67
-
68
- .passed {
69
- background-color: #dff2bf;
70
- border: 1px solid #44760f;
71
- color: #44760f;
72
- }