Nicolò Ribaudo
6a0e909c13
Don't compile import() in development ( #12288 )
2020-11-18 16:02:02 +01:00
Huáng Jùnliàng
2e20f1b8a6
add test on ES2021 features ( #12005 )
2020-08-25 15:23:45 -04:00
Huáng Jùnliàng
48e793e964
fix: add ImportExpression visitorKeys ( #11932 )
2020-08-08 15:44:22 -04:00
Kai Cataldo
4ac9c7afe2
Upgrade to ESLint v7 ( #11857 )
...
* Upgrade to ESLint v7
* Upgrade eslint-plugin-import
* Update peer deps
* Remove max-len from ESLint config
* Update tests
* Only test babel-eslint-* packages in Node >=10
* Remove babel-eslint
* Fix linking in dev
* Add comment to Makefile
* Fix e2e tests
* Add --ignore-engines flag when installing in ESLint packages
* fix: convert tt.questionDot to Punctuator
* chore: update lockfile
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-07-29 19:11:48 -04:00
Huáng Jùnliàng
d7347fb8bd
eslint-parser: ES2020 features ( #11815 )
...
* chore: update espree test on nullish coalescing
* feat: add optional chaining support
* fix: adapt to estree AST shape
* chore: update lockfile
* add estree optional-chaining test fixtures
* address review comments
* chore: simplify smoke test
* export * support
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-07-29 16:46:29 -04:00
Bogdan Savluk
4108524856
Update prettier to v2 ( #11579 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-06-07 22:21:33 +02:00
Nicolò Ribaudo
aeb51f463c
Do not remove "estree": null in ESLint tests
2020-05-09 22:12:28 +02:00
Brian Ng
20d9a10186
Add estree parsing support for export * as A ( #11254 )
2020-03-16 22:52:33 +01:00
Nicolò Ribaudo
114f6726a7
Pass URLs to import() rather than paths ( #11193 )
...
* Pass URLs to import() rather than paths
* Make tests pass
* (╯°□°)╯︵ ┻━┻
* (╯°□°)╯︵ ┻━┻ (╯°□°)╯︵ ┻━┻ (╯°□°)╯︵ ┻━┻
2020-03-03 19:54:01 +01:00
Kai Cataldo
3960f4de64
Breaking: align babel-eslint-parser & espree ( #11137 )
...
* Chore: align babel-eslint-parser & espree
* Start program at beginning of comment when no tokens exist
* Import correct version of Espree for tests
* Remove hasOwnProperty guard
2020-02-20 17:31:57 +01:00
Huáng Jùnliàng
865d5155c2
Add eslint-plugin-jest ( #11119 )
...
* chore: add eslint-plugin-jest
* chore: update test sources
* chore: suppress preset-env debug log when linting
2020-02-11 00:11:32 +09:00
Kai Cataldo
5aa368cec1
Centralize @babel/eslint-* tests ( #11106 )
...
* Centralize @babel/eslint-* tests
* Enable linting of @babel/eslint-* test files
* Add missing sourceType
2020-02-08 10:04:49 -05:00
Kai Cataldo
d8e6219ad9
@babel/eslint-plugin: Update rules/tests to use @babel/eslint-parser ( #10977 )
...
* Use @babel/eslint-parser for tests
* Update rules/tests
* Update docs
* add @babel/eslint-shared-fixtures to package.json
* remove bug fix
* convert RuleTester to ESM
* Update devDep versions
2020-01-11 20:42:21 +01:00
Kai Cataldo
9f832c2716
@babel/eslint-parser: Fix ClassPrivateMethods ( #10913 )
2020-01-02 18:36:58 -05:00
Kai Cataldo
25f7e6808e
@babel/eslint-parser: refactor configuration logic ( #10860 )
2019-12-11 18:06:37 -05:00
Kai Cataldo
7b54a94389
@babel/eslint-parser: fix ImportExpression node to match ESTree spec ( #10828 )
...
* @babel/eslint-parser: fix ImportExpression node to match ESTree spec
* Update caller name for @babel/core.parseSync
* Move logic into estree plugin
* Add estree plugin tests
* Fix Flow error
* Fix flow
* Remove extra properties on ImportExpression node
* Incorporate review feedback
2019-12-11 11:13:57 +01:00
Huáng Jùnliàng
de1fa902f0
Tune eslint packages test configuration ( #10848 )
...
* Do not load root babel.config.js in esilnt tests
* add testcase: sourceType: script + globalReturn: true
* chore: remove globalReturn on default test config
2019-12-10 01:14:29 +01:00
Kai Cataldo
fb100eee41
@babel/eslint-parser: fix BigIntLiteral node to match ESTree spec ( #10827 )
...
* @babel/eslint-parser: fix BigIntLiteral node to match ESTree spec
* Move token conversion to @babel/eslint-parser
* Add estree plugin tests
* Update test helpers to handle BigInt serializing
* Update Literal union type to include BigIntLiteral
* Add FlowIgnore comment for BigInt
2019-12-08 02:59:18 +01:00
Kai Cataldo
e81bbd69b3
Clean up @babel/eslint-parser ( #10753 )
...
* Ensure compilation works for @babel/eslint-parser
* Update with review suggestions
* Incorporate feedback :)
2019-11-25 22:17:45 +01:00
Kai Cataldo
2c40b8c706
Fix failing tests
2019-11-22 16:25:38 -05:00
Raja Sekar
f087cf842f
Mocha to jest migration for eslint packages ( #10716 )
...
* migrated mocha to jest
* migrated mocha to jest - 2
* migrated mocha to jest - removed preversion hook from script
* migrated mocha to jest - 3
* migrated mocha to jest - 4
* cleanup
* review
* review
2019-11-16 12:32:19 +01:00
Chiawen Chen
3396fdd7f7
Breaking: make AST match Espree 6 ( babel/babel-eslint#785 )
2019-11-02 07:08:32 +08:00
Daniel Tschinder
030fddb0b8
chore: Update deps and fix tests for new mocha and eslint ( babel/babel-eslint#781 )
2019-07-15 18:49:52 +02:00
Yosuke Ota
3fcfc90a12
Fix to convert hash token. ( babel/babel-eslint#753 )
2019-02-15 07:56:30 +09:00
Kai Cataldo
bbce2b3807
Remove comment attachment ( babel/babel-eslint#736 )
...
* Remove comment attachment
* Simplify error messaging in tests
2019-01-11 12:23:34 -05:00
Kai Cataldo
2b9ee42ded
Remove monkeypatching dead code ( babel/babel-eslint#737 )
2019-01-10 18:28:40 -05:00
Kai Cataldo
47de99e1b8
Use @babel/core#parse ( babel/babel-eslint#711 )
2019-01-10 15:25:00 -05:00
Kai Cataldo
bede064c0b
Major: remove parseNoPatch ( babel/babel-eslint#733 )
2019-01-07 09:55:16 -05:00
Kai Cataldo
22a1681e11
Merge pull request babel/babel-eslint#706 from kaicataldo/es6
...
Update ESLint config
2018-10-30 14:48:37 -05:00
Henry Zhu
e56b342e59
Revert babel/babel-eslint#584 ( babel/babel-eslint#697 )
...
* Revert "Treat type alias declarationlike function declaration (babel/babel-eslint#584 )"
This reverts commit 020d012c554913fea137f4129798ce31a4896dfe.
2018-09-27 10:29:29 -04:00
Henry Zhu
742aa412a7
test value should be switched
2018-09-25 15:29:14 -04:00
Joa Ebert
22fa8e6f20
Treat type alias declarationlike function declaration ( babel/babel-eslint#584 )
...
A type alias shouldn't trigger a no-use-before-define warning just
like a function declaration.
Cyclic type dependencies are common when using flow.
For instance: type Node<T> = { head: T; tail: Node<T> }
Fixes babel/babel-eslint#485
2018-09-25 20:39:43 +02:00
Brian Ng
990ea0f1ae
Drop old monkeypatching behavior ( babel/babel-eslint#689 )
...
An alternative to adding a direct dep on estraverse (https://github.com/babel/babel-eslint/pull/685 ), let's just drop the old monkeypatching behavior.
Closes babel/babel-eslint#685 , Closes babel/babel-eslint#680
2018-09-25 13:07:46 -05:00
Rubén Norte
a17917810d
Merge pull request babel/babel-eslint#645 from rubennorte/support-new-flow-syntax-in-scope-analysis
...
Support new flow syntax in scope analysis
2018-07-06 17:20:52 +01:00
Rubén Norte
dcf55cb730
Upgrade Babel to v7.0.0-beta.52 ( babel/babel-eslint#650 )
...
* Upgrade Babel to v7.0.0-beta.52
* Fixed failing test
2018-07-06 14:50:59 +01:00
Rubén Norte
4f9e2a5be6
Breaking: Upgraded Babel to 7.0.0-beta.51 ( babel/babel-eslint#642 )
...
* Upgraded Babel to 7.0.0-beta.51, with changes to decorators
* Removed support for Node 4 and added it for Node 10
* nit: fix typo [skip ci]
2018-06-29 14:26:43 +01:00
Brian Ng
42d0769683
Add test for template string with object with template string inside ( babel/babel-eslint#639 )
...
Closes https://github.com/babel/babel-eslint/pull/538 .
Fixes https://github.com/babel/babel-eslint/issues/537 .
Now that https://github.com/babel/babel-eslint/pull/610 has landed, I wanted to make sure this case was covered.
2018-06-22 11:12:54 -05:00
Brian Ng
077bea0a45
Fix converting template types to handle nested templates ( babel/babel-eslint#610 )
...
Fixes https://github.com/babel/babel-eslint/issues/603 (and the fixture from https://github.com/babel/babel-eslint/issues/609 works).
Reworks our code that converts the format of Babylon template tokens to be a bit more robust, especially with things like nested templates with arrows.
(Adapted the logic from https://github.com/eslint/espree/blob/master/lib/token-translator.js )
2018-06-18 16:46:31 -05:00
Rubén Norte
99968db2b1
Fix token types for experimental operators ( babel/babel-eslint#632 )
...
* Added failing tests
* Recognized nullish coalescing, optional chaining and pipeline operators as Punctuator tokens
2018-06-15 15:42:05 +01:00
Rubén Norte
3477626973
Add support for the optional chaining operator ( babel/babel-eslint#630 )
2018-06-15 15:31:43 +01:00
jmurretxactly
735abb06b4
don't require unpad per test fixture, fixes babel/babel-eslint#572 ( babel/babel-eslint#618 )
2018-05-08 05:52:59 -06:00
Daniel Tschinder
c27c2b6e68
Update dependencies
2018-02-20 11:54:09 +01:00
Toru Nagashima
fbb7ff6e44
Fix: wrong token type of ! and ~ ( fixes babel/babel-eslint#576 ) ( babel/babel-eslint#577 )
2018-01-17 15:10:55 +09:00
Henry Zhu
23d12acd15
fix export change ( babel/babel-eslint#571 )
2018-01-08 19:15:22 -05:00
Kai Cataldo
97c9442511
Make 2018 the default ecmaVersion for rules relying on parserOptions ( babel/babel-eslint#556 )
2018-01-08 17:45:24 -05:00
jony89
660180b932
update babel packages ( babel/babel-eslint#565 )
...
* update babel packages
There is some critical bug fixes in version babylon#7.0.0-beta.33 regard `async` - `await` syntax which is needed pretty immediately :)
* remove test 42 (test for import type *)
`import type *` is invalid, since the namespace can't be a type
2018-01-09 00:40:11 +02:00
Toru Nagashima
3cb154df82
Fix: ignore eval ( fixes babel/babel-eslint#560 ) ( babel/babel-eslint#561 )
2017-12-26 10:49:36 +09:00
Teddy Katz
e988a88af0
Fix: Prevent parseForESLint() behavior from changing after parse() is called ( fixes babel/babel-eslint#558 )( babel/babel-eslint#559 )
...
* Prevent parseForESLint() behavior from changing after parse() is called
(fixes https://github.com/babel/babel-eslint/issues/558 , fixes https://github.com/eslint/eslint/issues/9767 )
* Avoid using the enhanced referencer after monkeypatching
* Chore: add test for babel/babel-eslint#558
* Pass correct scope analyzer options
* fix escope patch and improve tests
* remove process.exit(1)
2017-12-25 01:52:36 -05:00
Teddy Katz
d33839a9c3
Re-add parseNoPatch function (accidentally removed) ( babel/babel-eslint#557 )
2017-12-24 02:00:29 -05:00
Toru Nagashima
5d6d52f04e
Use new scopeManager/visitorKeys APIs ( babel/babel-eslint#542 )
...
(fixes https://github.com/eslint/eslint/issues/9762 )
2017-12-24 15:42:17 +09:00