Coder Social home page Coder Social logo

Comments (5)

mysticatea avatar mysticatea commented on May 20, 2024

Thank you for the report!

I have not realized it since I have not upgraded ESLint to 4.0 yet by peerDependencies problems.
I'll fix it.

from eslint-plugin-eslint-comments.

jscharett avatar jscharett commented on May 20, 2024

Seems that rules no-use and no-unlimited-disable are throwing errors when running. Getting "Warning: Invalid location Use --force to continue" in the console when those rules are enabled. I'm using eslint 4.0 with grunt-eslint.

from eslint-plugin-eslint-comments.

mysticatea avatar mysticatea commented on May 20, 2024

It's not a problem of this plugin. ESLint should work with the location and ESLint does not have --force option.

from eslint-plugin-eslint-comments.

jscharett avatar jscharett commented on May 20, 2024

Looks like its an incompatability between this plugin and the eslint-plugin-html. In your utils.toForceLocation method, you return a column value of -1 and the html plugin is checking for a 'valid' column value in its TransformableString.locationToIndex method. Whats the reason for returning a column value of -1?

from eslint-plugin-eslint-comments.

mysticatea avatar mysticatea commented on May 20, 2024

Because it's necessary. The reports of no-unlimited-disable can exist on the line of //eslint-disable-line since the purpose of the rule is that it prevents //eslint-disable-line. In that case, the reports don't work since the line has been disabled. So the rule needs to avoid the disabling of directive comments.
ESLint allows the negative locations.

from eslint-plugin-eslint-comments.

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.