Git Product home page Git Product logo

monaco-playground's People

Contributors

dependabot[bot] avatar spahnke avatar

Stargazers

 avatar

monaco-playground's Issues

Support for typescript-eslint

Hi,

I was looking around for a way to get eslint into Monaco and found your very cool project.

I got the code working with my local repo, and now I would like it to lint Typescript in Monaco. I'm wondering how I might go about doing that.

I noticed in your playground editor, if I try to provide Typescript like:

const SOME_MAP: { [key: string]: string } = {
	"key": "value"
}

I get the error Parsing error: Unexpected token : because eslint doesn't know that we're linting Typescript. Generally in this case I would add "parser": "@typescript-eslint/parser" to my .eslintrc.json but I'm not sure how to make that work with the sort of webpack-ing you are doing with eslint-worker.ts and eslint.js. Any idea how to include the typescript-eslint/parser?

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.