698 Commits

Author SHA1 Message Date
fisker Cheung
c1f5ca6676
[eslint] Allow "latest" as ecmaVersion (#13638) 2021-08-30 12:05:37 +02:00
Babel Bot
a5624ea457 v7.15.3 2021-08-11 07:11:36 +00:00
Nicolò Ribaudo
ab79f08b63
Use @babel/eslint-parser/experimental-worker for our own repo (#13643) 2021-08-09 21:39:45 +02:00
Nicolò Ribaudo
6912f968a6 v7.15.0 2021-08-04 23:00:40 +02:00
Huáng Jùnliàng
d5b0d9e33d
Add attachComment parser option to disable comment attachment (#13229) 2021-08-04 17:04:22 +02:00
Nicolò Ribaudo
885e1e02f5
Expose @babel/eslint-parser/experimental-worker (#13398)
* Expose `@babel/eslint-parser/experimental-worker`

* Fix `@babel/runtime` build on Windows
2021-08-03 23:23:32 +02:00
Babel Bot
aa2cac5edc v7.14.9 2021-08-01 07:42:57 +00:00
Nicolò Ribaudo
82350d529b
[eslint, babel 8] Pass cwd to worker (#13526) 2021-07-28 23:12:19 +02:00
Babel Bot
268e4ca0de v7.14.7 2021-06-21 21:44:55 +00:00
Pedro Lourenço
d74838609e
Add record and tuple tokens to eslint parser (#13477) 2021-06-17 16:29:32 +02:00
Babel Bot
7a2a928398 v7.14.5 2021-06-09 23:03:30 +00:00
Huáng Jùnliàng
4eda1c8605
chore: bump eslint and its plugins (#13412) 2021-06-03 23:42:32 -04:00
Huáng Jùnliàng
4100b42ea2
chore: specify @babel/eslint-parser deps (#13420) 2021-06-03 20:28:46 -05:00
Kristoffer K
140ec5aa5c
chore: setup Yarn constraints (#13363) 2021-05-31 18:46:03 +02:00
Babel Bot
219fd3ab1f v7.14.4 2021-05-28 16:50:09 +00:00
Kristoffer K
533e63af52
chore(eslint-tests): add missing dependency @babel/core (#13355) 2021-05-23 17:59:14 +02:00
François Servant
12190042e6 Fix error when parsing ignored files with @babel/eslint-parser (#13338)
* fix(babel-eslint-parser): prevent typeerror in maybeParse
* fix(babel-eslint-parser): prevent other typeerrors in convert modules
* test(babel-eslint-parser): test maybeParse when file is ignored
* refactor(babel-eslint-parser): use fallback options instead of typeerror protections

Co-authored-by: devfservant <43757707+devfservant@users.noreply.github.com>
Co-authored-by: François Servant <francois.servant.e@thalesdigital.io>
2021-05-20 00:20:58 +02:00
Babel Bot
1487a46dd5 v7.14.3 2021-05-17 20:26:25 +00:00
Nicolò Ribaudo
9d620c2d42
[babel 8] Move ESLint parsing to a Worker (#13199) 2021-05-17 17:04:10 +02:00
Babel Bot
7512095c84 v7.14.2 2021-05-12 16:58:57 +00:00
Sosuke Suzuki
b2d9156cc6
Update to Prettier 2.3 (#13288) 2021-05-10 15:34:13 +02:00
serut
e74b3fb1c6
[DOC] Add missing Monorepo configuration (#13253)
* [DOC] Add missing Monorepo configuration

* Update eslint/babel-eslint-parser/README.md

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>

* [DOC] Unify monorepo config file

* [DOC] Clean monorepo configuration

* [DOC] Monorepo conf when eslint runned by package

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
2021-05-07 13:53:01 -04:00
Nicolò Ribaudo
1879491af7
[eslint] Don't crash on multiple @babel/parser copies (#13274) 2021-05-06 23:31:19 +02:00
Huáng Jùnliàng
96fce81438
chore: bump eslint-visitor-keys (#13272) 2021-05-06 12:23:21 -04:00
Huáng Jùnliàng
a387973821
Refactor private name tokenizing (#13256)
* add benchmark

* refactor: create tt.privateName token for private names

* add backward compat privateName = hash + name to Babel 7

* perf: get private name SV from token value

* chore: tweak benchmark file

* chore: update test fixtures

* convert tt.privateName to PrivateIdentifier

* perf: avoid most isPrivateName call

* Update packages/babel-parser/src/parser/expression.js

Co-authored-by: Justin Ridgewell <justin@ridgewell.name>

* perf: use inlinable codePointAtPos

* make prettier happy

Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2021-05-06 09:46:09 -04:00
Nicolò Ribaudo
3c0152a217 v7.14.0 2021-04-29 21:59:57 +02:00
Sosuke Suzuki
2521c666f7 Add internal ESLint rule for consistent parser error messages (#13130) 2021-04-28 18:21:31 +02:00
Babel Bot
d94a8e50ed v7.13.16 2021-04-20 11:11:32 +00:00
Cody Mims
54e088b347
Update links in @babel/eslint-parser README (#13155)
Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
2021-04-15 01:17:34 +02:00
Nicolò Ribaudo
d24bd7ce5c
Remove remaining lodash dependencies (#13139) 2021-04-13 22:41:22 +02:00
Babel Bot
e50f6f7eef v7.13.15 2021-04-08 15:40:57 +00:00
Huáng Jùnliàng
7bc72bb451
fix: do not filter report from functions within class elements (#13106) 2021-04-05 16:02:02 -04:00
Babel Bot
7ac9e9f740 v7.13.14 2021-03-29 13:34:28 +00:00
Mark Banner
e5e37b94a5
Update eslint-scope to be compatible with ESlint's dependency (#13058) 2021-03-27 00:58:29 +01:00
Babel Bot
d1d404b9a3 v7.13.10 2021-03-08 22:23:36 +00:00
Nicolò Ribaudo
d04842a700
Avoid using CJS globals in internal source files (#12963)
* Lint against CJS globals in modules

* Use `import.meta.url` instead of `__filename` in `src` files

* Prepare fixtures runner for `import.meta.url`

* Use `import.meta.url` instead of `__filename` in `test/index` files

* Remove `__dirname` from remaining test files

dirname

* Avoid using `module` in `src` files

* Avoid using `require` in `src` files

* Avoid using `require` in `test` files

* Update `@types/node`

* Compile dynamic import in `@babel/node`

* Fix windows

* Use `@babel/plugin-proposal-dynamic-import` from npm
2021-03-05 19:55:36 +01:00
Nicolò Ribaudo
6e551ae882
Suggest using babel.config.json when linting dependencies (#12956) 2021-03-04 21:13:19 +01:00
Babel Bot
e2abc19c4c v7.13.8 2021-02-26 23:28:19 +00:00
Huáng Jùnliàng
227f881f35
fix(eslint-parser): merge input estree options (#12891)
Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
2021-02-24 20:13:47 +01:00
pigcan
c9da9650eb
chore: downgrade semver to ^6.3.2 (#12890) 2021-02-24 19:55:42 +01:00
Babel Bot
e940b8c4b9 v7.13.4 2021-02-23 10:31:04 +00:00
Nicolò Ribaudo
c30039029a
Don't enable class features by default in estree (#12867)
* Don't enable class features by default in `estree`

* Flow

* Reduce breakage
2021-02-23 11:30:01 +01:00
Nicolò Ribaudo
c827193d9c v7.13.0 2021-02-22 23:35:18 +01:00
Huáng Jùnliàng
ba4ac7d587
chore: bump semver to 7.0.0 (#12015)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-02-21 23:56:43 +01:00
Huáng Jùnliàng
03d7911be6
Implement class features in estree (#12370)
Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
2021-02-21 20:12:12 +01:00
Nicolò Ribaudo
2f755ef052 v7.12.17 2021-02-18 15:58:43 +01:00
Babel Bot
dd5c9f958c v7.12.16 2021-02-11 22:36:24 +00:00
Nicolò Ribaudo
e735266dee
Avoid importing .json files (#12759)
* Avoid importing `.json` files

* Use ESold in babel.config.json

* Use `import/extensions` eslint plugin
2021-02-05 23:34:36 +01:00
Nicolò Ribaudo
d291edbdf1 v7.12.13 2021-02-03 01:59:31 +01:00
Nicolò Ribaudo
89d55d0786
Lint for extraneous dependencies in every file (#12699)
* Lint for extraneous dependencies in every file

* Deps fixes

* dedupe
2021-01-28 14:04:02 +01:00