eslint needs to be configured to allow es6 code in examples

I changed the code for carousel 2 to use es6 class and now eslint is giving the following error:

/home/travis/build/w3c/aria-practices/examples/carousel/js/carousel-tablist.js
230  8:1  error  Parsing error: The keyword 'class' is reserved

URL:
https://travis-ci.com/w3c/aria-practices/jobs/249986911

It seems we need to update eslint configuration to allow for es6 code.

Jon


Jon Gunderson, Ph.D., CPWA
Coordinator of Accessible IT Group
University of Illinois at Urbana/Champaign
1207 S. Oak Street
Champaign, IL 61820

www: https://go.illinois.edu/jongund

Received on Monday, 28 October 2019 13:57:32 UTC