@stylelint-types/stylelint-scss 6.0.0 → 6.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 stylelint-types
3
+ Copyright (c) 2023 @stylelint-types/stylelint-scss
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @stylelint-types/stylelint-scss
2
2
 
3
+ TypeScript definitions for [stylelint-define-config](https://github.com/stylelint-types/stylelint-define-config).
4
+
3
5
  ## Install
4
6
 
5
7
  ```sh
@@ -24,3 +26,14 @@ module.exports = defineConfig({
24
26
  }
25
27
  })
26
28
  ```
29
+
30
+ ![](./static/demo.png)
31
+
32
+ ## Credits
33
+
34
+ - [@stylelint-types](https://github.com/stylelint-types)
35
+ - [@pengzhanbo](https://github.com/pengzhanbo)
36
+
37
+ ## LICENSE
38
+
39
+ [MIT](./LICENSE)
@@ -0,0 +1,3 @@
1
+ import type { RuleConfig } from 'stylelint-define-config'
2
+
3
+ export type NoUnusedPrivateMembersOptions = RuleConfig<true>
package/lib/types.d.ts CHANGED
@@ -63,6 +63,7 @@ import type { PercentPlaceholderPatternOptions } from './rules/percent-placehold
63
63
  import type { SelectorNoRedundantNestingSelectorOptions } from './rules/selector-no-redundant-nesting-selector'
64
64
  import type { SelectorNoUnionClassNameOptions } from './rules/selector-no-union-class-name'
65
65
  import type { SelectorNestCombinatorsOptions } from './rules/selector-nest-combinators'
66
+ import type { NoUnusedPrivateMembersOptions } from './rules/no-unused-private-members'
66
67
 
67
68
  export interface Extends {
68
69
  'stylelint-config-standard-scss': void
@@ -617,6 +618,22 @@ interface RuleOptions {
617
618
  */
618
619
  'scss/no-global-function-names': NoGlobalFunctionNamesOptions
619
620
 
621
+ /**
622
+ * Disallow unused private members.
623
+ *
624
+ * [Private members](https://sass-lang.com/documentation/at-rules/use/#private-members),
625
+ * such as functions, mixins, variables, and selector placeholders are defined with names that
626
+ * start with either `-` or `_` (in the case of variables the name follows `$`, and the same
627
+ * applies to the `%` prefix for selector placeholders). These private members remain confined
628
+ * within the module, therefore, if they go unused within the module, they are considered unused.
629
+ *
630
+ * This rule ignores files using `@import` since all files loaded through it are consolidated
631
+ * within the same module. This setup makes it tricky to ensure all usages of private members.
632
+ *
633
+ * @see [no-unused-private-members](https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/no-unused-private-members)
634
+ */
635
+ 'scss/no-unused-private-members': NoUnusedPrivateMembersOptions
636
+
620
637
  /**
621
638
  * Disallow linebreaks after Sass operators.
622
639
  *
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@stylelint-types/stylelint-scss",
3
3
  "type": "module",
4
- "version": "6.0.0",
5
- "packageManager": "pnpm@8.11.0",
6
- "description": "Provide a defineConfig function for stylelint.config.js files",
4
+ "version": "6.1.0",
5
+ "packageManager": "pnpm@8.15.3",
6
+ "description": "TypeScript definitions for stylelint-define-config",
7
7
  "author": "pengzhanbo <volodymyr@foxmail.com> (https://github.com/pengzhanbo)",
8
8
  "license": "MIT",
9
9
  "homepage": "https://github.com/stylelint-types/stylelint-scss#readme",
@@ -52,13 +52,13 @@
52
52
  }
53
53
  },
54
54
  "devDependencies": {
55
- "@pengzhanbo/eslint-config": "^1.3.1",
56
- "bumpp": "^9.2.1",
55
+ "@pengzhanbo/eslint-config": "^1.5.4",
56
+ "bumpp": "^9.3.0",
57
57
  "conventional-changelog-cli": "^4.1.0",
58
- "eslint": "^8.55.0",
59
- "stylelint": "^16.0.2",
60
- "stylelint-define-config": "^1.0.0",
61
- "stylelint-scss": "^6.0.0",
58
+ "eslint": "^8.56.0",
59
+ "stylelint": "^16.2.1",
60
+ "stylelint-define-config": "^1.1.0",
61
+ "stylelint-scss": "^6.1.0",
62
62
  "typescript": "^5.3.3"
63
63
  },
64
64
  "scripts": {