|
| 1 | +/** |
| 2 | + * ================================================== |
| 3 | + * KNOWN/DIAGNOSED ISSUES |
| 4 | + * ================================================== |
| 5 | + */ |
| 6 | + |
| 7 | +// const fixturePatternsToTest = [ |
| 8 | + /** |
| 9 | + * "ExperimentalSpreadProperty" in espree/typescript-eslint-parser vs "SpreadElement" in Babylon |
| 10 | + * comes up a lot in this section |
| 11 | + */ |
| 12 | + // "ecma-features/experimentalObjectRestSpread/**/*.src.js", // mixture of babylon parse errors and AST diffs |
| 13 | + |
| 14 | + /* ================================================== */ |
| 15 | + |
| 16 | + /** |
| 17 | + * Template strings seem to also be affected by the difference in opinion between different parsers in: |
| 18 | + * https://github.com/babel/babylon/issues/673 |
| 19 | + */ |
| 20 | + // "comments/no-comment-template.src.js", // Purely AST diffs |
| 21 | + // "comments/template-string-block.src.js", // Purely AST diffs |
| 22 | + // "ecma-features/templateStrings/**/*.src.js", // mixture of babylon parse errors and AST diffs |
| 23 | + |
| 24 | + /* ================================================== */ |
| 25 | + |
| 26 | + /** |
| 27 | + * TypeScript, espree and acorn parse this fine - esprima, flow and babylon do not... |
| 28 | + */ |
| 29 | + // "ecma-features/forOf/for-of-with-function-initializer.src.js", // babylon parse errors |
| 30 | + |
| 31 | + /* ================================================== */ |
| 32 | + |
| 33 | + /** |
| 34 | + * TypeScript, flow and babylon parse this fine - esprima, espree and acorn do not... |
| 35 | + */ |
| 36 | + // "ecma-features/modules/invalid-export-default.src.js",, // typescript-eslint-parser parse errors |
| 37 | + |
| 38 | + /* ================================================== */ |
| 39 | + |
| 40 | + /** |
| 41 | + * Babylon parse error because of more strict spec enforcement than other parsers. |
| 42 | + */ |
| 43 | + |
| 44 | + /** |
| 45 | + * super() is being used outside of constructor. Other parsers (e.g. espree, acorn) do not error on this. |
| 46 | + */ |
| 47 | + // "ecma-features/classes/class-one-method-super.src.js", // babylon parse errors |
| 48 | + |
| 49 | + /* ================================================== */ |
| 50 | + |
| 51 | + /** |
| 52 | + * Expected babylon parse errors - all of these files below produce parse errors in espree |
| 53 | + * as well, but the TypeScript compiler is so forgiving during parsing that typescript-eslint-parser |
| 54 | + * does not actually error on them and will produce an AST. |
| 55 | + */ |
| 56 | + // "ecma-features/arrowFunctions/error-dup-params.src.js", // babylon parse errors |
| 57 | + // "ecma-features/arrowFunctions/error-dup-params.src.js", // babylon parse errors |
| 58 | + // "ecma-features/arrowFunctions/error-strict-dup-params.src.js", // babylon parse errors |
| 59 | + // "ecma-features/arrowFunctions/error-strict-octal.src.js", // babylon parse errors |
| 60 | + // "ecma-features/arrowFunctions/error-two-lines.src.js", // babylon parse errors |
| 61 | + // "ecma-features/classes/invalid-class-declaration.src.js", // babylon parse errors |
| 62 | + // "ecma-features/classes/invalid-class-setter-declaration.src.js", // babylon parse errors |
| 63 | + // "ecma-features/destructuring/invalid-defaults-object-assign.src.js", // babylon parse errors |
| 64 | + // "ecma-features/destructuring-and-spread/error-complex-destructured-spread-first.src.js", // babylon parse errors |
| 65 | + // "ecma-features/objectLiteralDuplicateProperties/error-proto-property.src.js", // babylon parse errors |
| 66 | + // "ecma-features/objectLiteralDuplicateProperties/error-proto-string-property.src.js", // babylon parse errors |
| 67 | + // "ecma-features/modules/invalid-export-named-default.src.js", // babylon parse errors |
| 68 | + // "ecma-features/modules/invalid-import-default-module-specifier.src.js", // babylon parse errors |
| 69 | + // "ecma-features/modules/invalid-import-module-specifier.src.js", // babylon parse errors |
| 70 | + // "ecma-features/newTarget/invalid-new-target.src.js", // babylon parse errors |
| 71 | + // "ecma-features/newTarget/invalid-unknown-property.src.js", // babylon parse errors |
| 72 | + // "ecma-features/restParams/error-no-default.src.js", // babylon parse errors |
| 73 | + // "ecma-features/restParams/error-not-last.src.js", // babylon parse errors |
| 74 | + /** |
| 75 | + * Deleting local variable in strict mode |
| 76 | + */ |
| 77 | + // { |
| 78 | + // pattern: "ecma-features/modules/error-delete.src.js", |
| 79 | + // config: { babylonParserOptions: { sourceType: "module" } } |
| 80 | + // }, |
| 81 | + /** |
| 82 | + * 'with' in strict mode |
| 83 | + */ |
| 84 | + // { |
| 85 | + // pattern: "ecma-features/modules/error-strict.src.js", |
| 86 | + // config: { babylonParserOptions: { sourceType: "module" } } |
| 87 | + // }, |
| 88 | +// ]; |
0 commit comments