Andres Suarez
2ca65d5451
Add type parameter scope tests ( babel/babel-eslint#454 )
2017-03-23 15:46:48 -04:00
Andres Suarez
1c5400a670
Fix type param and interface declaration scoping ( babel/babel-eslint#449 )
2017-03-23 12:49:19 -04:00
Andres Suarez
371488c102
Format non-regression errors for legibility ( babel/babel-eslint#451 )
2017-03-22 22:34:13 -04:00
Alex Rattray
65413344bd
[flow] Process polymorphic type bounds on functions ( babel/babel-eslint#444 )
2017-03-20 14:46:07 -07:00
Henry Zhu
4f4d229e0a
chore(package): update eslint-config-babel to version 6.0.0 ( babel/babel-eslint#433 )
...
* chore(package): update eslint-config-babel to version 6.0.0
Closes babel/babel-eslint#432
https://greenkeeper.io/
* Fix linting
2017-01-15 06:59:51 -05:00
Nazim Hajidin
d76cfe05b1
Update to use Node 4 features ( babel/babel-eslint#425 )
...
* Change for loops to forEach
* Change more for loops
* Arrow functions
* Use object shorthand
* Put this on one line
* Change back to using for loops
2017-01-14 17:15:54 -05:00
Henry Zhu
838bada36d
append code frame on parse error ( babel/babel-eslint#418 )
2016-11-17 17:48:58 -05:00
Jordan Gensler
1d52247080
[import()] Adding support to lint dynamic imports ( babel/babel-eslint#413 )
...
* [import()] Adding support to lint dynamic imports
* [import()] Adding regression test to import
2016-10-17 14:40:06 -04:00
Steven Job
1f04cab99f
Now using template strings ( babel/babel-eslint#410 )
...
* Use template strings in non-regression tests
* Refactor non-regression tests to fix test failures
Moved backtick to fix test 'getter/setter babel/babel-eslint#218' as indent matters
Fixed line numbers for some tests
* Use template strings in babel-eslint tests
* Fix tests for babel-eslint
Avoids error that shows when using template strings for tests:
line 253 line comments
line 260 block comments
line 306 jsdoc
Error: At loc.start.column: are different (6 !== 0)
* Other small template literal changes
* Add unpad to correctly indent template literals
2016-10-17 19:27:20 +01:00
Daniel Tschinder
31f48f0651
Update test for eslint 3.8 ( babel/babel-eslint#412 )
...
* Update test for eslint 3.8
also ignore yarn lock
* Run lint only on latest version
2016-10-15 11:04:55 +02:00
Henry Zhu
3c414db312
remove eslint 2 logic ( babel/babel-eslint#361 )
...
* remove old code
* remove async/await logic before eslint supported it
* not needed
2016-09-27 12:32:10 -04:00
Henry Zhu
3d4e8cfea3
update test line number [skip ci]
2016-09-27 08:42:41 -04:00
Henry Zhu
2b812b087c
Merge pull request babel/babel-eslint#354 from babel/eslint-config-babel
...
Use eslint-config-babel
2016-08-03 09:34:51 -04:00
Daniel Tschinder
0534eb7644
Fix tests for eslint 3.2 ( babel/babel-eslint#352 )
2016-07-30 19:44:42 +02:00
Daniel Tschinder
0cb35ab04e
Fix tests for eslint 3.0
...
Seems that eslint got a lot smarter and reports vars that are used, but are useless as unused
These examples are also failing with espree
2016-07-10 23:47:44 +02:00
Toru Nagashima
1766a21145
Fix: improve handling of class properties ( fixes babel/babel-eslint#337 ) ( babel/babel-eslint#338 )
...
I added ClassProperty method into Referencer of escope. This method will
address class properties and those type anotations.
2016-07-10 00:40:08 +09:00
Daniel Tschinder
19baee2242
Add testcase for space-comment and shebang babel/babel-eslint#163
...
This works as of babylon 6.8.2
2016-06-26 22:50:50 +02:00
Daniel Tschinder
ce54b07e2d
Testcase for newline-before-return shouldn't fail with comments. ( babel/babel-eslint#300 )
2016-06-26 21:52:39 +02:00
rhettlivingston
ab9afd33d1
Add allowImportExportEverywhere parserOption ( babel/babel-eslint#327 ) ( babel/babel-eslint#329 )
...
* Add allowImportExportEverywhere parserOption (babel/babel-eslint#327 )
* Added "allowImportExportEverywhere option (babel/babel-eslint#327 )" test.
2016-06-22 16:36:47 -04:00
Daniel Tschinder
93a9a8d638
Reset TypeParameters to Identifier ( babel/babel-eslint#325 )
2016-06-20 23:11:38 +02:00
Daniel Tschinder
97af2b0b62
Add regression test for babel/babel-eslint#223 ( babel/babel-eslint#305 )
2016-04-29 23:23:13 +02:00
Daniel Tschinder
2b66040f0d
Add tests for two issues and rename test suite ( babel/babel-eslint#304 )
2016-04-29 23:07:02 +02:00
Rafał Ruciński
cfd35799da
Fix parent not being set for decorator nodes. ( babel/babel-eslint#296 )
2016-04-25 23:51:43 +02:00
Daniel Tschinder
0ccbceb9e8
Ensure strictmode is enabled/disabled when changing sourceType ( babel/babel-eslint#302 )
2016-04-25 15:41:43 +02:00
Daniel Tschinder
cf456bfe4a
Fix escope to take sourceType and ecmaVersion from options ( babel/babel-eslint#288 )
...
escope was hardcoded to sourcetype: "module" and ecmaVersion: "6"
This changes it to take the configuration from the eslint options and still
defaulting to "module" and "6".
This is done by having to global variables, as monkeypatch is only triggered once.
To fix scoping issues, the same logic as in eslint is applied. It disables the nodejs scope
if the sourceType is module.
2016-04-20 02:56:15 +02:00
Henry Zhu
3c9ef8ec7e
Merge pull request babel/babel-eslint#285 from josh/revert-282-no-implicit-globals-regression
...
Revert "Fix processing sourceType: script"
2016-03-31 19:09:30 -04:00
Henry Zhu
1fe0d4a94b
Merge pull request babel/babel-eslint#282 from josh/no-implicit-globals-regression
...
Fix processing sourceType: script
2016-03-31 16:49:31 -04:00
Henry Zhu
217f83fd56
Merge pull request babel/babel-eslint#271 from danez/fix-use-before-define
...
Remove visiting of properties left of spread, fixes babel/babel-eslint#249 .
2016-03-07 23:09:46 -05:00
Henry Zhu
a827ab2d4e
Merge pull request babel/babel-eslint#269 from babel/eslint-2.3.0
...
try catch estraverse-fb since eslint removed it in 2.3.0, temp skip b…
2016-03-06 22:29:51 -05:00
Henry Zhu
511862c4ee
Merge pull request babel/babel-eslint#264 from hzoo/eslint2
...
ESLint 2
2016-03-01 22:34:53 -05:00
Henry Zhu
05f708c330
Merge pull request babel/babel-eslint#250 from danez/patch-1
...
Testcase for babel/babel-eslint#239
2016-02-02 17:11:01 -05:00
Henry Zhu
83debbfda0
Merge pull request babel/babel-eslint#246 from babel/escope-patterns
...
Prevent escope referencer from traversing into param pattern type annotations
2016-02-01 23:05:06 -05:00
Henry Zhu
177c0b4979
Add a test for use strict and directive ast change
...
Fixes babel/babel-eslint#242
2016-01-30 12:19:44 -05:00
Henry Zhu
9380324a0f
temporarily remove test
2016-01-30 10:32:47 -05:00
Henry Zhu
1adc834b10
skip for now
2015-12-29 13:48:29 -05:00
Henry Zhu
c510fa79d0
add test for es6 unicode escapes
2015-12-29 13:44:12 -05:00
Henry Zhu
c35137040a
update acorn-to-esprima, account for getter/setter kind property
2015-12-09 08:40:27 -05:00
Henry Zhu
4249dcd353
update acorn-to-esprima, add tests for babel/babel-eslint#216
2015-11-28 16:31:13 -05:00
Henry Zhu
72e8f9d969
Merge pull request babel/babel-eslint#202 from hzoo/babel6
...
Update to babel 6
2015-11-26 14:44:37 -05:00
Henry Zhu
78361c1518
skip for now
2015-11-23 21:19:08 -05:00
Henry Zhu
2ddb2d4c89
test for no-redeclare
2015-11-23 20:37:44 -05:00
Henry Zhu
a294ab4545
Merge pull request babel/babel-eslint#206 from mysticatea/fix-for-eslint-1.9
...
Fix for ESLint@1.9 and npm@3
2015-11-09 21:04:45 -05:00
Henry Zhu
b4fb1d3aca
test with ecmaFeatures on by default, add test for babel/babel-eslint#192
...
Ref babel/babel-eslint#192
2015-10-07 20:23:41 -04:00
Henry Zhu
afd72ba541
update packages
2015-10-07 20:05:11 -04:00
Henry Zhu
b5e0dbe8e8
check AssignmentPattern types - fixes babel/babel-eslint#184
2015-09-17 09:42:18 -04:00
Henry Zhu
6dc026c203
un-comment babel/babel-eslint#124 test
2015-09-15 09:20:14 -04:00
Henry Zhu
2b17528c5d
Merge pull request babel/babel-eslint#180 from hzoo/master
...
update eslint, acorn-to-esprima - ref eslint/eslint#3596
2015-08-31 10:22:52 -04:00
Henry Zhu
9740af8be4
Merge pull request babel/babel-eslint#169 from hzoo/i-168
...
async func and space-before-function-paren
2015-08-16 16:11:57 -04:00
Henry Zhu
cd0f5ccc93
add older tests
2015-08-15 09:24:14 -04:00
Henry Zhu
6476a8d916
Merge pull request babel/babel-eslint#164 from hzoo/remove-rest-transform
...
Remove rest transform
2015-08-15 08:48:41 -04:00