Giter Site home page Giter Site logo

Lint es6 code in demo about archive-website HOT 7 CLOSED

eslint avatar eslint commented on June 13, 2024
Lint es6 code in demo

from archive-website.

Comments (7)

nzakas avatar nzakas commented on June 13, 2024

es6 environment doesn't work inline due to eslint/eslint#2705

Are there other environments you'd like added?

from archive-website.

Semigradsky avatar Semigradsky commented on June 13, 2024

I would like to be able to lint es6 code. It seems that es6 environment should allow it.

In the list rules there are rules specific to es6:
image
But I see Unexpected token const error

from archive-website.

nzakas avatar nzakas commented on June 13, 2024

Please see the issue I linked in my previous comment for discussion of why it doesn't work.

from archive-website.

ilyavolodin avatar ilyavolodin commented on June 13, 2024

Environments in the demo are not supplied inline, so es6 should work. However, I did try to get it to work some time ago, and I couldn't figure it out. I'll give it a try again at some point (probably when we'll be ready to merge in Espree demo).

from archive-website.

xjamundx avatar xjamundx commented on June 13, 2024

Yeah I'd love to help get this working. Maybe I'll work on this and the espree demo thing again.

from archive-website.

xjamundx avatar xjamundx commented on June 13, 2024

I think I figured it out...will issue a PR tomorrow

from archive-website.

mgol avatar mgol commented on June 13, 2024

It still doesn't work for me: #137.

from archive-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.