@mrhenry/stylelint-mrhenry-invalid-of-type-selectors 2.0.2 → 3.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import stylelint from 'stylelint';
|
|
2
|
+
import selectorParser from 'postcss-selector-parser';
|
|
3
3
|
|
|
4
4
|
const ruleName = "@mrhenry/stylelint-mrhenry-invalid-of-type-selectors";
|
|
5
5
|
const messages = stylelint.utils.ruleMessages(ruleName, {
|
|
@@ -77,4 +77,4 @@ ruleFunction.ruleName = ruleName;
|
|
|
77
77
|
ruleFunction.messages = messages;
|
|
78
78
|
ruleFunction.meta = meta;
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
export default stylelint.createPlugin(ruleName, ruleFunction);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrhenry/stylelint-mrhenry-invalid-of-type-selectors",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Warn when :first-of-type is used with class selectors",
|
|
5
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.mjs",
|
|
6
7
|
"scripts": {
|
|
7
|
-
"test": "
|
|
8
|
-
"test:jest": "c8 --100 jest"
|
|
8
|
+
"test": "c8 --100 node --test"
|
|
9
9
|
},
|
|
10
10
|
"author": "Mr. Henry",
|
|
11
11
|
"license": "MIT",
|
|
@@ -16,13 +16,10 @@
|
|
|
16
16
|
"directory": "packages/invalid-of-type-selectors"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
|
-
"
|
|
19
|
+
"index.mjs",
|
|
20
20
|
"LICENSE",
|
|
21
21
|
"README.md"
|
|
22
22
|
],
|
|
23
|
-
"jest": {
|
|
24
|
-
"preset": "jest-preset-stylelint"
|
|
25
|
-
},
|
|
26
23
|
"keywords": [
|
|
27
24
|
"stylelint",
|
|
28
25
|
"stylelint-plugin"
|
|
@@ -31,9 +28,9 @@
|
|
|
31
28
|
"postcss-selector-parser": "^6.0.11"
|
|
32
29
|
},
|
|
33
30
|
"peerDependencies": {
|
|
34
|
-
"stylelint": "^
|
|
31
|
+
"stylelint": "^16.0.0"
|
|
35
32
|
},
|
|
36
33
|
"devDependencies": {
|
|
37
|
-
"stylelint": "^
|
|
34
|
+
"stylelint": "^16.0.2"
|
|
38
35
|
}
|
|
39
36
|
}
|