GithubHelp home page GithubHelp logo

eslint-recommended-cl's Introduction

ESLint Recommended Cli

CircleCI npm version

This is a cli tool to run ESLint with recommended rules without any configuration files.

npx eslint-recommended-cli <files>

The rules is based on eslint:recommended, but a few options(no-undef, no-console, no-unused-vars) are disabled because of suppressing errors.

Currently, eslint-recommended-cli is supporting the following environments.

  • γ€œES2017
  • Modules
  • CommonJS
  • JSX
  • Flowtype

Options

eslint-recommended-cli has some options to customize the rules.

react

react option is to enable plugin:react/recommended, you can run ESLint with recommended rules of eslint-plugin-react.

npx eslint-recommended-cli --react Component.jsx

disable

This options is to disable specific rules you'd like to ignore errors.

npx eslint-recommended-cli --disable no-debugger --disable no-empty src/*.js

format

This options is equivalent of ESLint's format option.

npx eslint-recommended-cli --format json src/*.js

extends

If you have own ESLint settings, you can use it with the extends option.

npx -p eslint-config-airbnb \
-p eslint-plugin-jsx-a11y \
-p eslint-plugin-import \
-p eslint-recommended-cli \
eslint-recommended-cli --extends airbnb src/*.js

eslint-recommended-cl's People

Contributors

koba04 avatar

Watchers

 avatar  avatar  avatar

eslint-recommended-cl's Issues

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.