Example '.cflintrc` actually doesn't run anything.
See original GitHub issueThe example .cflintrc
will not return you any errors even if you do have errors in your cfml as it has an empty structure in the includes
key.
This example (cleaned so no more default errors are shown):
{
"rule" : [ ],
"excludes" : [ ],
"includes" : [ {
} ],
"inheritParent" : false,
"parameters" : {}
}
Has an empty structure in the includes. So without knowing the full documentation, this is saying “Do not include any rule” it seems. So if I run this on a very error prone CFML page I get no problems (silently).
Removing the {}
it now runs all the rules.
So this either means that we need to have some error when there is an empty structure such as:
- No rules to run have been defined
Or it needs to be removed from the example in the readme?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
eslintrc doesn't override defaults · Issue #498 · jaredpalmer/tsdx
Currently, settings from the package.json.eslint property will override any configurations during linting, but not the rules from .eslintrc .
Read more >ESLint not working in VS Code? - Stack Overflow
If ESLint is running in the terminal but not inside VSCode, it is probably because the extension is unable to detect both the...
Read more >Configuration Files - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Getting Started with ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Find and fix problems in your JavaScript code - ESLint ...
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
An
init
would be very useful. The NPM wrapper has this already. I also implemented a couple commands in my VS Code extension that do that.Yeah, I haven’t used this version yet but will be doing so shortly
https://www.forgebox.io/view/commandbox-cflint
Mark Drew