@bhsd/stylelint-browserify 16.25.0 → 16.26.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/README.md +4 -3
- package/bundle/stylelint-es8.min.js +21 -21
- package/bundle/stylelint.min.js +20 -20
- package/package.json +26 -19
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](LICENSE)
|
|
5
5
|
[](https://app.codacy.com/gh/bhsd-harry/stylelint-browserify/dashboard)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## API
|
|
8
8
|
|
|
9
9
|
The `stylelint` global variable has a `lint()` method.
|
|
10
10
|
|
|
@@ -26,6 +26,7 @@ A string to lint.
|
|
|
26
26
|
|
|
27
27
|
`stylelint.lint()` returns a `Promise` that resolves with an object containing the following properties:
|
|
28
28
|
|
|
29
|
+
<!-- markdownlint-disable-next-line no-duplicate-heading -->
|
|
29
30
|
### `code`
|
|
30
31
|
|
|
31
32
|
A string that contains the autofixed code, if the `fix` option is set to `true`. Otherwise, it is `undefined`.
|
|
@@ -49,7 +50,7 @@ When the [`computeEditInfo` option](https://stylelint.io/user-guide/options#comp
|
|
|
49
50
|
- `range` (`[number, number]`) - the pair of 0-based indices in source code text to remove
|
|
50
51
|
- `text` (`string`) - the text to add
|
|
51
52
|
|
|
52
|
-
For example, to change `a { opacity: 10%; }` to `a { opacity: 0.1; }`, the
|
|
53
|
+
For example, to change `a { opacity: 10%; }` to `a { opacity: 0.1; }`, the edit info might look like:
|
|
53
54
|
|
|
54
55
|
```jsonc
|
|
55
56
|
{
|
|
@@ -61,7 +62,7 @@ For example, to change `a { opacity: 10%; }` to `a { opacity: 0.1; }`, the `Edit
|
|
|
61
62
|
}
|
|
62
63
|
```
|
|
63
64
|
|
|
64
|
-
Only a single
|
|
65
|
+
Only a single edit info will be recorded for a specific region in source code. If multiple report ranges overlap, only the first will contain edit info.
|
|
65
66
|
|
|
66
67
|
## Syntax errors
|
|
67
68
|
|