GithubHelp home page GithubHelp logo

saiichihashimoto / lint-my-app Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 3.22 MB

So you can write your app instead of lint it!

Home Page: https://saiichihashimoto.github.io/lint-my-app/

License: MIT License

JavaScript 100.00%
check code eslint fix fixjson format imagemin lint lint-staged optimize quality sort staged stylelint validate

lint-my-app's Introduction

current version Build Status Coverage Status Mutation testing badge semantic-release Commitizen friendly

So you can write your app instead of lint it!

lint-staged keeps the ๐Ÿ’ฉ out of your app. I got tired of configuring husky and lint-staged to get started. lint-my-app sets sane linting defaults so you can write your app instead of lint it!

Install

npm install --save-dev lint-my-app husky
// .huskyrc.js
module.exports = require('lint-my-app/husky');
git commit -m 'Keep calm and lint'

Features

  • Fixes files using lint-staged on commit.
  • Lints your entire codebase on push.
  • All batteries included (except husky configuration).
  • Uses your personal eslint and stylelint configs
  • Respects .gitignore

Commands

For the most part, lint-my-app/husky can be given to husky and you're done! But the internal commands are open to you!

lint-my-app lint

This lints your entire app.

lint-my-app fix

This fixes your entire app.

lint-my-app staged

This fixes your git staged files.

lint-my-app's People

Contributors

greenkeeper[bot] avatar probot-auto-merge[bot] avatar saiichihashimoto avatar snyk-bot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

lint-my-app's Issues

eslint/stylelint only when files exist

The globbing from the tools are kind of shaky when it comes to dotfiles and it's weird to see the tasks run even when there's no files.

  • Don't forget their .*ignore files.

End to End test/Integration test

I'm relying on too many other packages (ie lint-staged) for their changes to keep breaking me.

  • Success case exit 0
  • Failure case exit 1

Use minimal configs by default

  • Function without an eslint or stylelint config
  • Use a least restrictive config for each, purely for syntax correctness

Run on dotfiles properly

eslint doesn't actually run on ".*" files currently without the pattern fixing. Need to do that, and check that all other runners also handle that properly

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.