@khanacademy/perseus-linter 0.1.0 → 0.2.1
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/CHANGELOG.md +15 -0
- package/dist/es/index.js +5 -5
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/matcher_test.js +1 -1
- package/src/__tests__/rule_test.js +1 -1
- package/src/__tests__/selector-parser_test.js +1 -1
- package/src/__tests__/tree-transformer_test.js +1 -1
- package/src/index.js +1 -1
- package/src/proptypes.js +2 -2
- package/src/rule.js +3 -3
- package/src/tree-transformer.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @khanacademy/perseus-linter
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 98d283ff: Fix storybook
|
|
8
|
+
- Updated dependencies [98d283ff]
|
|
9
|
+
- @khanacademy/perseus-error@0.1.1
|
|
10
|
+
|
|
11
|
+
## 0.2.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 2578bd16: Rename NotGorgon to TranslationLinter
|
|
16
|
+
- 2578bd16: Rename Gorgon to PerseusLinter
|
|
17
|
+
|
|
3
18
|
## 0.1.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/dist/es/index.js
CHANGED
|
@@ -502,7 +502,7 @@ class SiblingCombinator extends SelectorCombinator {
|
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
/**
|
|
505
|
-
* A Rule object describes a
|
|
505
|
+
* A Rule object describes a Perseus lint rule. See the comment at the top of
|
|
506
506
|
* this file for detailed description.
|
|
507
507
|
*/
|
|
508
508
|
class Rule {
|
|
@@ -1205,7 +1205,7 @@ class TreeTransformer {
|
|
|
1205
1205
|
// information about the structure of the tree.
|
|
1206
1206
|
|
|
1207
1207
|
|
|
1208
|
-
_traverse( // eslint-disable-next-line
|
|
1208
|
+
_traverse( // eslint-disable-next-line ft-flow/no-mutable-array
|
|
1209
1209
|
n, state, f) {
|
|
1210
1210
|
var content = "";
|
|
1211
1211
|
|
|
@@ -1332,7 +1332,7 @@ class TraversalState {
|
|
|
1332
1332
|
// elements, depending on whether we just recursed on an array or on a
|
|
1333
1333
|
// node. This is hard for Flow to deal with, so you'll see a number of
|
|
1334
1334
|
// Flow casts through the any type when working with these two properties.
|
|
1335
|
-
// eslint-disable-next-line
|
|
1335
|
+
// eslint-disable-next-line ft-flow/no-mutable-array
|
|
1336
1336
|
// The constructor just stores the root node and creates empty stacks.
|
|
1337
1337
|
constructor(root) {
|
|
1338
1338
|
_defineProperty(this, "root", void 0);
|
|
@@ -1627,7 +1627,7 @@ class TraversalState {
|
|
|
1627
1627
|
*/
|
|
1628
1628
|
|
|
1629
1629
|
class Stack {
|
|
1630
|
-
// eslint-disable-next-line
|
|
1630
|
+
// eslint-disable-next-line ft-flow/no-mutable-array
|
|
1631
1631
|
constructor(array) {
|
|
1632
1632
|
_defineProperty(this, "stack", void 0);
|
|
1633
1633
|
|
|
@@ -2894,7 +2894,7 @@ var linterContextDefault = {
|
|
|
2894
2894
|
};
|
|
2895
2895
|
|
|
2896
2896
|
var allLintRules = AllRules.filter(r => r.severity < Rule.Severity.BULK_WARNING);
|
|
2897
|
-
// Run the
|
|
2897
|
+
// Run the Perseus linter over the specified markdown parse tree,
|
|
2898
2898
|
// with the specified context object, and
|
|
2899
2899
|
// return a (possibly empty) array of lint warning objects. If the
|
|
2900
2900
|
// highlight argument is true, this function also modifies the parse
|