Coder Social home page Coder Social logo

aolenevme / lint-fs Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 718 KB

Lint File System with Regular Expressions! ๐Ÿ“

Home Page: https://www.npmjs.com/package/lint-fs

License: GNU General Public License v3.0

JavaScript 100.00%
filesystem lint lint-fs linter

lint-fs's Introduction

lint-fs's People

Contributors

aolenevme avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lint-fs's Issues

Fail on Unused Regular Expressions

Description

Currently, the program fails only if it meets an incorrect file path.

The program must fail if any of the regular expressions are unused.

HowTo

The easiest way is to use Map<string, boolean>.

[CHORE] Automate Code Style

Describe the chore
Even though the previous eslint configuration is already pretty heavy, there is space for more changes.

What can be done?

  1. Enable most disabled rules from eslint-canonical.
  2. Add missing rules from golang-like eslint config.
  3. Prevent usage of excessive data types (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.

[FEATURE] Hide "Correct Files" section in the output

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:

  • Hide "Correct Files" in the output by default
  • Add a debug flag to display this section when needed

Verbose Mode

Description

Show linted files only in verbose mode. Always show result.

HowTo

Add --verbose CLI options

[CHORE] Improve Infrastructer

Describe the chore

  1. Add .nvmrc โ€” and update engines if applicable.
  2. Update all libraries.
  3. Add dependabot to automate library updates.

Build for the NodeJS

Description

There aren`t reasons to build a binary for the NodeJS users. They can download transpiled JS instead of compiled binary.

HowTo

Use babel or find a different way. Transpile code to the last maintained NodeJS version.

Refactoring

Description

The project was unmaintained for pretty long. It is time to fix it!

HowTo

  • Write down CODESTYLE.md
  • Adapt the code base to the CODESTYLE.md rules.
  • Update README.md on how to install lint-fs right now.
  • Use npx and npm -g or local installation to run the linter.
  • Migrate to canonical.
  • Update dependencies and engines. Write down engines in package.json.
  • 100% unit tests` coverage. Use c8 for the coverage.
  • 100% mutation tests` coverage.

Badges

Description

Add badges to the README.md:

  1. Build Status
  2. Version
  3. License
  4. Last commit
  5. Unit coverage
  6. Stryker coverage
  7. Linter
  8. Code quality
  9. Status Checks

HowTo

  1. Adjust GitHub Actions.
  2. Generate badges via badges/shields.
  3. Organise badges like in prettier.

Version

Description

Add a version of the linter on top of the stdout.

HowTo

Read package.json

Automate Releases

Description

The following things should be automated:

  1. git tag creation
  2. package.json and package-lock.json version updates.
  3. npm publish

HowTo

Find out a good GitHub Action - or write scripts on your own!

Status Checks

Description

Add status checks to github actions.

HowTo

Create github actions which run on every merge request to the master:

  1. Run unit tests.
  2. Run mutatation tests.
  3. Run linters.

Sponsorship

Description

Make an RnD on how to automate sponsorship.

HowTo

  1. Inner GitHub features to make both the repository and the whole account profitable.

Replace yaml with json

Description

Replace lint-fs.yaml with lint-fs.json to remove usage of an unsupported js-yaml.

HowTo

  1. Delete js-yaml.
  2. Use nodejs core library to read and parse lint-fs.json.

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.