Comments (5)
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.
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.
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.
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.
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)
- [require-description] Add rule to require minimum description length HOT 3
- `disable-enable-pair` option allowWholeFile should be the default HOT 8
- `require-description` shouldn't require a description for `eslint-enable` HOT 2
- Support ESLint 8.x
- Merge this with eslint-plugin-canonical HOT 2
- allow no-restricted-disable to display customize message HOT 2
- Allow requiring collapsed blocks for directive comments HOT 1
- Quickfix of `eslint-comments/no-unused-disable` should not leave empty lines HOT 3
- should not auto fix when configured to warn HOT 1
- rule should not lint itself HOT 1
- [eslint-comments/no-use]: Allow "eslint-disable" only for selected rules (feature request) HOT 5
- Invitation to move to official `eslint-community` org HOT 12
- [eslint-comments/no-use] Is this rule working? HOT 1
- doesn't work on svelte html comments with `eslint-plugin-svelte` HOT 1
- Support `eslint-plugin-vue`'s disable comments HOT 2
- `eslint-comments/require-description` should allow ignoring particular rules HOT 2
- `eslint-comments/no-unused-disable` false positive when disabling line with `eslint-comments/no-unused-disable` HOT 5
- no-restricted-disable rule isn't working with require-description rule HOT 2
- `no-unused-disable` doesn't work with flat config HOT 3
- no-unused-disable is redundant HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-eslint-comments.