Andres Suarez
1c5400a670
Fix type param and interface declaration scoping ( babel/babel-eslint#449 )
2017-03-23 12:49:19 -04:00
Andres Suarez
700f62e28e
Remove lodash dependency ( babel/babel-eslint#450 )
2017-03-22 22:35:31 -04:00
wtgtybhertgeghgtwtg
d3c40a1851
Use lodash instead of lodash.pickby. ( babel/babel-eslint#435 )
2017-03-20 14:50:09 -07:00
Alex Rattray
65413344bd
[flow] Process polymorphic type bounds on functions ( babel/babel-eslint#444 )
2017-03-20 14:46:07 -07:00
Luís Couto
2bee348c9a
Add option to disable code frame. ( babel/babel-eslint#446 )
...
* Add option to disable code hightlight.
* Rename codeHighlight with codeFrame
* Add codeFrame tests
* Remove colors from test assertions
2017-03-20 21:45:11 +00: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
38072c0716
Revert "use *" ( babel/babel-eslint#426 )
2016-12-02 16:51:16 -05:00
Henry Zhu
122acf8f81
use * ( babel/babel-eslint#421 )
2016-11-18 08:52:17 -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
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
Ville Immonen
ce6d9df192
Remove the lodash.assign dependency ( babel/babel-eslint#393 )
...
lodash.assign is deprecated:
```
npm WARN deprecated lodash.assign@4.2.0: This package is deprecated.
Use Object.assign.
```
2016-09-27 18:32:52 +03: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
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
Henry Zhu
9ee5e6e59c
Create a variable for class properties in scope instead of deleting the key ( babel/babel-eslint#336 )
2016-07-08 14:23:04 -04:00
Henry Zhu
66a4cf578f
remove hardcoded strict mode value ( babel/babel-eslint#331 )
2016-06-27 01:53:27 -04: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
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
cbc0475634
Update lodash and replace pick by pickBy ( babel/babel-eslint#301 )
2016-04-25 01:14:39 +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
080f0c7b22
Merge pull request babel/babel-eslint#273 from mysticatea/fix-monkeypatching-for-2.3.0
...
Fix: Remove throwing an error when estraverse-fb has not found.
2016-03-14 08:36:44 -04:00
Henry Zhu
b42d59b29c
errror on estraverse-fb..
2016-03-08 11:06:47 -05:00
Henry Zhu
7fbf6111e3
just throw an error right now instead of it silently working but with bugs
2016-03-08 10:57:22 -05: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
4a8c6d8a8b
Merge pull request babel/babel-eslint#270 from danez/cleanup-monkey
...
remove monkey-patching of patternVisitor as unused
2016-03-07 08:31:48 -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
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
c1bec5c4de
check using __esModule
2016-02-01 20:22:03 -05:00
Henry Zhu
a55236d383
Merge pull request babel/babel-eslint#244 from christophehurpeau/patch-1
...
fix babel/babel-eslint#243
2016-02-01 14:40:01 -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
faa003168c
add functionSent to parser
2015-11-27 15:44:07 -05:00
Henry Zhu
204ba86418
Merge pull request babel/babel-eslint#215 from zertosh/master
...
babylon/espree option alignment
2015-11-27 15:42:16 -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
3d901f5960
Merge pull request babel/babel-eslint#212 from evocateur/fix-with-latest-eslint
...
Avoid errors with eslint 1.10.x when excluding destructured properties
2015-11-23 20:33:39 -05:00
Henry Zhu
0859607b4e
Merge pull request babel/babel-eslint#209 from Constellation/pattern-visitor
...
Patch SpreadProperty to escope's PatternVisitor
2015-11-23 13:34:48 -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
b5e0dbe8e8
check AssignmentPattern types - fixes babel/babel-eslint#184
2015-09-17 09:42:18 -04:00
Henry Zhu
742b1cb65d
Merge pull request babel/babel-eslint#182 from bryanrsmith/patch-1
...
fix typo in comment
2015-09-11 18:38:53 -04:00
Henry Zhu
4cdf59532d
Merge pull request babel/babel-eslint#177 from hzoo/use-acorn-to-esprima
...
use `acorn-to-esprima` package
2015-08-25 12:11:24 -04:00
Henry Zhu
b2405a9924
lint fix, lint task
2015-08-20 15:07:05 -04:00
Henry Zhu
8812bf735e
update espree, update eslintester for eslint 1.0
2015-08-20 15:04:30 -04:00
Sebastian McKenzie
19e2f1bb33
use start/end rather than directly using range in attachComments
2015-07-27 02:58:37 +01:00
Henry Zhu
c5bbf91892
Merge pull request babel/babel-eslint#152 from bgw/line-x
...
Replace 'Line X' with actual line number
2015-07-25 11:08:08 -04:00
Henry Zhu
8d65e3e894
Merge pull request babel/babel-eslint#154 from alexkuz/master
...
fix visiting filter in comprehension
2015-07-25 10:08:31 -04:00
Henry Zhu
9c452f5b14
remove estraverse attach comments method, fix up tests
2015-07-22 00:36:03 -04:00