@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/dist/index.js
CHANGED
|
@@ -480,7 +480,7 @@ class SiblingCombinator extends SelectorCombinator {
|
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
/**
|
|
483
|
-
* A Rule object describes a
|
|
483
|
+
* A Rule object describes a Perseus lint rule. See the comment at the top of
|
|
484
484
|
* this file for detailed description.
|
|
485
485
|
*/
|
|
486
486
|
class Rule {
|
|
@@ -1183,7 +1183,7 @@ class TreeTransformer {
|
|
|
1183
1183
|
// information about the structure of the tree.
|
|
1184
1184
|
|
|
1185
1185
|
|
|
1186
|
-
_traverse( // eslint-disable-next-line
|
|
1186
|
+
_traverse( // eslint-disable-next-line ft-flow/no-mutable-array
|
|
1187
1187
|
n, state, f) {
|
|
1188
1188
|
let content = "";
|
|
1189
1189
|
|
|
@@ -1310,7 +1310,7 @@ class TraversalState {
|
|
|
1310
1310
|
// elements, depending on whether we just recursed on an array or on a
|
|
1311
1311
|
// node. This is hard for Flow to deal with, so you'll see a number of
|
|
1312
1312
|
// Flow casts through the any type when working with these two properties.
|
|
1313
|
-
// eslint-disable-next-line
|
|
1313
|
+
// eslint-disable-next-line ft-flow/no-mutable-array
|
|
1314
1314
|
// The constructor just stores the root node and creates empty stacks.
|
|
1315
1315
|
constructor(root) {
|
|
1316
1316
|
_defineProperty(this, "root", void 0);
|
|
@@ -1605,7 +1605,7 @@ class TraversalState {
|
|
|
1605
1605
|
*/
|
|
1606
1606
|
|
|
1607
1607
|
class Stack {
|
|
1608
|
-
// eslint-disable-next-line
|
|
1608
|
+
// eslint-disable-next-line ft-flow/no-mutable-array
|
|
1609
1609
|
constructor(array) {
|
|
1610
1610
|
_defineProperty(this, "stack", void 0);
|
|
1611
1611
|
|
|
@@ -2872,7 +2872,7 @@ const linterContextDefault = {
|
|
|
2872
2872
|
};
|
|
2873
2873
|
|
|
2874
2874
|
const allLintRules = AllRules.filter(r => r.severity < Rule.Severity.BULK_WARNING);
|
|
2875
|
-
// Run the
|
|
2875
|
+
// Run the Perseus linter over the specified markdown parse tree,
|
|
2876
2876
|
// with the specified context object, and
|
|
2877
2877
|
// return a (possibly empty) array of lint warning objects. If the
|
|
2878
2878
|
// highlight argument is true, this function also modifies the parse
|