stylelint-config-sweet 1.0.2 → 2.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/package.json CHANGED
@@ -1,39 +1,41 @@
1
1
  {
2
2
  "name": "stylelint-config-sweet",
3
- "version": "1.0.2",
3
+ "version": "2.0.0",
4
4
  "description": "Stylelint extendable config for the most sweet-ass CSS and Sass. 🤙🏼",
5
- "main": "stylelint.config.cjs",
6
- "repository": "https://github.com/robinloeffel/stylelint-config-sweet.git",
7
- "homepage": "https://github.com/robinloeffel/stylelint-config-sweet",
8
- "bugs": "https://github.com/robinloeffel/stylelint-config-sweet/issues",
9
- "author": "Robin Löffel (https://robinloeffel.ch) <hi@robinloeffel.ch>",
10
- "license": "MIT",
11
5
  "keywords": [
12
6
  "stylelint",
13
7
  "stylelint-config"
14
8
  ],
9
+ "homepage": "https://github.com/robinloeffel/stylelint-config-sweet",
10
+ "bugs": "https://github.com/robinloeffel/stylelint-config-sweet/issues",
11
+ "repository": "https://github.com/robinloeffel/stylelint-config-sweet.git",
12
+ "license": "MIT",
13
+ "author": "Robin Löffel (https://robinloeffel.ch) <hi@robinloeffel.ch>",
14
+ "type": "module",
15
+ "main": "stylelint.config.js",
15
16
  "files": [
16
- "stylelint.config.cjs"
17
+ "stylelint.config.js"
17
18
  ],
19
+ "scripts": {
20
+ "start": "vitest"
21
+ },
18
22
  "dependencies": {
19
- "@isnotdefined/stylelint-plugin": "^4.0.0",
23
+ "@isnotdefined/stylelint-plugin": "^5.0.0",
20
24
  "@stylistic/stylelint-config": "^1.0.1",
21
25
  "stylelint-config-html": "^1.1.0",
22
- "stylelint-config-recess-order": "^4.6.0",
23
- "stylelint-config-standard-scss": "^13.0.0"
26
+ "stylelint-config-recess-order": "^5.0.1",
27
+ "stylelint-config-standard-scss": "^13.1.0"
24
28
  },
25
29
  "devDependencies": {
26
- "eslint": "^8.56.0",
27
- "eslint-config-sweet": "^18.0.0",
30
+ "eslint": "^8.57.0",
31
+ "eslint-config-sweet": "^21.0.0",
28
32
  "eslint-define-config": "^2.1.0",
29
- "stylelint": "^16.2.1",
30
- "typescript": "^5.3.3",
31
- "vitest": "^1.2.2"
33
+ "robins-tsconfig": "^1.0.0",
34
+ "stylelint": "^16.6.1",
35
+ "typescript": "^5.5.3",
36
+ "vitest": "^1.6.0"
32
37
  },
33
38
  "peerDependencies": {
34
39
  "stylelint": "^16"
35
- },
36
- "scripts": {
37
- "start": "vitest"
38
40
  }
39
41
  }
package/readme.md CHANGED
@@ -19,7 +19,7 @@ As soon as you've installed the package, you can extend from it. To do that, fin
19
19
 
20
20
  ```js
21
21
  module.exports = {
22
- extends: "sweet"
22
+ extends: "stylelint-config-sweet"
23
23
  };
24
24
  ```
25
25
 
@@ -1,5 +1,5 @@
1
1
  /** @type {import("stylelint").Config} */
2
- module.exports = {
2
+ export default {
3
3
  extends: [
4
4
  "stylelint-config-standard-scss",
5
5
  "stylelint-config-recess-order",
@@ -12,40 +12,28 @@ module.exports = {
12
12
  rules: {
13
13
  "color-named": "never",
14
14
  "property-no-unknown": null,
15
- "declaration-property-value-disallowed-list": [
16
- {
17
- transition: "/all/"
18
- },
19
- {
20
- message: "Avoid using \"all\" in transition declarations. Be more specific."
21
- }
22
- ],
23
- "selector-disallowed-list": [
24
- "/:focus(?!-.*)/",
25
- {
26
- splitList: true,
27
- message: "Avoid the \":focus\" pseudo-class. Use \":focus-visible\" instead."
28
- }
29
- ],
15
+ "declaration-property-value-disallowed-list": [{
16
+ transition: "/all/"
17
+ }, {
18
+ message: "Avoid using \"all\" in transition declarations. Be more specific."
19
+ }],
20
+ "selector-disallowed-list": [ "/:focus(?!-.*)/", {
21
+ splitList: true,
22
+ message: "Avoid the \":focus\" pseudo-class. Use \":focus-visible\" instead."
23
+ }],
30
24
  "@isnotdefined/no-obsolete": true,
31
- "@stylistic/block-closing-brace-newline-after": [
32
- "always",
33
- {
34
- ignoreAtRules: [ "if", "else" ]
35
- }
36
- ],
25
+ "@stylistic/block-closing-brace-newline-after": [ "always", {
26
+ ignoreAtRules: [ "if", "else" ]
27
+ }],
37
28
  "@stylistic/indentation": null,
38
29
  "scss/at-mixin-argumentless-call-parentheses": "never",
39
30
  "scss/at-use-no-unnamespaced": true,
40
31
  "scss/at-use-no-redundant-alias": true,
41
32
  "scss/block-no-redundant-nesting": true,
42
33
  "scss/dimension-no-non-numeric-values": true,
43
- "scss/dollar-variable-first-in-block": [
44
- true,
45
- {
46
- ignore: [ "comments", "imports" ]
47
- }
48
- ],
34
+ "scss/dollar-variable-first-in-block": [ true, {
35
+ ignore: [ "comments", "imports" ]
36
+ }],
49
37
  "scss/dollar-variable-no-namespaced-assignment": true,
50
38
  "scss/function-calculation-no-interpolation": true,
51
39
  "scss/function-color-relative": true,
@@ -54,5 +42,8 @@ module.exports = {
54
42
  "scss/property-no-unknown": true,
55
43
  "scss/selector-no-redundant-nesting-selector": true,
56
44
  "scss/selector-no-union-class-name": true
57
- }
45
+ },
46
+ reportDescriptionlessDisables: true,
47
+ reportInvalidScopeDisables: true,
48
+ reportNeedlessDisables: true
58
49
  };