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

Add eslint/ for @babel/eslint-* packages #10705

Merged
merged 569 commits into from
Nov 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
569 commits
Select commit Hold shift + click to select a range
cc35677
Update README.md
jquense Jun 19, 2015
e9e6dee
Typos and copy
jquense Jun 19, 2015
382c3f2
Merge pull request babel/eslint-plugin-babel#2 from mathieumg/newcap_…
jquense Jul 1, 2015
c2c9933
Merge pull request babel/eslint-plugin-babel#1 from mathieumg/blocksc…
jquense Jul 4, 2015
fadd5b5
Merge pull request babel/eslint-plugin-babel#3 from mathieumg/spacein…
jquense Jul 4, 2015
1bfe4aa
v1.1.0
jquense Jul 7, 2015
51d6ba7
Merge pull request babel/eslint-plugin-babel#4 from mathieumg/objectc…
jquense Jul 16, 2015
f0a2fb6
v1.2.0
jquense Jul 20, 2015
89011d9
Merge pull request babel/eslint-plugin-babel#5 from deepsweet/eslint-…
jquense Jul 24, 2015
3eeaa4a
Merge pull request babel/eslint-plugin-babel#7 from mathieumg/eslint1.0
jquense Aug 5, 2015
fc31183
v2.0.0
jquense Aug 5, 2015
f5f7b50
Merge pull request babel/eslint-plugin-babel#9 from babel/arrow-parens
hzoo Aug 16, 2015
902ae7e
2.1.0
hzoo Aug 16, 2015
cc73bb5
Merge pull request babel/eslint-plugin-babel#10 from aruberto/master
hzoo Aug 18, 2015
eb438f0
2.1.1
hzoo Aug 18, 2015
64291d8
Merge pull request babel/eslint-plugin-babel#11 from pascalduez/pr__f…
jquense Aug 18, 2015
9d8a2f1
Merge pull request babel/eslint-plugin-babel#23 from LegNeato/master
jquense Oct 26, 2015
dd8f357
Merge pull request babel/eslint-plugin-babel#22 from nmote/await
jquense Nov 1, 2015
fcdf7ec
v2.2.0
jquense Nov 24, 2015
a2c6952
Merge pull request babel/eslint-plugin-babel#29 from evocateur/no-deps
jquense Nov 25, 2015
1168d60
3.0.0
hzoo Nov 25, 2015
885bfe9
Merge pull request babel/eslint-plugin-babel#32 from hawkrives/patch-1
hzoo Nov 30, 2015
9eebd7b
Merge pull request babel/eslint-plugin-babel#38 from zaygraveyard/iss…
jquense Dec 20, 2015
b5cdcbe
Merge pull request babel/eslint-plugin-babel#39 from zaygraveyard/iss…
jquense Dec 20, 2015
8bc70e3
Merge pull request babel/eslint-plugin-babel#40 from zaygraveyard/iss…
jquense Dec 21, 2015
d58dc7b
Merge pull request babel/eslint-plugin-babel#41 from zaygraveyard/iss…
jquense Dec 21, 2015
7a2ecd2
Merge pull request babel/eslint-plugin-babel#44 from ssorallen/arrow-…
jquense Jan 22, 2016
7fa3aa9
3.1.0
jquense Feb 4, 2016
6ac5874
update readme
jquense Feb 4, 2016
5363ff8
Merge pull request babel/eslint-plugin-babel#56 from nmote/flow-objec…
jquense Apr 5, 2016
ba2b2bc
Merge pull request babel/eslint-plugin-babel#57 from nmote/docs
hzoo Apr 7, 2016
8487ec8
3.2.0
hzoo Apr 7, 2016
f57dc52
Merge pull request babel/eslint-plugin-babel#62 from lemonmade/fix-fo…
jquense Jun 1, 2016
148e6be
show which rules are fixable
hzoo Jun 1, 2016
8cd329f
Merge pull request babel/eslint-plugin-babel#64 from zertosh/master
hzoo Jun 21, 2016
cae8513
3.3.0
hzoo Jun 21, 2016
1daf7f9
Run Travis CI in same Node versions as babel-eslint (babel/eslint-plu…
kaicataldo Jul 1, 2016
f6c2d2e
`--save-dev` instead of `-D` [skip ci]
hzoo Jul 1, 2016
6e4d44f
Update Dependencies (babel/eslint-plugin-babel#67)
kaicataldo Jul 1, 2016
57b06a5
chore(package): update eslint to version 3.0.0 (babel/eslint-plugin-b…
greenkeeperio-bot Jul 1, 2016
831a217
chore(package): update mocha to version 3.0.0 (babel/eslint-plugin-ba…
greenkeeperio-bot Sep 22, 2016
3c414db
remove eslint 2 logic (babel/babel-eslint#361)
hzoo Sep 27, 2016
aa6c5cc
updates
hzoo Sep 27, 2016
8d48eec
7.0.0
hzoo Sep 27, 2016
994eea7
docs: Update built-in support notes in README (babel/babel-eslint#398…
MethodGrab Sep 29, 2016
610cf28
Update eslint-config-babel to version 2.0.1 🚀 (babel/babel-eslint#408)
greenkeeperio-bot Oct 10, 2016
31f48f0
Update test for eslint 3.8 (babel/babel-eslint#412)
danez Oct 15, 2016
1f04cab
Now using template strings (babel/babel-eslint#410)
stevenjob Oct 17, 2016
1d52247
[import()] Adding support to lint dynamic imports (babel/babel-eslint…
kesne Oct 17, 2016
93a4c3c
7.1.0
hzoo Oct 26, 2016
2b52d67
Merge pull request babel/eslint-plugin-babel#101 from mathieumg/no-in…
jquense Nov 2, 2016
8c12b51
chore(package): update eslint to version 3.9.1 (babel/babel-eslint#419)
hzoo Nov 3, 2016
1be2c47
chore(package): update babylon to version 6.13.0 (babel/babel-eslint#…
hzoo Nov 3, 2016
c7d8d99
Drop support of Node < 4 (babel/eslint-plugin-babel#113)
preco21 Nov 17, 2016
5b5f8e3
Updated Node versions to test against in the Travis configuration. (b…
mathieumg Nov 17, 2016
48010c5
chore(package): update dependencies (babel/eslint-plugin-babel#109)
greenkeeper[bot] Nov 17, 2016
d38551c
Breaking: Deprecate built-in rules (babel/eslint-plugin-babel#115)
hzoo Nov 17, 2016
9c9bff7
readme: drop node < 4 [skip ci]
hzoo Nov 17, 2016
3855f28
4.0.0
hzoo Nov 17, 2016
838bada
append code frame on parse error (babel/babel-eslint#418)
hzoo Nov 17, 2016
4962563
chore(package): update dependencies (babel/babel-eslint#422)
greenkeeper[bot] Nov 17, 2016
f78ab34
7.1.1
hzoo Nov 17, 2016
332da93
chore(package): update eslint-config-babel to version 3.0.0 (babel/ba…
greenkeeper[bot] Nov 17, 2016
122acf8
use `*` (babel/babel-eslint#421)
hzoo Nov 18, 2016
38072c0
Revert "use `*`" (babel/babel-eslint#426)
hzoo Dec 2, 2016
10864cf
add badges [skip ci]
hzoo Dec 6, 2016
fd20939
chore(package): update eslint-config-babel to version 4.0.0 (babel/ba…
greenkeeper[bot] Jan 10, 2017
d76cfe0
Update to use Node 4 features (babel/babel-eslint#425)
nhajidin Jan 14, 2017
4f4d229
chore(package): update eslint-config-babel to version 6.0.0 (babel/ba…
hzoo Jan 15, 2017
7f94d5f
Updated rules to new format, added deprecated flag (babel/eslint-plug…
wagerfield Jan 18, 2017
4b52a4c
4.0.1
hzoo Jan 18, 2017
7120260
Add babel semi (babel/eslint-plugin-babel#121)
aaronjensen Feb 27, 2017
c548da9
4.1.0
hzoo Feb 27, 2017
ad8a7e7
update readme [skip ci]
hzoo Mar 1, 2017
b3c41bd
remove deprecated rule examples [skip ci]
hzoo Mar 1, 2017
399c182
Merge pull request babel/eslint-plugin-babel#123 from daltones/master
jquense Mar 4, 2017
dc0109a
4.1.1
hzoo Mar 6, 2017
dccd5a7
Merge pull request babel/babel-eslint#447 from kaicataldo/clean-up-es…
hzoo Mar 20, 2017
2bee348
Add option to disable code frame. (babel/babel-eslint#446)
Couto Mar 20, 2017
6541334
[flow] Process polymorphic type bounds on functions (babel/babel-esli…
rattrayalex Mar 20, 2017
d3c40a1
Use `lodash` instead of `lodash.pickby`. (babel/babel-eslint#435)
wtgtybhertgeghgtwtg Mar 20, 2017
f9b1918
7.2.0
hzoo Mar 20, 2017
1cda9b6
Update README.md with codeFrame option (babel/babel-eslint#448)
Couto Mar 21, 2017
371488c
Format non-regression errors for legibility (babel/babel-eslint#451)
zertosh Mar 23, 2017
700f62e
Remove lodash dependency (babel/babel-eslint#450)
zertosh Mar 23, 2017
1c5400a
Fix type param and interface declaration scoping (babel/babel-eslint#…
zertosh Mar 23, 2017
26daac8
Remove left over eslint 2 estraverse code (babel/babel-eslint#452)
zertosh Mar 23, 2017
e8b91f8
7.2.1
hzoo Mar 23, 2017
2ca65d5
Add type parameter scope tests (babel/babel-eslint#454)
zertosh Mar 23, 2017
711c1e2
Merge pull request babel/babel-eslint#455 from babel/babylon-to-espre…
hzoo Mar 25, 2017
d78b0de
Use dedent for unpadding (babel/babel-eslint#456)
zertosh Mar 25, 2017
9a558bd
Remove unused .gitmodules (babel/babel-eslint#457)
zertosh Mar 25, 2017
b8a3af8
Separate finding peer deps from monkeypatching (babel/babel-eslint#460)
zertosh Mar 30, 2017
2677319
Fix: use eslint-scope instead of escope if present (babel/babel-eslin…
vitorbal Apr 12, 2017
b5c058b
7.2.2
hzoo Apr 12, 2017
6feaee8
Fix flow type spread handling (babel/babel-eslint#465)
zertosh Apr 21, 2017
b4daa5e
7.2.3
Apr 21, 2017
da75b84
Modifying semi rule to support for await (babel/eslint-plugin-babel#126)
kobelb May 10, 2017
cb2eb3a
Fix: Convert RegExpLieteral value to RegExp object (fixes babel/babel…
soda0289 May 30, 2017
4e4aa05
Update to Babylon 7 (fixes babel/babel-eslint#481) (babel/babel-eslin…
soda0289 Jun 7, 2017
45a9f64
Use Node 8 and drop Node 5 from travis (babel/babel-eslint#483)
soda0289 Jun 7, 2017
36a630e
Fix: allow options to be optional when monkey patching escope.analyze…
Standard8 Jun 8, 2017
bffbaff
Use babylon estree and ranges (babel/babel-eslint#489)
danez Jun 15, 2017
0010648
8.0.0-alpha.12
hzoo Jun 16, 2017
94e69f3
Add Prettier (babel/babel-eslint#491)
existentialism Jun 17, 2017
6aec93c
Merge pull request babel/babel-eslint#493 from danez/regression-test
hzoo Jun 18, 2017
d40a6dd
8.0.0-alpha.13
hzoo Jun 18, 2017
9a791d1
Update install instructions to use latest stable release (babel/babel…
kevva Jun 20, 2017
dcb4bff
chore(package): update husky to version 0.14.0 (babel/babel-eslint#498)
greenkeeper[bot] Jun 22, 2017
469e679
Update eslint to the latest version 🚀 (babel/babel-eslint#500)
greenkeeper[bot] Jun 25, 2017
c9b8d2d
Readme update usage section (babel/babel-eslint#501) [skip ci]
ecbrodie Jul 10, 2017
522140b
update (babel/babel-eslint#504)
hzoo Jul 13, 2017
35f79cb
8.0.0-alpha.15
hzoo Jul 13, 2017
15c5245
4.1.2
hzoo Jul 25, 2017
cf86d94
alpha.17
hzoo Jul 26, 2017
bc9b695
8.0.0-alpha.17
hzoo Jul 26, 2017
15e2aa0
Remove already fixed workaround (babel/babel-eslint#508)
danez Aug 2, 2017
d61b06b
update to beta.0
hzoo Sep 12, 2017
b576677
8.0.0
hzoo Sep 12, 2017
04cf424
Adding optionalCatchBinding to plugins. (babel/babel-eslint#521)
kesne Sep 26, 2017
5b3caf7
chore(package): update mocha to version 4.0.0 (babel/babel-eslint#524)
greenkeeper[bot] Oct 11, 2017
b0d8baf
Update README.md support (babel/babel-eslint#531) [skip ci]
clemmy Oct 31, 2017
c958724
8.0.1
hzoo Sep 26, 2017
38f372b
fix(package): update babylon to version 7.0.0-beta.31 (babel/babel-es…
greenkeeper[bot] Nov 6, 2017
f43062e
Allow ^ version for babel dependencies (babel/babel-eslint#534)
hzoo Nov 6, 2017
090269e
Always use unpad (babel/babel-eslint#535)
hzoo Nov 6, 2017
0e2bbc3
require correct deps
hzoo Nov 6, 2017
39cef92
8.0.2
hzoo Nov 6, 2017
b6172b2
Lock down dependency versions.
loganfsmyth Dec 1, 2017
3a36eca
Fix mocha command path.
loganfsmyth Dec 1, 2017
7ed6bfb
8.0.3
loganfsmyth Dec 1, 2017
5d6d52f
Use new scopeManager/visitorKeys APIs (babel/babel-eslint#542)
mysticatea Dec 24, 2017
d33839a
Re-add parseNoPatch function (accidentally removed) (babel/babel-esli…
not-an-aardvark Dec 24, 2017
5b08714
8.1.0
not-an-aardvark Dec 24, 2017
e988a88
Fix: Prevent parseForESLint() behavior from changing after parse() is…
not-an-aardvark Dec 25, 2017
a706e85
8.1.1
mysticatea Dec 25, 2017
3cb154d
Fix: ignore eval (fixes babel/babel-eslint#560) (babel/babel-eslint#561)
mysticatea Dec 26, 2017
624a425
Fix: add Literal type to visitorKeys (babel/babel-eslint#562)
mysticatea Dec 26, 2017
d0d84ac
8.1.2
mysticatea Dec 26, 2017
660180b
update babel packages (babel/babel-eslint#565)
jony89 Jan 8, 2018
97c9442
Make 2018 the default ecmaVersion for rules relying on parserOptions …
kaicataldo Jan 8, 2018
2afde99
Add other parser plugins, update yarn.lock (babel/babel-eslint#569)
hzoo Jan 8, 2018
b6ce2b6
8.2.0
kaicataldo Jan 8, 2018
23d12ac
fix export change (babel/babel-eslint#571)
hzoo Jan 9, 2018
6d37c55
8.2.1
hzoo Jan 9, 2018
fbb7ff6
Fix: wrong token type of ! and ~ (fixes babel/babel-eslint#576) (babe…
mysticatea Jan 17, 2018
7057e9f
Bump deps (babel/babel-eslint#591)
existentialism Feb 16, 2018
c03d5c4
chore(package): update lint-staged to version 6.1.1 (babel/babel-esli…
danez Feb 20, 2018
c27c2b6
Update dependencies
danez Feb 20, 2018
1bd58fa
Allow newer versions of babel
danez Feb 20, 2018
f75f7a0
8.2.2
danez Feb 20, 2018
b41b3af
Merge pull request babel/eslint-plugin-babel#138 from babel/composer
existentialism Mar 30, 2018
2624190
Update deprecation table with versions
existentialism Mar 30, 2018
550dcfc
Merge pull request babel/eslint-plugin-babel#139 from babel/quotes-js…
existentialism Mar 30, 2018
8e49bbb
Add quotes rule to index
existentialism Mar 30, 2018
1037e37
5.0.0
hzoo Mar 31, 2018
b2c0659
Save babel beta packages as exact versions (babel/babel-eslint#606) […
bary12 Apr 13, 2018
2f7aea9
lock to beta.44
hzoo Apr 13, 2018
b2bc4fe
8.2.3
hzoo Apr 13, 2018
cadb223
updates readme for latest eslint & babel-eslint (babel/babel-eslint#6…
aoberoi Apr 13, 2018
bc15f06
Merge pull request babel/eslint-plugin-babel#131 from lyleunderwood/d…
existentialism Apr 19, 2018
5b5d9a5
eslint-rule-composer@0.3.0
existentialism Apr 19, 2018
ae68b5b
Refresh new-cap tests
existentialism Apr 19, 2018
562deb8
Merge pull request babel/eslint-plugin-babel#144 from babel/issue142
existentialism Apr 20, 2018
3e7fe7b
5.1.0
existentialism Apr 20, 2018
735abb0
don't require unpad per test fixture, fixes babel/babel-eslint#572 (b…
jmurretxactly May 8, 2018
85d8f70
Bump Babel deps
existentialism Jun 11, 2018
3477626
Add support for the optional chaining operator (babel/babel-eslint#630)
rubennorte Jun 15, 2018
99968db
Fix token types for experimental operators (babel/babel-eslint#632)
rubennorte Jun 15, 2018
b537da9
Drop node4 in travis
existentialism Jun 15, 2018
077bea0
Fix converting template types to handle nested templates (babel/babel…
existentialism Jun 18, 2018
da43afb
refactor: rename babylon to @babel/parser
skyrpex Jun 5, 2018
6a6c2ba
Support OptionalMemberExpression with scope too (babel/babel-eslint#634)
existentialism Jun 22, 2018
42d0769
Add test for template string with object with template string inside …
existentialism Jun 22, 2018
92507e5
8.2.4
existentialism Jun 22, 2018
9342a5b
Revert bump to babel 51 (babel/babel-eslint#640)
existentialism Jun 23, 2018
8dae11e
8.2.5
existentialism Jun 23, 2018
4f9e2a5
Breaking: Upgraded Babel to 7.0.0-beta.51 (babel/babel-eslint#642)
rubennorte Jun 29, 2018
28c4507
9.0.0-beta.1
existentialism Jun 29, 2018
dcf55cb
Upgrade Babel to v7.0.0-beta.52 (babel/babel-eslint#650)
rubennorte Jul 6, 2018
a179178
Merge pull request babel/babel-eslint#645 from rubennorte/support-new…
rubennorte Jul 6, 2018
a1f9458
9.0.0-beta.2
existentialism Jul 6, 2018
e675cd7
chore - fixing eslint-scope to a safe version; resolves babel/babel-e…
neverendingqs Jul 12, 2018
098ab73
update lock
hzoo Jul 12, 2018
35c49dd
9.0.0-beta.3
hzoo Jul 12, 2018
6ab458b
build(deps): upgrade @babel/* to 7.0.0-rc.2 (babel/babel-eslint#668)
viztor Aug 21, 2018
57c825e
Bump some devDeps
existentialism Aug 21, 2018
2a1c76e
Add logical assignment plugin (babel/babel-eslint#674)
borela Aug 23, 2018
c456fdd
Docs: Make the default parserOptions more explicit (babel/babel-eslin…
edmorley Aug 23, 2018
b6a7601
Bump to babel@7.0.0 🎉 (babel/babel-eslint#676)
existentialism Aug 27, 2018
dae75e1
9.0.0
hzoo Aug 27, 2018
2ea80c8
Merge pull request babel/eslint-plugin-babel#157 from amilajack/patch-1
existentialism Sep 4, 2018
b3ce66b
Merge pull request babel/eslint-plugin-babel#158 from lehni/fix/optio…
existentialism Sep 5, 2018
d03a00c
mocha@5.2.0 (babel/eslint-plugin-babel#159)
existentialism Sep 5, 2018
f70f68e
Update readme for opt call support in no-unused-expressions [skip ci]…
existentialism Sep 5, 2018
d86c6dd
Add valid-typeof rule with support for BigInt (babel/eslint-plugin-ba…
existentialism Sep 6, 2018
7c97b55
5.2.0
existentialism Sep 6, 2018
990ea0f
Drop old monkeypatching behavior (babel/babel-eslint#689)
existentialism Sep 25, 2018
78a2f60
Test eslint5, update peerDep (babel/babel-eslint#690)
hzoo Sep 25, 2018
22fa8e6
Treat type alias declarationlike function declaration (babel/babel-es…
joa Sep 25, 2018
742aa41
test value should be switched
hzoo Sep 25, 2018
9adb82e
10.0.0
hzoo Sep 25, 2018
e8c0f52
Fix missing valid-typeof export (babel/eslint-plugin-babel#165)
existentialism Sep 27, 2018
2358ed1
5.2.1
existentialism Sep 27, 2018
e56b342
Revert babel/babel-eslint#584 (babel/babel-eslint#697)
hzoo Sep 27, 2018
40d9bb3
10.0.1
hzoo Sep 27, 2018
22a1681
Merge pull request babel/babel-eslint#706 from kaicataldo/es6
kaicataldo Oct 30, 2018
de38cfc
fix index path typo (babel/babel-eslint#709)
emersonlaurentino Nov 7, 2018
c209725
Test Node v11 in CI (babel/babel-eslint#712)
kaicataldo Nov 8, 2018
eccbdab
Camelcase - support for optional chaining (babel/eslint-plugin-babel#…
villesau Nov 8, 2018
ebe197f
5.3.0
existentialism Nov 15, 2018
6285cb9
Add no-deprecated-clone rule
nicolo-ribaudo Nov 18, 2018
1f7197e
Extract isFromBabelTypes helper
nicolo-ribaudo Nov 20, 2018
2be5411
Add no-undefined-identifier rule
nicolo-ribaudo Nov 20, 2018
c59db52
Extract isBabelPluginFactory helper
nicolo-ribaudo Nov 20, 2018
110191d
Add plugin-name rule
nicolo-ribaudo Nov 20, 2018
69cc2c3
Docs
nicolo-ribaudo Nov 20, 2018
b615efb
Export rules
nicolo-ribaudo Nov 20, 2018
ed1cee3
Update package.json#main
nicolo-ribaudo Dec 17, 2018
e146ae7
Create Test workflow
nicolo-ribaudo Dec 17, 2018
ef29bf5
Rename to @babel/eslint-plugin-developement. Fixes babel/eslint-plugi…
nicolo-ribaudo Dec 18, 2018
76ece45
Add publishConfig to package.json
nicolo-ribaudo Dec 18, 2018
cc2d738
Update readme with the new package name
nicolo-ribaudo Dec 18, 2018
1bd82dd
1.0.0
nicolo-ribaudo Dec 18, 2018
cc78743
Add .npmignore
nicolo-ribaudo Dec 18, 2018
31c3de6
Typo :facepalm:
nicolo-ribaudo Dec 18, 2018
f5e482d
Add repo url
nicolo-ribaudo Dec 18, 2018
f7c3d07
1.0.1
nicolo-ribaudo Dec 18, 2018
bede064
Major: remove parseNoPatch (babel/babel-eslint#733)
kaicataldo Jan 7, 2019
47de99e
Use @babel/core#parse (babel/babel-eslint#711)
kaicataldo Jan 10, 2019
2b9ee42
Remove monkeypatching dead code (babel/babel-eslint#737)
kaicataldo Jan 10, 2019
bbce2b3
Remove comment attachment (babel/babel-eslint#736)
kaicataldo Jan 11, 2019
0581ce1
Add code of conduct (same as Babel) (babel/babel-eslint#740) [skip ci]
kaicataldo Jan 11, 2019
37cf65c
Add requireConfigFile option (babel/babel-eslint#743)
kaicataldo Jan 21, 2019
2d64900
11.0.0-beta.0
hzoo Jan 21, 2019
025fff7
Docs: Add glob-based configuration example (babel/babel-eslint#748)
kaicataldo Jan 29, 2019
3fcfc90
Fix to convert hash token. (babel/babel-eslint#753)
ota-meshi Feb 14, 2019
f9836ca
fix typo in README.md (babel/babel-eslint#762)
paramaggarwal Apr 4, 2019
ec18c30
Bump js-yaml from 3.12.0 to 3.13.1 (babel/eslint-plugin-babel-plugin#2)
dependabot[bot] Jul 8, 2019
7061d96
Bump lodash from 4.17.4 to 4.17.14 (babel/eslint-plugin-babel#181)
dependabot[bot] Jul 13, 2019
6748797
Bump lodash from 4.17.5 to 4.17.14 (babel/babel-eslint#779)
dependabot[bot] Jul 15, 2019
8635063
Bump js-yaml from 3.12.0 to 3.13.1 (babel/babel-eslint#780)
dependabot[bot] Jul 15, 2019
030fddb
chore: Update deps and fix tests for new mocha and eslint (babel/babe…
danez Jul 15, 2019
693fa1a
Bump js-yaml from 3.11.0 to 3.13.1 (babel/eslint-plugin-babel#177)
dependabot[bot] Jul 15, 2019
f3e2752
Support private properties in no-invalid-this (babel/eslint-plugin-ba…
fergald Aug 24, 2019
3243af3
First commit
nicolo-ribaudo Nov 18, 2018
6b3e9e3
Bump eslint-utils from 1.4.0 to 1.4.2 (babel/babel-eslint#796)
dependabot[bot] Aug 27, 2019
3396fdd
Breaking: make AST match Espree 6 (babel/babel-eslint#785)
golopot Nov 1, 2019
5b35722
Bump semver@6 (babel/babel-eslint#802)
existentialism Nov 1, 2019
c442efa
Initial
jquense Jun 19, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint/babel-eslint-config-internal/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
4 changes: 4 additions & 0 deletions eslint/babel-eslint-config-internal/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## eslint-config-babel
---

ESLint config for the Babel codebase (originally taken from `eslint-config-kittens`)
48 changes: 48 additions & 0 deletions eslint/babel-eslint-config-internal/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module.exports = {
parser: "babel-eslint",
extends: "eslint:recommended",
plugins: ["flowtype"],
parserOptions: {
ecmaVersion: 2017,
sourceType: "module"
},
rules: {
"camelcase": "off",
"consistent-return": "off",
"curly": ["error", "multi-line"],
"linebreak-style": ["error", "unix"],
"max-len": ["error", 110, 2],
"new-cap": "off",
"no-case-declarations": "error",
"no-cond-assign": "off",
"no-confusing-arrow": "error",
"no-console": "off",
"no-constant-condition": "off",
"no-empty": "off",
"no-fallthrough": "off",
"no-inner-declarations": "off",
"no-labels": "off",
"no-loop-func": "off",
"no-process-exit": "off",
"no-return-assign": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"no-unreachable": "off",
"no-use-before-define": "off",
"no-var": "error",
"prefer-const": "error",
"strict": "off",
"flowtype/define-flow-type": "warn",
"flowtype/use-flow-type": "warn",
},
globals: {
// Flow
Iterator: true,
$Keys: true
},
env: {
node: true,
es6: true,
browser: true
}
};
20 changes: 20 additions & 0 deletions eslint/babel-eslint-config-internal/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "eslint-config-babel",
"version": "9.0.0",
"description": "ESLint config for babel",
"author": "Sebastian McKenzie <sebmck@gmail.com>",
"homepage": "https://babeljs.io/",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/babel/eslint-config-babel"
},
"main": "index.js",
"peerDependencies": {
"babel-eslint": "^10.0.0 || ^11.0.0-0",
"eslint-plugin-flowtype": "^3.0.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
}
}
2 changes: 2 additions & 0 deletions eslint/babel-eslint-parser/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
!.*.js
test/fixtures
26 changes: 26 additions & 0 deletions eslint/babel-eslint-parser/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"use strict";

module.exports = {
root: true,
extends: "babel",
plugins: ["prettier"],
rules: {
"max-len": "off",
strict: "error",
"prettier/prettier": "error",
},
env: {
node: true,
},
parserOptions: {
sourceType: "script",
},
overrides: [
{
files: ["test/**/*"],
env: {
mocha: true,
},
},
],
};
2 changes: 2 additions & 0 deletions eslint/babel-eslint-parser/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
1 change: 1 addition & 0 deletions eslint/babel-eslint-parser/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock = false
1 change: 1 addition & 0 deletions eslint/babel-eslint-parser/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json
3 changes: 3 additions & 0 deletions eslint/babel-eslint-parser/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "es5"
}
16 changes: 16 additions & 0 deletions eslint/babel-eslint-parser/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
sudo: false
language: node_js
node_js:
- "12"
- "10"
- "8"

matrix:
fast_finish: true
include:
- node_js: "node"
env: LINT=true

script:
- 'if [ -n "${LINT-}" ]; then npm run lint ; fi'
- 'if [ -z "${LINT-}" ]; then npm test ; fi'
3 changes: 3 additions & 0 deletions eslint/babel-eslint-parser/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Code of Conduct

This project shares the same code of conduct as [Babel](https://github.com/babel/babel), which can be found [here](https://github.com/babel/babel/blob/master/CODE_OF_CONDUCT.md).
11 changes: 11 additions & 0 deletions eslint/babel-eslint-parser/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Contributing

Thanks for contributing!

If you're about to report an issue - please first check if it's already been reported in the [issues page](https://github.com/babel/babel-eslint/issues).

Also check to see if the latest versions of eslint/babel-eslint still produce the issue.

Also check out the [Known Issues](https://github.com/babel/babel-eslint#known-issues) section of the README.

If you are having issues with JSX you might want to check out eslint-plugin-react. If there's an issue with new experimental syntax you might need to report that in eslint-plugin-babel instead.
22 changes: 22 additions & 0 deletions eslint/babel-eslint-parser/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2014-2016 Sebastian McKenzie <sebmck@gmail.com>

MIT License

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7 changes: 7 additions & 0 deletions eslint/babel-eslint-parser/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.PHONY: publish-patch

publish-patch:
./node_modules/.bin/mocha
npm version patch
npm publish
git push --follow-tags
128 changes: 128 additions & 0 deletions eslint/babel-eslint-parser/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# babel-eslint [![npm](https://img.shields.io/npm/v/babel-eslint.svg)](https://www.npmjs.com/package/babel-eslint) [![travis](https://img.shields.io/travis/babel/babel-eslint/master.svg)](https://travis-ci.org/babel/babel-eslint) [![npm-downloads](https://img.shields.io/npm/dm/babel-eslint.svg)](https://www.npmjs.com/package/babel-eslint)

**babel-eslint** allows you to lint **ALL** valid Babel code with the fantastic
[ESLint](https://github.com/eslint/eslint).

## Breaking change in v11.x.x

As of the v11.x.x release, babel-eslint now requires Babel as a peer dependency and expects a valid [Babel configuration file](https://babeljs.io/docs/en/configuration) to exist. This ensures that the same Babel configuration is used during both linting and compilation.

## When should I use babel-eslint?

ESLint's default parser and core rules [only support the latest final ECMAScript standard](https://github.com/eslint/eslint/blob/a675c89573836adaf108a932696b061946abf1e6/README.md#what-about-experimental-features) and do not support experimental (such as new features) and non-standard (such as Flow or TypeScript types) syntax provided by Babel. babel-eslint is a parser that allows ESLint to run on source code that is transformed by Babel.

**Note:** You only need to use babel-eslint if you are using Babel to transform your code. If this is not the case, please use the relevant parser for your chosen flavor of ECMAScript (note that the default parser supports all non-experimental syntax as well as JSX).

## How does it work?

ESLint allows for the use of [custom parsers](https://eslint.org/docs/developer-guide/working-with-custom-parsers). When using this plugin, your code is parsed by Babel's parser (using the configuration specified in your [Babel configuration file](https://babeljs.io/docs/en/configuration)) and the resulting AST is
transformed into an [ESTree](https://github.com/estree/estree)-compliant structure that ESLint can understand. All location info such as line numbers,
columns is also retained so you can track down errors with ease.

**Note:** ESLint's core rules do not support experimental syntax and may therefore not work as expected when using babel-eslint. Please use the companion [`eslint-plugin-babel`](https://github.com/babel/eslint-plugin-babel) plugin for core rules that you have issues with.

## Usage

### Installation

```sh
$ npm install eslint babel-eslint --save-dev
# or
$ yarn add eslint babel-eslint -D
```

**Note:** babel-eslint requires `babel/core@>=7.2.0` and a valid Babel configuration file to run. If you do not have this already set up, please see the [Babel Usage Guide](https://babeljs.io/docs/en/usage).

### Setup

To use babel-eslint, `"babel-eslint"` must be specified as the `parser` in your ESLint configuration file (see [here](https://eslint.org/docs/user-guide/configuring#specifying-parser) for more detailed information).

**.eslintrc.js**

```js
module.exports = {
parser: "babel-eslint",
};
```

With the parser set, your configuration can be configured as described in the [Configuring ESLint](https://eslint.org/docs/user-guide/configuring) documentation.

**Note:** The `parserOptions` described in the [official documentation](https://eslint.org/docs/user-guide/configuring#specifying-parser-options) are for the default parser and are not necessarily supported by babel-eslint. Please see the section directly below for supported `parserOptions`.

### Additional parser configuration

Additional configuration options can be set in your ESLint configuration under the `parserOptions` key. Please note that the `ecmaFeatures` config property may still be required for ESLint to work properly with features not in ECMAScript 5 by default.

- `requireConfigFile` (default `true`) can be set to `false` to allow babel-eslint to run on files that do not have a Babel configuration associated with them. This can be useful for linting files that are not transformed by Babel (such as tooling configuration files), though we recommend using the default parser via [glob-based configuration](https://eslint.org/docs/user-guide/configuring#configuration-based-on-glob-patterns). Note: babel-eslint will not parse any experimental syntax when no configuration file is found.
- `sourceType` can be set to `"module"`(default) or `"script"` if your code isn't using ECMAScript modules.
- `allowImportExportEverywhere` (default `false`) can be set to `true` to allow import and export declarations to appear anywhere a statement is allowed if your build environment supports that. Otherwise import and export declarations can only appear at a program's top level.
- `ecmaFeatures.globalReturn` (default `false`) allow return statements in the global scope when used with `sourceType: "script"`.
- `babelOptions` passes through Babel's configuration [loading](https://babeljs.io/docs/en/options#config-loading-options) and [merging](https://babeljs.io/docs/en/options#config-merging-options) options (for instance, in case of a monorepo). When not defined, babel-eslint will use Babel's default configuration file resolution logic.

**.eslintrc.js**

```js
module.exports = {
parser: "babel-eslint",
parserOptions: {
sourceType: "module",
allowImportExportEverywhere: false,
ecmaFeatures: {
globalReturn: false,
},
babelOptions: {
configFile: "path/to/config.js",
},
},
};
```

**.eslintrc.js using glob-based configuration**

This configuration would use the default parser for all files except for those found by the `"files/transformed/by/babel/*.js"` glob.

```js
module.exports = {
rules: {
indent: "error"
},
overrides: [
{
files: ["files/transformed/by/babel/*.js"],
parser: "babel-eslint",
}
]
};
```

### Run

```sh
$ ./node_modules/.bin/eslint yourfile.js
```

## Known issues

Flow:

> Check out [eslint-plugin-flowtype](https://github.com/gajus/eslint-plugin-flowtype): An `eslint` plugin that makes flow type annotations global variables and marks declarations as used. Solves the problem of false positives with `no-undef` and `no-unused-vars`.

- `no-undef` for global flow types: `ReactElement`, `ReactClass` [#130](https://github.com/babel/babel-eslint/issues/130#issuecomment-111215076)
- Workaround: define types as globals in `.eslintrc` or define types and import them `import type ReactElement from './types'`
- `no-unused-vars/no-undef` with Flow declarations (`declare module A {}`) [#132](https://github.com/babel/babel-eslint/issues/132#issuecomment-112815926)

Modules/strict mode

- `no-unused-vars: ["error", { vars: local }]` [#136](https://github.com/babel/babel-eslint/issues/136)

Please check out [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) for React/JSX issues.

- `no-unused-vars` with jsx

Please check out [eslint-plugin-babel](https://github.com/babel/eslint-plugin-babel) for other issues.

## Questions and support

If you have an issue, please first check if it can be reproduced with the default parser and with the latest versions of `eslint` and `babel-eslint`. If it is not reproducible with the default parser, it is most likely an issue with babel-eslint.

For questions and support please visit the [`#discussion`](https://babeljs.slack.com/messages/discussion/) Babel Slack channel (sign up [here](https://github.com/babel/notes/issues/38)) or the ESLint [Gitter](https://gitter.im/eslint/eslint).
Loading