@readme/stylelint-config 4.0.1 → 5.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/.eslintrc.cjs CHANGED
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- extends: ['@readme/eslint-config', '@readme/eslint-config/testing'],
2
+ extends: ['@readme/eslint-config', '@readme/eslint-config/testing/vitest'],
3
3
  };
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.0.0](https://github.com/readmeio/standards/compare/@readme/stylelint-config@4.0.1...@readme/stylelint-config@5.0.0) (2023-08-10)
7
+
8
+
9
+ ### Features
10
+
11
+ * **eslint:** restructuring + vitest support + docs and mocha deprecation ([#723](https://github.com/readmeio/standards/issues/723)) ([dd69897](https://github.com/readmeio/standards/commit/dd6989752629417270f7cb6212dd359a6fa3ab2a))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [4.0.1](https://github.com/readmeio/standards/compare/@readme/stylelint-config@4.0.0...@readme/stylelint-config@4.0.1) (2023-08-04)
7
18
 
8
19
  **Note:** Version bump only for package @readme/stylelint-config
@@ -1,11 +1,11 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
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`] = `
3
+ exports[`stylelint-config > prettier rules > matches snapshot with all formatting errors fixed 1`] = `
4
4
  "$prettier: 'should be single quotes';
5
5
  "
6
6
  `;
7
7
 
8
- exports[`stylelint-config with an invalid file and auto-fix enabled matches the auto-fixed snapshot 1`] = `
8
+ exports[`stylelint-config > with an invalid file and auto-fix enabled > matches the auto-fixed snapshot 1`] = `
9
9
  "@import 'x.css';
10
10
  @import 'y.css';
11
11
 
@@ -110,7 +110,7 @@ $twoCamelCase: 'two';
110
110
  }
111
111
  }
112
112
 
113
- // Prefer "simple" selector-not-notation
113
+ // Prefer \\"simple\\" selector-not-notation
114
114
  .selector-not-notation {
115
115
  &:not(.one):not(.two):not(.three) {
116
116
  display: block;
@@ -1,9 +1,10 @@
1
- const fs = require('fs');
2
- const path = require('path');
1
+ import fs from 'fs';
2
+ import path from 'path';
3
3
 
4
- const stylelint = require('stylelint');
4
+ import stylelint from 'stylelint';
5
+ import { describe, beforeEach, it, expect } from 'vitest';
5
6
 
6
- const config = require('..');
7
+ import config from '..';
7
8
 
8
9
  const invalidScss = fs.readFileSync(path.join(__dirname, './invalid.scss'), 'utf-8');
9
10
  const validScss = fs.readFileSync(path.join(__dirname, './valid.scss'), 'utf-8');
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@readme/stylelint-config",
3
- "version": "4.0.1",
3
+ "version": "5.0.0",
4
4
  "description": "ReadMe coding standards for styles",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
7
  "lint": "eslint .",
8
- "test": "NODE_OPTIONS=--experimental-vm-modules jest"
8
+ "test": "vitest run"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -30,9 +30,9 @@
30
30
  "postcss": "^8.4.12"
31
31
  },
32
32
  "devDependencies": {
33
- "@readme/eslint-config": "^11.0.1",
34
- "jest": "^29.4.3"
33
+ "@readme/eslint-config": "^12.0.0",
34
+ "vitest": "^0.34.1"
35
35
  },
36
36
  "prettier": "@readme/eslint-config/prettier",
37
- "gitHead": "6d0b9f2869f891aa681d2237c3c9c416146e2ae1"
37
+ "gitHead": "20c0e439d483e9525665f45f25c21c9f32dae434"
38
38
  }