@csstools/stylelint-no-at-nest-rule 1.0.0 → 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/LICENSE.md ADDED
@@ -0,0 +1,18 @@
1
+ MIT No Attribution (MIT-0)
2
+
3
+ Copyright 2023 Romain Menke, Antonio Laguna <antonio@laguna.es>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the “Software”), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so.
11
+
12
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
package/README.md CHANGED
@@ -16,7 +16,7 @@ Prevent usage of `@nest` in CSS.
16
16
  }
17
17
  ```
18
18
 
19
- The CSS Nesting specification has changed and `@nest` is not longer required and has been removed from the specification.
19
+ The CSS Nesting specification has changed and `@nest` is no longer required and has been removed from the specification.
20
20
  Since it will never be valid CSS in browsers it is important to migrate away from it.
21
21
 
22
22
  **Valid CSS :**
@@ -1,5 +1,5 @@
1
- const postcss = require('postcss');
2
- const stylelint = require('stylelint');
1
+ import postcss from 'postcss';
2
+ import stylelint from 'stylelint';
3
3
 
4
4
  const ruleName = '@csstools/stylelint-no-at-nest-rule';
5
5
  const messages = stylelint.utils.ruleMessages(ruleName, {
@@ -51,4 +51,4 @@ ruleFunction.ruleName = ruleName;
51
51
  ruleFunction.messages = messages;
52
52
  ruleFunction.meta = meta;
53
53
 
54
- module.exports = stylelint.createPlugin(ruleName, ruleFunction);
54
+ export default stylelint.createPlugin(ruleName, ruleFunction);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@csstools/stylelint-no-at-nest-rule",
3
3
  "description": "Do not allow @nest rules",
4
- "version": "1.0.0",
4
+ "version": "2.0.0",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Antonio Laguna",
@@ -27,25 +27,16 @@
27
27
  "engines": {
28
28
  "node": "^14 || ^16 || >=18"
29
29
  },
30
- "main": "index.js",
30
+ "type": "module",
31
+ "main": "index.mjs",
31
32
  "files": [
32
- "LICENSE",
33
+ "LICENSE.md",
33
34
  "README.md",
34
- "index.js"
35
+ "index.mjs"
35
36
  ],
36
37
  "peerDependencies": {
37
38
  "postcss": "^8.4",
38
- "stylelint": "^15.0.0"
39
- },
40
- "devDependencies": {
41
- "jest": "^29.4.3",
42
- "jest-preset-stylelint": "^6.1.0",
43
- "postcss": "^8.4",
44
- "stylelint": "^15.6.0"
45
- },
46
- "scripts": {
47
- "lint": "node ../../.github/bin/format-package-json.mjs",
48
- "test": "jest"
39
+ "stylelint": "^16.0.2"
49
40
  },
50
41
  "homepage": "https://github.com/csstools/postcss-plugins/blob/main/plugins-stylelint/no-at-nest-rule#readme",
51
42
  "repository": {
@@ -57,8 +48,5 @@
57
48
  "keywords": [
58
49
  "stylelint",
59
50
  "stylelint-plugin"
60
- ],
61
- "jest": {
62
- "preset": "jest-preset-stylelint"
63
- }
51
+ ]
64
52
  }
package/LICENSE DELETED
@@ -1,7 +0,0 @@
1
- MIT-0 License
2
-
3
- Copyright 2023 Romain Menke, Antonio Laguna <antonio@laguna.es>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.
6
-
7
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.