aolenevme / lint-fs Goto Github PK
View Code? Open in Web Editor NEWLint File System with Regular Expressions! ๐
Home Page: https://www.npmjs.com/package/lint-fs
License: GNU General Public License v3.0
Lint File System with Regular Expressions! ๐
Home Page: https://www.npmjs.com/package/lint-fs
License: GNU General Public License v3.0
Currently, the program fails only if it meets an incorrect file path.
The program must fail if any of the regular expressions are unused.
The easiest way is to use Map<string, boolean>
.
Describe the chore
Even though the previous eslint
configuration is already pretty heavy, there is space for more changes.
What can be done?
Date
, Set
, Map
, WeakMap
, WeakSet
) to use more specific data types such as Object
and Array
.Additional context
These changes might be very beneficial. They will commit the project`s code style and force the local mutation principle.
In the output we have several sections: "Incorrect Files" and "Correct Files". First one is useful and necessary, but second one is redundant. I have 10k+ files in my project, and the output looks overloaded.
Suggestions:
Show linted files only in verbose mode. Always show result.
Add --verbose
CLI options
Describe the chore
.nvmrc
โ and update engines if applicable.dependabot
to automate library updates.There aren`t reasons to build a binary for the NodeJS users. They can download transpiled JS instead of compiled binary.
Use babel or find a different way. Transpile code to the last maintained NodeJS version.
Write missing unit tests.
CHANGELOG.md
.The project was unmaintained for pretty long. It is time to fix it!
CODESTYLE.md
CODESTYLE.md
rules.npx
and npm -g
or local installation to run the linter.Add badges to the README.md:
Now one has to call https://github.com/aolenevme/lint-fs/blob/main/npm/run.js to lint a project. Refactor to npx.
Just integrate! :))
Add a version of the linter on top of the stdout.
Read package.json
The following things should be automated:
git tag
creationpackage.json
and package-lock.json
version updates.npm publish
Find out a good GitHub Action - or write scripts on your own!
Add status checks to github actions.
Create github actions which run on every merge request to the master:
Make an RnD on how to automate sponsorship.
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.