evgenyorekhov / lints Goto Github PK
View Code? Open in Web Editor NEWLint all your JavaScript, CSS, HTML, Markdown and Dockerfiles with a single command
Home Page: https://www.npmjs.com/package/lints
License: MIT License
Lint all your JavaScript, CSS, HTML, Markdown and Dockerfiles with a single command
Home Page: https://www.npmjs.com/package/lints
License: MIT License
lints uses the linter.verify()
method from the ESLint Node.js API which does not support config evaluation.
Therefore some options do not work, "extends" being an example.
Related issue in the ESLint repo: eslint/eslint#7108
parcel-bundler cache
This will allow to remove the rcFile
properties from default.lints.json
and .lints.json
.
Add HTML_CodeSniffer when it becomes available on npm.
Possible candidates:
npm install lints -g
lints
{ Error: Could not find "stylelint-config-standard". Do you need a `configBasedir`?
at exports.default (/usr/local/lib/node_modules/lints/node_modules/stylelint/dist/utils/configurationError.js:8:13)
at exports.default (/usr/local/lib/node_modules/lints/node_modules/stylelint/dist/utils/getModulePath.js:15:36)
at loadExtendedConfig (/usr/local/lib/node_modules/lints/node_modules/stylelint/dist/augmentConfig.js:186:45)
at /usr/local/lib/node_modules/lints/node_modules/stylelint/dist/augmentConfig.js:173:14 code: 78 }
Looks like https://github.com/tensor5/JSLinter is abandoned. Need to find an alternative.
Candidates:
The names of the linters should be present along with their warnings.
I expected that
function throwError(err) {
throw err;
}
as in here src/linters/stylelint.js#L8-L10, would throw the error and the process would immediately exit with status code 1, but it looks like some promise swallows that throw.
I added a temporary workaround in 0b4a736, but I want to understand what is going on and fix it permanently.
I think it should be replaced with Mocha.
Unhandled rejection TypeError: Cannot destructure property `messages` of 'undefined' or 'null'.
at lintAndAdaptWarnings (node_modules/lints/src/linters/eslint.js:28:29)
Looks like this happens when linting JSX using the default ESLint parser.
test.html:
<div></div>
Expected:
test.html (w3cjs)
line 0 column 0
The character encoding was not declared. Proceeding using “windows-1252”. (error)
Actual:
test.html (w3cjs)
line undefined column undefined
The character encoding was not declared. Proceeding using “windows-1252”. (error)
Possible candidates:
It would be nice to have Docker image with this and based on node:alpine image. This can speedup CI linting step.
Example output:
src/css/style.css (CSSLint)
line undefined column undefined
Too many font-size declarations (10), abstraction needed. (font-sizes)
Such as "coverage/**".
Line and column numbers should be retrieved from a .startLocation
property
https://github.com/twbs/bootlint#api-documentation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.