Giter VIP home page Giter VIP logo

Comments (8)

dbaeumer avatar dbaeumer commented on September 18, 2024

@seanmcbreen: what do we usually put into the readme. There isn't much to say.

from vscode-eslint.

m-sanders avatar m-sanders commented on September 18, 2024

I would like to know how about how to use "eslint.options"? I am really not having much luck with getting .eslintignore files to work.

I have tried placing it in the root directory, this doesn't appear to work.

I have tried adding the .eslintignore file using "eslint.options":

    "eslint.options": {
        "ignorePath": ".eslintignore" 
    }

And also with an absolute path:

    "eslint.options": {
        "ignorePath": "/path/to/this/file/.eslintignore" 
    }

I have also tried adding the patterns with the "ignorePattern" option:

    "eslint.options": {
        "ignorePattern": "somefile.js"
    }

All without luck! All on OS X.

I am making the assumption here that this is not a bug and rather its my miss-understanding of the implementation...

from vscode-eslint.

lean avatar lean commented on September 18, 2024

I am without luck too. I am on Win 10 and can not find the mode to run the linter.
I have this in my config file:

"eslint.enable": true,
"javascript.validate.enable": false

whats wrong ?

from vscode-eslint.

jwulf avatar jwulf commented on September 18, 2024

@dbaeumer: something like

"Thanks for installing the fabulous eslinter extension. Here's how you use it:"

from vscode-eslint.

dbaeumer avatar dbaeumer commented on September 18, 2024

@lean: to get a decent eslint validation you need to have a .eslintrc file. You can generate one using the eslint cli and run eslint --init.

I also updated the readme to explain the option bag and to help with the getting started. See https://marketplace.visualstudio.com/items/dbaeumer.vscode-eslint

from vscode-eslint.

egamma avatar egamma commented on September 18, 2024

@dbaeumer would it make sense to provide a command that creates a default .eslintrc file?

from vscode-eslint.

dbaeumer avatar dbaeumer commented on September 18, 2024

@m-sanders: I create a separate issue for the ignore file since it is a bug not covered by the readme update. See #6

from vscode-eslint.

dbaeumer avatar dbaeumer commented on September 18, 2024

@egamma yes, opened #7

from vscode-eslint.

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.