update (babel/babel-eslint#504)
This commit is contained in:
parent
c9b8d2dfd1
commit
522140b43f
@ -391,6 +391,7 @@ exports.parseNoPatch = function(code, options) {
|
|||||||
allowReturnOutsideFunction: true,
|
allowReturnOutsideFunction: true,
|
||||||
allowSuperOutsideMethod: true,
|
allowSuperOutsideMethod: true,
|
||||||
ranges: true,
|
ranges: true,
|
||||||
|
tokens: true,
|
||||||
plugins: [
|
plugins: [
|
||||||
"flow",
|
"flow",
|
||||||
"jsx",
|
"jsx",
|
||||||
@ -412,6 +413,7 @@ exports.parseNoPatch = function(code, options) {
|
|||||||
"optionalChaining",
|
"optionalChaining",
|
||||||
"importMeta",
|
"importMeta",
|
||||||
"classPrivateProperties",
|
"classPrivateProperties",
|
||||||
|
"bigInt",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -12,10 +12,10 @@
|
|||||||
"url": "https://github.com/babel/babel-eslint.git"
|
"url": "https://github.com/babel/babel-eslint.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"babel-code-frame": "7.0.0-alpha.12",
|
"babel-code-frame": "7.0.0-alpha.15",
|
||||||
"babel-traverse": "7.0.0-alpha.12",
|
"babel-traverse": "7.0.0-alpha.15",
|
||||||
"babel-types": "7.0.0-alpha.12",
|
"babel-types": "7.0.0-alpha.15",
|
||||||
"babylon": "7.0.0-beta.14"
|
"babylon": "7.0.0-beta.16"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "npm run lint && npm run test-only",
|
"test": "npm run lint && npm run test-only",
|
||||||
|
|||||||
@ -1795,4 +1795,54 @@ describe("verify", () => {
|
|||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("works with dynamicImport", () => {
|
||||||
|
verifyAndAssertMessages(
|
||||||
|
unpad(`
|
||||||
|
import('a');
|
||||||
|
`),
|
||||||
|
{},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("works with numericSeparator", () => {
|
||||||
|
verifyAndAssertMessages(
|
||||||
|
unpad(`
|
||||||
|
1_000
|
||||||
|
`),
|
||||||
|
{},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("works with optionalChaining", () => {
|
||||||
|
verifyAndAssertMessages(
|
||||||
|
unpad(`
|
||||||
|
a?.b
|
||||||
|
`),
|
||||||
|
{},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("works with import.meta", () => {
|
||||||
|
verifyAndAssertMessages(
|
||||||
|
unpad(`
|
||||||
|
import.meta
|
||||||
|
`),
|
||||||
|
{},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
it("works with classPrivateProperties", () => {
|
||||||
|
verifyAndAssertMessages(
|
||||||
|
unpad(`
|
||||||
|
class A { #a = 1; }
|
||||||
|
`),
|
||||||
|
{},
|
||||||
|
[]
|
||||||
|
);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -75,6 +75,14 @@ babel-code-frame@7.0.0-alpha.12:
|
|||||||
esutils "^2.0.2"
|
esutils "^2.0.2"
|
||||||
js-tokens "^3.0.0"
|
js-tokens "^3.0.0"
|
||||||
|
|
||||||
|
babel-code-frame@7.0.0-alpha.15:
|
||||||
|
version "7.0.0-alpha.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-7.0.0-alpha.15.tgz#381d3e06e17b73201129c4a019e8b62d84e2dde3"
|
||||||
|
dependencies:
|
||||||
|
chalk "^1.1.0"
|
||||||
|
esutils "^2.0.2"
|
||||||
|
js-tokens "^3.0.0"
|
||||||
|
|
||||||
babel-code-frame@7.0.0-alpha.3:
|
babel-code-frame@7.0.0-alpha.3:
|
||||||
version "7.0.0-alpha.3"
|
version "7.0.0-alpha.3"
|
||||||
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-7.0.0-alpha.3.tgz#9ff265eaaac94b58dfc7ca4a4eecf389d5f4d344"
|
resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-7.0.0-alpha.3.tgz#9ff265eaaac94b58dfc7ca4a4eecf389d5f4d344"
|
||||||
@ -100,6 +108,15 @@ babel-eslint@^8.0.0-alpha.13:
|
|||||||
babel-types "7.0.0-alpha.12"
|
babel-types "7.0.0-alpha.12"
|
||||||
babylon "7.0.0-beta.14"
|
babylon "7.0.0-beta.14"
|
||||||
|
|
||||||
|
babel-helper-function-name@7.0.0-alpha.15:
|
||||||
|
version "7.0.0-alpha.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-7.0.0-alpha.15.tgz#087bb6bb6677acde36b3c19f6bc1afedb3d12e30"
|
||||||
|
dependencies:
|
||||||
|
babel-helper-get-function-arity "7.0.0-alpha.15"
|
||||||
|
babel-template "7.0.0-alpha.15"
|
||||||
|
babel-traverse "7.0.0-alpha.15"
|
||||||
|
babel-types "7.0.0-alpha.15"
|
||||||
|
|
||||||
babel-helper-function-name@7.0.0-alpha.7:
|
babel-helper-function-name@7.0.0-alpha.7:
|
||||||
version "7.0.0-alpha.7"
|
version "7.0.0-alpha.7"
|
||||||
resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-7.0.0-alpha.7.tgz#19aecddc5402f941c5726802993077b41ea9832d"
|
resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-7.0.0-alpha.7.tgz#19aecddc5402f941c5726802993077b41ea9832d"
|
||||||
@ -109,6 +126,12 @@ babel-helper-function-name@7.0.0-alpha.7:
|
|||||||
babel-traverse "7.0.0-alpha.7"
|
babel-traverse "7.0.0-alpha.7"
|
||||||
babel-types "7.0.0-alpha.7"
|
babel-types "7.0.0-alpha.7"
|
||||||
|
|
||||||
|
babel-helper-get-function-arity@7.0.0-alpha.15:
|
||||||
|
version "7.0.0-alpha.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-7.0.0-alpha.15.tgz#17e93206d0b625c3122f4c674478cbed53281f24"
|
||||||
|
dependencies:
|
||||||
|
babel-types "7.0.0-alpha.15"
|
||||||
|
|
||||||
babel-helper-get-function-arity@7.0.0-alpha.7:
|
babel-helper-get-function-arity@7.0.0-alpha.7:
|
||||||
version "7.0.0-alpha.7"
|
version "7.0.0-alpha.7"
|
||||||
resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-7.0.0-alpha.7.tgz#16e6526ecefc5537826012365e577de2ccba02f5"
|
resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-7.0.0-alpha.7.tgz#16e6526ecefc5537826012365e577de2ccba02f5"
|
||||||
@ -119,10 +142,23 @@ babel-messages@7.0.0-alpha.12:
|
|||||||
version "7.0.0-alpha.12"
|
version "7.0.0-alpha.12"
|
||||||
resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-7.0.0-alpha.12.tgz#5fda840cb8dfeda06a7894a1e8ab1af695f249c0"
|
resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-7.0.0-alpha.12.tgz#5fda840cb8dfeda06a7894a1e8ab1af695f249c0"
|
||||||
|
|
||||||
|
babel-messages@7.0.0-alpha.15:
|
||||||
|
version "7.0.0-alpha.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-7.0.0-alpha.15.tgz#97991d32d86a2130aff08fa75a16cfc5acad9e42"
|
||||||
|
|
||||||
babel-messages@7.0.0-alpha.3:
|
babel-messages@7.0.0-alpha.3:
|
||||||
version "7.0.0-alpha.3"
|
version "7.0.0-alpha.3"
|
||||||
resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-7.0.0-alpha.3.tgz#c8390a468478b8384da134612e12a6bc31a684e9"
|
resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-7.0.0-alpha.3.tgz#c8390a468478b8384da134612e12a6bc31a684e9"
|
||||||
|
|
||||||
|
babel-template@7.0.0-alpha.15:
|
||||||
|
version "7.0.0-alpha.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-7.0.0-alpha.15.tgz#08b56562987c9893bbd6646bce4819074ba1cf90"
|
||||||
|
dependencies:
|
||||||
|
babel-traverse "7.0.0-alpha.15"
|
||||||
|
babel-types "7.0.0-alpha.15"
|
||||||
|
babylon "7.0.0-beta.13"
|
||||||
|
lodash "^4.2.0"
|
||||||
|
|
||||||
babel-template@7.0.0-alpha.7:
|
babel-template@7.0.0-alpha.7:
|
||||||
version "7.0.0-alpha.7"
|
version "7.0.0-alpha.7"
|
||||||
resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-7.0.0-alpha.7.tgz#82e26500980d1b3f14d9ebe8ae8b9325dc158392"
|
resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-7.0.0-alpha.7.tgz#82e26500980d1b3f14d9ebe8ae8b9325dc158392"
|
||||||
@ -146,6 +182,20 @@ babel-traverse@7.0.0-alpha.12:
|
|||||||
invariant "^2.2.0"
|
invariant "^2.2.0"
|
||||||
lodash "^4.2.0"
|
lodash "^4.2.0"
|
||||||
|
|
||||||
|
babel-traverse@7.0.0-alpha.15:
|
||||||
|
version "7.0.0-alpha.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-7.0.0-alpha.15.tgz#d7af52cb8ee6e0867b778da17166e6f01498b11a"
|
||||||
|
dependencies:
|
||||||
|
babel-code-frame "7.0.0-alpha.15"
|
||||||
|
babel-helper-function-name "7.0.0-alpha.15"
|
||||||
|
babel-messages "7.0.0-alpha.15"
|
||||||
|
babel-types "7.0.0-alpha.15"
|
||||||
|
babylon "7.0.0-beta.15"
|
||||||
|
debug "^2.2.0"
|
||||||
|
globals "^9.0.0"
|
||||||
|
invariant "^2.2.0"
|
||||||
|
lodash "^4.2.0"
|
||||||
|
|
||||||
babel-traverse@7.0.0-alpha.7:
|
babel-traverse@7.0.0-alpha.7:
|
||||||
version "7.0.0-alpha.7"
|
version "7.0.0-alpha.7"
|
||||||
resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-7.0.0-alpha.7.tgz#61cc89061b0ad0a5f9fc6df81117fac428bc4148"
|
resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-7.0.0-alpha.7.tgz#61cc89061b0ad0a5f9fc6df81117fac428bc4148"
|
||||||
@ -167,6 +217,14 @@ babel-types@7.0.0-alpha.12:
|
|||||||
lodash "^4.2.0"
|
lodash "^4.2.0"
|
||||||
to-fast-properties "^1.0.1"
|
to-fast-properties "^1.0.1"
|
||||||
|
|
||||||
|
babel-types@7.0.0-alpha.15:
|
||||||
|
version "7.0.0-alpha.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-7.0.0-alpha.15.tgz#e4021e6a432e906678dfc6cc89805ba3234f9f48"
|
||||||
|
dependencies:
|
||||||
|
esutils "^2.0.2"
|
||||||
|
lodash "^4.2.0"
|
||||||
|
to-fast-properties "^1.0.1"
|
||||||
|
|
||||||
babel-types@7.0.0-alpha.7:
|
babel-types@7.0.0-alpha.7:
|
||||||
version "7.0.0-alpha.7"
|
version "7.0.0-alpha.7"
|
||||||
resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-7.0.0-alpha.7.tgz#4bdb77386d1f6e2001f42fa9ac21b6c3d6ad0d82"
|
resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-7.0.0-alpha.7.tgz#4bdb77386d1f6e2001f42fa9ac21b6c3d6ad0d82"
|
||||||
@ -179,10 +237,22 @@ babylon@7.0.0-beta.12:
|
|||||||
version "7.0.0-beta.12"
|
version "7.0.0-beta.12"
|
||||||
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.12.tgz#f7b9c8a89ff7d6afb57b906d947a4237f9bf53f9"
|
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.12.tgz#f7b9c8a89ff7d6afb57b906d947a4237f9bf53f9"
|
||||||
|
|
||||||
|
babylon@7.0.0-beta.13:
|
||||||
|
version "7.0.0-beta.13"
|
||||||
|
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.13.tgz#12425c1bfd9498be419021ed36b43fe4f0289c0a"
|
||||||
|
|
||||||
babylon@7.0.0-beta.14:
|
babylon@7.0.0-beta.14:
|
||||||
version "7.0.0-beta.14"
|
version "7.0.0-beta.14"
|
||||||
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.14.tgz#72aa3c493c984c2edc54d4bc077b74066ed4511d"
|
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.14.tgz#72aa3c493c984c2edc54d4bc077b74066ed4511d"
|
||||||
|
|
||||||
|
babylon@7.0.0-beta.15:
|
||||||
|
version "7.0.0-beta.15"
|
||||||
|
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.15.tgz#410348bcd21af470a55abea9698c9c651d87f1c6"
|
||||||
|
|
||||||
|
babylon@7.0.0-beta.16:
|
||||||
|
version "7.0.0-beta.16"
|
||||||
|
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.16.tgz#448ceedeec0a5ef56b62812e3556bf36c5bb9781"
|
||||||
|
|
||||||
babylon@7.0.0-beta.8:
|
babylon@7.0.0-beta.8:
|
||||||
version "7.0.0-beta.8"
|
version "7.0.0-beta.8"
|
||||||
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.8.tgz#2bdc5ae366041442c27e068cce6f0d7c06ea9949"
|
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.8.tgz#2bdc5ae366041442c27e068cce6f0d7c06ea9949"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user