Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Start fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Nov 7, 2018
1 parent 8203ff6 commit 969f3d9
Show file tree
Hide file tree
Showing 4 changed files with 809 additions and 34 deletions.
21 changes: 21 additions & 0 deletions babel.config.js
@@ -0,0 +1,21 @@
"use strict";

module.exports = {
presets: [
["@babel/preset-env", { forceAllTransforms: true }],
"@babel/preset-react",
"@babel/preset-flow",
],
plugins: [
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-syntax-import-meta",
"@babel/plugin-syntax-export-default-from",
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-syntax-numeric-separator",
"@babel/plugin-syntax-export-namespace-from",
["@babel/plugin-proposal-decorators", { decoratorsBeforeExport: false }],
["@babel/plugin-proposal-pipeline-operator", { proposal: "minimal" }],
],
};
29 changes: 1 addition & 28 deletions lib/parse.js
Expand Up @@ -13,34 +13,7 @@ module.exports = function(code, options) {
allowSuperOutsideMethod: true,
ranges: true,
tokens: true,
plugins: [
["flow", { all: true }],
"jsx",
"estree",
"asyncFunctions",
"asyncGenerators",
"classConstructorCall",
"classProperties",
"doExpressions",
"exponentiationOperator",
"exportDefaultFrom",
"exportNamespaceFrom",
"functionBind",
"functionSent",
"objectRestSpread",
"trailingFunctionCommas",
"dynamicImport",
"numericSeparator",
"optionalChaining",
"importMeta",
"classPrivateProperties",
"bigInt",
"optionalCatchBinding",
"throwExpressions",
["pipelineOperator", { proposal: "minimal" }],
"nullishCoalescingOperator",
"logicalAssignment",
],
plugins: ["estree"],
},
};

Expand Down
17 changes: 15 additions & 2 deletions package.json
Expand Up @@ -34,12 +34,25 @@
"eslint": ">= 4.12.1"
},
"dependencies": {
"@babel/core": "^7.1.5",
"@babel/parser": "^7.1.5",
"eslint-scope": "3.7.1",
"eslint-visitor-keys": "^1.0.0"
},
"devDependencies": {
"@babel/core": "^7.1.5",
"@babel/parser": "^7.1.5",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-decorators": "^7.1.2",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-syntax-export-default-from": "^7.0.0",
"@babel/plugin-syntax-export-namespace-from": "^7.0.0",
"@babel/plugin-syntax-import-meta": "^7.0.0",
"@babel/plugin-syntax-numeric-separator": "^7.0.0",
"@babel/preset-env": "^7.1.5",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"babel-eslint": "^8.2.6",
"dedent": "^0.7.0",
"eslint": "^5.6.0",
Expand Down

0 comments on commit 969f3d9

Please sign in to comment.