Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from babel:master #270

Merged
merged 194 commits into from Apr 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
6363b59
Re-generate plugins compat data
nicolo-ribaudo Jan 16, 2020
a1063d2
fix: triple __proto__ in object patterns should be allowed (#11009)
JLHwung Jan 16, 2020
3daab41
Re-generate preset-env fixtures (#11016)
nicolo-ribaudo Jan 16, 2020
06dace1
fix: for-of transform should skip for-await-of (#11023)
JLHwung Jan 16, 2020
1a14543
chore: replace yarn-upgrade by bump-babel-dependencies in e2e tests (…
JLHwung Jan 17, 2020
6648d62
chore: use @babel/eslint-config-internal (#11026)
JLHwung Jan 17, 2020
45301c5
Update coalesce precedence (#11017)
JLHwung Jan 17, 2020
34a9653
add AST for the module attribute proposal (#11015)
xtuc Jan 17, 2020
85ddc29
Fix rest parameters indexing with TypeScript 'this parameter' (#9714)
BenoitZugmeyer Jan 17, 2020
341964b
fix: properly parse member expression after property initializ… (#11031)
vedantroy Jan 19, 2020
facfd4d
Enable `no-process-exit` ESLint rule (#11025)
JLHwung Jan 19, 2020
de75dbf
update compat-data related docs/config [skip ci] (#11030)
JLHwung Jan 20, 2020
2b23c28
Check that generated compat-data is up to date on CI (#11024)
nicolo-ribaudo Jan 20, 2020
740064c
Fix missing ClassDeclaration references after scope#crawl (#11011)
regiontog Jan 20, 2020
9bc04ba
fix(babel-parser): avoid state.clone() to clone the whole token store…
3cp Jan 20, 2020
43b23e0
refactor: simplify toAssignable routine (#11032)
JLHwung Jan 20, 2020
fa975bf
polish: throw human-friendly error when item-option pair is in… (#10969)
JLHwung Jan 20, 2020
1815c34
Update preset-env fixtures (#11040)
nicolo-ribaudo Jan 21, 2020
b54a946
chore: map mobile browser data to their desktop version (#10814)
JLHwung Jan 24, 2020
ed47d2e
Delete duplicated file in `@babel/compat-data` (#11041)
nicolo-ribaudo Jan 24, 2020
2e5594d
Update failing tests after last merged PR
nicolo-ribaudo Jan 24, 2020
d0518b7
Update browserslist (#11058)
pustovalov Jan 27, 2020
916429b
Avoid compiling the _typeof helper with itself (#11049)
nicolo-ribaudo Jan 27, 2020
eae6211
Update compat table (#11039)
nicolo-ribaudo Jan 27, 2020
3e21a09
feat: support node 6 for levenary (#11059)
tanhauhau Jan 28, 2020
1528d7d
Fix core-js 2 builtin data for opera (#11066)
danez Jan 29, 2020
92c6807
[@babel/cli] Copy ignored files by default (#11063)
nicolo-ribaudo Jan 30, 2020
5c2e6bc
v7.8.4
nicolo-ribaudo Jan 30, 2020
32de1ac
Add v7.8.4 to CHANGELOG.md [skip ci]
babel-bot Jan 30, 2020
8b13513
Update CHANGELOG.md [skip ci]
nicolo-ribaudo Jan 30, 2020
d57b9aa
Update CHANGELOG.md [skip ci]
nicolo-ribaudo Jan 30, 2020
66721ea
Further refactoring of @babel/eslint-parser (#11071)
kaicataldo Jan 30, 2020
7ee9836
Do not publish build directory of compat-data (#11078) [skip ci]
danez Jan 31, 2020
11641b5
v7.8.5
nicolo-ribaudo Jan 31, 2020
011f11c
Add v7.8.5 to CHANGELOG.md [skip ci]
babel-bot Jan 31, 2020
4070b7a
Update changelog [skip ci]
nicolo-ribaudo Jan 31, 2020
f987821
Clean babel-eslint-*/**/lib (#11070)
kaicataldo Jan 31, 2020
779f00b
Update @babel deps (#11072)
existentialism Feb 1, 2020
bd1daa7
Update fixtures after browserslist release (#11091)
nicolo-ribaudo Feb 4, 2020
636c1dc
Only download compat-table if it's not already downloaded (#11081)
nicolo-ribaudo Feb 4, 2020
11d9826
Fix Async Generic After Await Parsing Error (#11092)
liamfd Feb 4, 2020
0ae61f0
Update fixtures again (#11094)
nicolo-ribaudo Feb 4, 2020
7615635
Make `isReferenced` return false for method parameter name (#11089)
brokensandals Feb 5, 2020
755ec19
Archive @babel/preset-env-standalone (#10993)
nicolo-ribaudo Feb 6, 2020
5e58903
Remove stage presets from the monorepo (#11101)
nicolo-ribaudo Feb 6, 2020
0b3dea8
Turn on no-fallthrough rule (#11093)
JLHwung Feb 7, 2020
1599e90
fix: specify sourceFileName when generating inline sourcemaps (#10797)
JLHwung Feb 7, 2020
5aa368c
Centralize @babel/eslint-* tests (#11106)
kaicataldo Feb 8, 2020
dadba01
Fix export bindings not updated by 'for...in' and 'for...of' (#11074)
vedantroy Feb 9, 2020
8ab27c8
Wrap type-only class fields in flow comments (#11096)
nicolo-ribaudo Feb 9, 2020
3852969
Refactor await/yield production parameter tracking (#10956)
JLHwung Feb 9, 2020
df78258
chore: use npm install in babel-test262-runner setup (#11113)
JLHwung Feb 10, 2020
a4d5c62
Update preset-env fixtures (#11120)
nicolo-ribaudo Feb 10, 2020
865d515
Add eslint-plugin-jest (#11119)
JLHwung Feb 10, 2020
3907396
Allow redeclaration of loop variable in body (#11088)
openorclose Feb 11, 2020
bc308a1
Respect preserveComments option in tempate.ast() (#11112)
dentrado Feb 11, 2020
157bb6e
Fix typing of ReplaceSupers options (#11121)
existentialism Feb 11, 2020
3fc904e
Fix classNameTDZError in computed prototype methods with class fields…
sidntrivedi012 Feb 12, 2020
3c6a8ae
Fix rewriteThis in helper-module-transforms for computed class… (#11109)
sidntrivedi012 Feb 12, 2020
d21e221
Skip newlines around inline `#__PURE__` annotations (#11133)
nicolo-ribaudo Feb 13, 2020
4cfbd64
Add Yarn 2 files to .gitignore (#11143)
nicolo-ribaudo Feb 13, 2020
31b0506
fix: @babel/traverse can't use path.remove() with noScope (#11136)
liuxingbaoyu Feb 14, 2020
1613418
Update preset-env builtin-definitions (#10929)
JLHwung Feb 17, 2020
3960f4d
Breaking: align babel-eslint-parser & espree (#11137)
kaicataldo Feb 20, 2020
223cee7
Parse declare modifier around accessibility modifiers (#11146)
JLHwung Feb 21, 2020
a583eab
fix: workaround misleading ENOENT error (#11160)
JLHwung Feb 21, 2020
4b04581
Mark `wrapNativeSuper` and `wrapRegExp` as pure (#11134)
nicolo-ribaudo Feb 21, 2020
2ce7008
chore: specify dependency rule of check-compat-data-ci (#11164)
JLHwung Feb 21, 2020
eaff9f8
chore: migrate lock threads to github actions (#11163)
JLHwung Feb 22, 2020
a192c0f
Update preset-env fixture
nicolo-ribaudo Feb 24, 2020
2d1bac9
fix: search for browserslist if esmodules is falsy (#11124)
fengzilong Feb 24, 2020
afb0f48
Enable more eslint recommended rules (#11168)
JLHwung Feb 25, 2020
0018881
Add missing dependencies (#11170)
nicolo-ribaudo Feb 25, 2020
e9ea523
replace `gulp-watch` by `gulp.watch` (#11175)
JLHwung Feb 26, 2020
750d3dd
v7.8.6
nicolo-ribaudo Feb 27, 2020
bb97823
Add v7.8.6 to CHANGELOG.md [skip ci]
babel-bot Feb 27, 2020
a5f6329
TypeScript: Preserve decorated definite class properties (#11129)
jamescdavis Feb 27, 2020
9b16bf3
Set correct version for @babel/eslint-plugin-development (#11181)
nicolo-ribaudo Feb 27, 2020
d13fd7c
Add .yarn/install-state.gz to .gitignore [skip ci]
nicolo-ribaudo Feb 27, 2020
9c261ae
Add "Statement" as alias to Flow enum declaration (#11184)
gkz Feb 28, 2020
a39beda
print parenthesis around forced calls of optional chains (#11190)
sag1v Feb 28, 2020
9015fda
Fix scope of function body when var redeclares param (#11158)
openorclose Mar 1, 2020
8f281f5
Bump regenerator (#11191)
nicolo-ribaudo Mar 2, 2020
2603c2e
fix(babel-parser): chain off optionally chained keys named cla… (#11198)
Vages Mar 3, 2020
114f672
Pass URLs to import() rather than paths (#11193)
nicolo-ribaudo Mar 3, 2020
21c9141
Refactor: add parser message template (#11192)
JLHwung Mar 3, 2020
a12001a
chore: bump browserslist to version 4.9.1 (#11207)
nicolo-ribaudo Mar 4, 2020
7127330
Allow using `preset-env` with newer versions of `compat-data` (#11201)
nicolo-ribaudo Mar 5, 2020
595f65f
v7.8.7
nicolo-ribaudo Mar 5, 2020
1e7ab24
Add v7.8.7 to CHANGELOG.md [skip ci]
babel-bot Mar 5, 2020
1011e58
update: preset-env-fixtures (#11218)
JLHwung Mar 5, 2020
8cafd8f
fix(transform-destructuring): update scope info after replacing
Mar 5, 2020
e297e40
refactor: remove redundant contextDescription empty check (#11219)
JLHwung Mar 5, 2020
2057d2b
fix: non-directive "use strict" should not enable parsing in strict m…
kaicataldo Mar 5, 2020
eb65195
Update @babel deps (#11225)
existentialism Mar 10, 2020
cb9d28c
Force parentheses around array and conditional infer (#11227)
smelukov Mar 10, 2020
5ee1433
Bump ESLint-related deps (#11228)
existentialism Mar 10, 2020
3cc833d
chore: update acorn to latest patch (#11230)
JLHwung Mar 10, 2020
a82e739
Bump rollup deps (#11233)
existentialism Mar 10, 2020
0616f06
Bump kind-of for audit (#11232)
existentialism Mar 10, 2020
f9d4b79
chore: pin `@rollup/plugin-json` to 4.0.1 (#11235)
JLHwung Mar 11, 2020
cbbf0bc
Archive @babel/plugin-syntax-export-namespace-from (#11236)
nicolo-ribaudo Mar 11, 2020
d030793
Add support for Unicode 13 in regexps (update `regexpu-core`) (#11244)
nicolo-ribaudo Mar 11, 2020
dadd22e
chore: update caniuse fixtrues (#11253)
JLHwung Mar 12, 2020
565ab9a
fix: preserve shadowed for-loop declarators (#11242)
JLHwung Mar 12, 2020
c831a24
v7.8.8
nicolo-ribaudo Mar 12, 2020
420f2ee
Add v7.8.8 to CHANGELOG.md [skip ci]
babel-bot Mar 12, 2020
b1a589f
Fix printing edge cases in Nullish Coalescing and Optional Ch… (#11255)
jridgewell Mar 13, 2020
b85d9f5
Remove unused `gulp-rename` (#11259)
existentialism Mar 14, 2020
661ffbd
Support more node types in generateUidBasedOnNode (#11260)
jridgewell Mar 14, 2020
7b9bc7c
fix(rest-spread): Do not require `Symbol.iterator` for strings (#9794)
clshortfuse Mar 15, 2020
1005890
Update Purish aliases (#11267)
jridgewell Mar 16, 2020
1ba41f2
Throw better errors for non-iterables when Symbol doesn't exist (#11264)
nicolo-ribaudo Mar 16, 2020
84a9ea4
Allow await when it is not in AsyncArrowHead (#11148)
arku Mar 16, 2020
4a48455
feat: align ID_Start/ID_Continue regex to Unicode 13.0.0 (#11246)
JLHwung Mar 16, 2020
20d9a10
Add estree parsing support for `export * as A` (#11254)
existentialism Mar 16, 2020
740260b
Add `import type` and `export type` support to TypeScript (#11171)
nicolo-ribaudo Mar 16, 2020
1971b7e
feat(react-jsx-source): add columnNumber property (#11139)
motiz88 Mar 16, 2020
2bce1e5
Parse BigInts by default (#11117)
nicolo-ribaudo Mar 16, 2020
4f394e3
Add support for flow's SymbolTypeAnnotation (#11077)
existentialism Mar 16, 2020
f232d4d
Added jsescOptions to Numeric Literals (#11028)
sidntrivedi012 Mar 16, 2020
286aaea
Add cloneDeepWithoutLoc (#10680)
Taym95 Mar 16, 2020
5c1a821
Implement support for `declare` on class fields with Flow (#11178)
nicolo-ribaudo Mar 16, 2020
e06bf8f
Add numeric separator to `shippedProposals` (#10971)
Wetinee Mar 16, 2020
3ce7c2e
Added support for record and tuple syntax. (#10865)
Mar 16, 2020
a875560
Allow defining the moduleIds-related option in the transform p… (#11194)
nicolo-ribaudo Mar 16, 2020
f6c7bf3
Allow extending untranspiled classes (#8656)
nicolo-ribaudo Mar 16, 2020
a11855e
Include preset modules (#11083)
nicolo-ribaudo Mar 16, 2020
5997668
Extract for-of iterator handling to a helper (#11262)
nicolo-ribaudo Mar 16, 2020
5650060
Add stricter Optional Chain node validation (#11250)
jridgewell Mar 17, 2020
8e7ca22
Create Npm_error.md issue template (#11217)
nicolo-ribaudo Mar 17, 2020
841f442
Rephrase parser error message (#11208)
JLHwung Mar 17, 2020
10aa97b
Allow rest/spread on polyfilled or builtin iterables without `Symbol`…
nicolo-ribaudo Mar 17, 2020
748897b
Add experimental version of the `babel-plugin-transform-react-… (#11154)
lunaruan Mar 17, 2020
4bf36e6
Create File class for babel helpers (#10575)
JLHwung Mar 17, 2020
48d53f8
chore: bump json5 and minimist (#11276)
JLHwung Mar 18, 2020
f405cd8
Update compat-data (#11277)
existentialism Mar 18, 2020
78ace99
Silence dynamic import() warnings in tests (#11279)
nicolo-ribaudo Mar 18, 2020
6892d51
Add path separator to `@babel/register` sourceRoot (#11249)
andrewdotn Mar 18, 2020
375847b
fix: ensure explicit file extensions in "exports" (#11283)
guybedford Mar 18, 2020
d60802b
fix: object-rest-spread should not transform array rest (#11282)
JLHwung Mar 19, 2020
6f93297
Add for-of fallback for arrays in browsers without symbol supp… (#11263)
nicolo-ribaudo Mar 19, 2020
fa7ec81
Allow for-of on polyfilled or builtin iterables without `Symbol` supp…
nicolo-ribaudo Mar 19, 2020
f3912ac
Mark transpiled JSX elements as pure (#11126)
nicolo-ribaudo Mar 19, 2020
0a02a12
Move `object-rest-spread` after `transform-parameters` (#11280)
JLHwung Mar 19, 2020
11292a3
Use the correct `this` in `__self` for JSX elements in arrows (#11288)
nicolo-ribaudo Mar 19, 2020
2e6f958
Pass the correct `this` to JSX's `__self` with the old plugin (#11290)
nicolo-ribaudo Mar 19, 2020
693a5df
Memoize call expressions in optional chains in loose mode (#11261)
oliverdunk Mar 20, 2020
e39b508
Add @babel/helper-validator-identifier (#11289)
JLHwung Mar 20, 2020
8d5e422
v7.9.0
nicolo-ribaudo Mar 20, 2020
bb6a158
Add v7.9.0 to CHANGELOG.md [skip ci]
babel-bot Mar 20, 2020
87b2781
Consider jsxFrag as set when it's set to the default value (#11295)
nicolo-ribaudo Mar 20, 2020
220ce70
v7.9.1
nicolo-ribaudo Mar 20, 2020
ebca580
Add v7.9.1 to CHANGELOG.md [skip ci]
babel-bot Mar 20, 2020
469e8ed
Transform cwd in string literal on win32 (#11297)
JLHwung Mar 20, 2020
7ca8144
fix: parse value imports named type as values (#11296)
kaicataldo Mar 21, 2020
3d8f48c
Don't use ES6 in the for-of helper (#11302)
nicolo-ribaudo Mar 21, 2020
429dd2c
Manually inline the createSuper helper on older Babel versions (#11298)
nicolo-ribaudo Mar 21, 2020
2399e0d
v7.9.2
nicolo-ribaudo Mar 21, 2020
a9b430b
Add v7.9.2 to CHANGELOG.md [skip ci]
babel-bot Mar 21, 2020
0e5c1da
fix: async arrow functions should not be allowed after binary… (#11284)
vedantroy Mar 21, 2020
5b2c1f3
chore: fix build-babel exclude in gulpfile (#11293)
JLHwung Mar 21, 2020
b0315b8
Fix logic to insert parens in return statements with comments (#11306)
nicolo-ribaudo Mar 21, 2020
ceb54dd
Define default value for vars shadowing params (#11307)
nicolo-ribaudo Mar 22, 2020
1ae8556
v7.9.3
nicolo-ribaudo Mar 22, 2020
296d8ce
Add v7.9.3 to CHANGELOG.md [skip ci]
babel-bot Mar 22, 2020
2f54988
[preset-typescript] Fix private members type annotations (#11315)
Lodin Mar 23, 2020
d23f0ae
Add regression tests for regenerator (#10223)
nicolo-ribaudo Mar 23, 2020
9b976b2
Test Babel compiled using an old version of `@babel/core` (#11319)
nicolo-ribaudo Mar 23, 2020
6a728a0
Restore default pragmas in preset-react for classic runtime (#11324)
existentialism Mar 23, 2020
dc7c564
Compact parser fixture loc info (#11322)
JLHwung Mar 24, 2020
146ea41
fix: check parenthesis between optional chain and other types (#11325)
JLHwung Mar 24, 2020
4e6c9c5
fix: token after strict mode block is evaluated in strict mode (#11186)
kaicataldo Mar 24, 2020
d3cf5fb
v7.9.4
nicolo-ribaudo Mar 24, 2020
46f3146
Add v7.9.4 to CHANGELOG.md [skip ci]
babel-bot Mar 24, 2020
025e4ae
Fixed issue with programPath.scope.references not being regist… (#11323)
Andarist Mar 24, 2020
8e7ef30
polish: align optional chain whitespace behavior to their sibiling (#…
JLHwung Mar 24, 2020
a901bd5
chore: remove unused graceful-fs (#11329)
JLHwung Mar 25, 2020
6a00cbe
fix: isIdentifierName should reject empty string (#11339)
JLHwung Mar 26, 2020
71e7a7b
Ignore abstract methods when decorating class (#11345)
oliverdunk Mar 28, 2020
c8a8be7
Set correct async/generator in IIFE for params (#11346)
nicolo-ribaudo Mar 29, 2020
548cb3e
Fix e2e publish test when branching from an older version (#11347)
nicolo-ribaudo Mar 30, 2020
67609a1
Don't call `createSuper` in loose mode (it was unused) (#11358)
nicolo-ribaudo Apr 1, 2020
df819a0
fix: allow logical assignment operators in AssignmentExpression (#11359)
JLHwung Apr 1, 2020
9444713
fix auto import error with whitespace JSXText (#11354)
lunaruan Apr 1, 2020
c3042cf
fix: don’t add function name when operator is not `=` (#11361)
JLHwung Apr 2, 2020
2c31587
Fix createSuper in Babel <7.5.5 (#11341)
nicolo-ribaudo Apr 2, 2020
40db926
Fixed useBuiltIns and modules validation when using 'false' as option…
JMarkoski Apr 3, 2020
051fc0a
Bump handlebars dep (#11374)
existentialism Apr 3, 2020
aeebc08
Simplify scope.hasReferences implementation (#11368)
Andarist Apr 3, 2020
65d09e4
Don't check type annotations when deciding params scope (#11349)
nicolo-ribaudo Apr 5, 2020
e3ad798
Remove unnecessary test file (#11383)
nicolo-ribaudo Apr 6, 2020
ca096c5
fix Incorrect destructuring compilation of `for (let [[x] = [1… (#11360)
Zzzen Apr 7, 2020
70cc111
Fixed generateUid creating clashing ids after scope re-crawling (#11375)
Andarist Apr 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
23 changes: 13 additions & 10 deletions .circleci/config.yml
Expand Up @@ -25,12 +25,6 @@ aliases:
- &artifact_babel_min
path: ~/babel/packages/babel-standalone/babel.min.js

- &artifact_env
path: ~/babel/packages/babel-preset-env-standalone/babel-preset-env.js

- &artifact_env_min
path: ~/babel/packages/babel-preset-env-standalone/babel-preset-env.min.js

- &test262_workdir
working_directory: ~/babel/babel-test262-runner

Expand Down Expand Up @@ -69,8 +63,6 @@ jobs:
- run: yarn jest "\-standalone/test"
- store_artifacts: *artifact_babel
- store_artifacts: *artifact_babel_min
- store_artifacts: *artifact_env
- store_artifacts: *artifact_env_min
- save_cache: *save-node-modules-cache
- save_cache: *save-yarn-cache

Expand All @@ -96,8 +88,8 @@ jobs:
command: |
git clone --recurse-submodules https://github.com/babel/babel-test262-runner
cd babel-test262-runner
yarn
yarn add tap-mocha-reporter --dev
npm ci
npm i tap-mocha-reporter --save-dev
node lib/download-node
- run:
name: Download master branch Test262 artifact
Expand Down Expand Up @@ -150,6 +142,14 @@ jobs:
at: /tmp/verdaccio-workspace
- run: ./scripts/integration-tests/e2e-babel.sh

e2e-babel-old-version:
executor: node-executor
steps:
- checkout
- attach_workspace:
at: /tmp/verdaccio-workspace
- run: ./scripts/integration-tests/e2e-babel-old-version.sh

e2e-create-react-app:
executor: node-executor
steps:
Expand Down Expand Up @@ -199,6 +199,9 @@ workflows:
- e2e-babel:
requires:
- publish-verdaccio
- e2e-babel-old-version:
requires:
- publish-verdaccio
- e2e-create-react-app:
requires:
- publish-verdaccio
Expand Down
6 changes: 2 additions & 4 deletions .eslintignore
Expand Up @@ -17,15 +17,13 @@ codemods/*/lib
codemods/*/dist
codemods/*/test/fixtures
codemods/*/test/tmp
packages/babel-compat-data/build
packages/babel-preset-env/data/[^(plugin-features|shipped-proposals).js]
packages/babel-preset-env/test/debug-fixtures
packages/babel-preset-env-standalone/babel-preset-env.js
packages/babel-preset-env-standalone/babel-preset-env.min.js
packages/babel-standalone/babel.js
packages/babel-standalone/babel.min.js
packages/babel-parser/test/expressions

eslint/*/lib
eslint/*/node_modules
eslint/*/test
eslint/*/tests
eslint/*/test/fixtures
15 changes: 13 additions & 2 deletions .eslintrc.js
@@ -1,7 +1,10 @@
const path = require("path");

module.exports = {
root: true,
plugins: ["prettier", "@babel/development", "import"],
extends: "babel",
plugins: ["prettier", "@babel/development", "import", "jest"],
// replace it by `@babel/internal` when `@babel/eslint-config-internal` is published
extends: path.resolve(__dirname, "eslint/babel-eslint-config-internal"),
rules: {
"prettier/prettier": "error",
// TODO: remove after babel-eslint-config-internal is fully integrated into this repository.
Expand Down Expand Up @@ -35,6 +38,14 @@ module.exports = {
env: {
jest: true,
},
extends: "plugin:jest/recommended",
rules: {
"jest/expect-expect": "off",
"jest/no-identical-title": "off",
"jest/no-standalone-expect": "off",
"jest/no-test-callback": "off",
"jest/valid-describe": "off"
}
},
{
files: ["packages/babel-plugin-*/src/index.js"],
Expand Down
1 change: 1 addition & 0 deletions .flowconfig
Expand Up @@ -14,6 +14,7 @@ codemods/*/src
lib/file.js
lib/parser.js
lib/third-party-libs.js.flow
lib/preset-modules.js.flow
packages/babel-types/lib/index.js.flow

[options]
Expand Down
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/Npm_error.md
@@ -0,0 +1,18 @@
---
name: "\U0001F4E6 npm error"
about: "When you get a `No matching version found for ...` error from npm"
title: ''
labels: 'i: npm cache'
assignees: ''

---

<!------------^ Click "Preview" for a nicer view! -->

First of all, check if the package for which `npm` throws an error is actually published by searching [on the npm website](https://www.npmjs.com/).

If it is, then there is nothing that we can do about it: it was correctly published, but for some reason your package manager client doesn't find it.

If you are using a proxy for the npm registry (maybe it's used by your company, or you are using it because your country blocks the main npm registry), then it's likely that it has cached the old version of the package and it isn't loading the new one. If you can, try clearing the proxy's cache. Otherwise, you will have to wait until the cache is automatically updated (it might take a few hours, or even days).

If you are not using a proxy, or if it isn't a caching problem, please report the issue to npm (https://github.com/npm/cli/issues/new/choose) instead of in this repo!
12 changes: 0 additions & 12 deletions .github/lock.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/lock.yml
@@ -0,0 +1,17 @@
name: Lock Threads

on:
schedule:
- cron: '0 4 * * *'

jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: '91'
issue-lock-labels: 'outdated'
pr-lock-inactive-days: '91'
pr-lock-labels: 'outdated'
9 changes: 6 additions & 3 deletions .gitignore
@@ -1,5 +1,11 @@
.npmrc

.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.js

.DS_Store
/node_modules
/.github/actions/*/node_modules
Expand Down Expand Up @@ -56,9 +62,6 @@ package-lock.json
packages/babel-standalone/babel.js
packages/babel-standalone/babel.js.map
packages/babel-standalone/babel.min.js
packages/babel-preset-env-standalone/babel-preset-env.js
packages/babel-preset-env-standalone/babel-preset-env.js.map
packages/babel-preset-env-standalone/babel-preset-env.min.js
/codemods/*/lib
/codemods/*/node_modules
/packages/babel-parser/build
Expand Down