@readme/stylelint-config 8.0.3 → 8.1.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/README.md CHANGED
@@ -57,4 +57,3 @@ We've adopted the following list of shared configs that remain actively maintain
57
57
  - [stylelint-config-standard-scss](https://github.com/stylelint-scss/stylelint-config-standard-scss) - The standard shareable SCSS config for Stylelint.
58
58
  - [stylelint-config-sass-guidelines](https://github.com/bjankord/stylelint-config-sass-guidelines) - A stylelint config inspired by [sass-guidelin.es](https://sass-guidelin.es/).
59
59
  - [stylelint-config-css-modules](https://github.com/pascalduez/stylelint-config-css-modules) - CSS modules shareable config for stylelint. Tweaks stylelint rules to accept [css modules](https://github.com/css-modules/css-modules) specific syntax.
60
- - [stylelint-prettier/recommended](https://github.com/prettier/stylelint-prettier) - Runs Prettier as a Stylelint rule and reports differences as individual Stylelint issues.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readme/stylelint-config",
3
- "version": "8.0.3",
3
+ "version": "8.1.0",
4
4
  "description": "ReadMe coding standards for styles",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -27,8 +27,7 @@
27
27
  "stylelint-config-sass-guidelines": "^13.0.0",
28
28
  "stylelint-config-standard": "^39.0.1",
29
29
  "stylelint-config-standard-scss": "^16.0.0",
30
- "stylelint-order": "^8.1.1",
31
- "stylelint-prettier": "^5.0.3"
30
+ "stylelint-order": "^8.1.1"
32
31
  },
33
32
  "peerDependencies": {
34
33
  "postcss": "^8.4.12"
@@ -39,5 +38,5 @@
39
38
  "vitest": "^4.1.2"
40
39
  },
41
40
  "prettier": "@readme/standards/prettier",
42
- "gitHead": "2d4635985e6d6095cbd6c5547292f5439a74f3f8"
41
+ "gitHead": "33b64122f98088f6631948b2c31ccdcb35ecdea7"
43
42
  }
package/src/index.js CHANGED
@@ -11,9 +11,6 @@ module.exports = {
11
11
 
12
12
  // Support CSS modules syntax
13
13
  'stylelint-config-css-modules',
14
-
15
- // Enable prettier formatting for SCSS/CSS
16
- 'stylelint-prettier/recommended',
17
14
  ],
18
15
  plugins: [
19
16
  // Enable ordering rules for content within declaration blocks.
@@ -1,10 +1,5 @@
1
1
  // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
2
 
3
- exports[`stylelint-config > prettier rules > matches snapshot with all formatting errors fixed 1`] = `
4
- "$prettier: 'should be single quotes';
5
- "
6
- `;
7
-
8
3
  exports[`stylelint-config > with an invalid file and auto-fix enabled > matches the auto-fixed snapshot 1`] = `
9
4
  "@import 'x.css';
10
5
  @import 'y.css';
@@ -84,33 +84,4 @@ describe('stylelint-config', () => {
84
84
  expect(data.code).toContain('&:not(.one):not(.two):not(.three)');
85
85
  });
86
86
  });
87
-
88
- describe('prettier rules', () => {
89
- it('matches snapshot with all formatting errors fixed', async () => {
90
- data = await stylelint.lint({
91
- code: `
92
- $prettier: "should be single quotes";
93
- `,
94
- config,
95
- fix: true,
96
- });
97
- ({ warnings } = data.results[0]);
98
-
99
- expect(data.code).toMatchSnapshot();
100
- });
101
-
102
- it('flags double quotes as an error', async () => {
103
- data = await stylelint.lint({
104
- code: `
105
- $prettier: "should be single quotes";
106
- `,
107
- config,
108
- });
109
- ({ warnings } = data.results[0]);
110
-
111
- expect(warnings).toHaveLength(2);
112
- expect(warnings[0].rule).toBe('@stylistic/string-quotes');
113
- expect(warnings[1].rule).toBe('prettier/prettier');
114
- });
115
- });
116
87
  });