Giter Club home page Giter Club logo

eslint-rule-finder's Introduction

eslint-find-new-rules

Use this for your own ESLint shareable configuration to identify built-in ESLint rules that you're not explicitly configuring.

Build Status Code Coverage version downloads MIT License PRs Welcome All Contributors

Installation

Simply install locally as a development dependency to your project's package:

npm install --save-dev eslint-find-new-rules

Usage

The intended usage is as an npm script:

{
  ...
  "scripts": {
    "find-new-rules": "eslint-find-new-rules path/to/eslint-config"
  }
  ...
}

Then run it with: $ npm run find-new-rules -s (the -s is to silence npm output).

Specify a file

This is really handy in an actual config module (like mine) where you could also do:

eslint-find-new-rules ./index.js

This is resolved relative to the process.cwd() which, in the context of npm scripts is always the location of your package.json.

You may specify any config format supported by ESLint.

Absolute Path

You can also provide an absolute path:

eslint-find-new-rules ~/Developer/eslint-config-kentcdodds/index.js

Please note that any tested ESLint config file must reside below your project's root.

Default to main

It will also default to the main in your package.json, so you can omit the argument altogether:

eslint-find-new-rules

As a required module

var getRuleFinder = require('./eslint-find-new-rules')
var ruleFinder = getRuleFinder('path/to/eslint-config')

// default to the `main` in your `package.json`
// var ruleFinder = getRuleFinder()

// get all the current, plugin, available and unused rules
// without referring the extended files or documentation

ruleFinder.getCurrentRules()

ruleFinder.getPluginRules()

ruleFinder.getAllAvailableRules()

ruleFinder.getUnusedRules()

Contributors

Thanks goes to these wonderful people (emoji key):

Kent C. Dodds
Kent C. Dodds

💻 📖 ⚠️ 👀
Michał Gołębiowski
Michał Gołębiowski

💻
Sarbbottam Bandyopadhyay
Sarbbottam Bandyopadhyay

⚠️ 👀
Andreas Windt
Andreas Windt

💻 📖 ⚠️
Jeroen Engels
Jeroen Engels

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Special thanks to @mgol who created the original script.

LICENSE

MIT

eslint-rule-finder's People

Contributors

jfmengels avatar sarbbottam avatar ta2edchimp avatar

Watchers

 avatar

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.