Code Monkey home page Code Monkey logo

eslint-config's Introduction

eslint-config

A strict TypeScript ESLint Shareable Config for instead of TSlint

Version License Conventional Commits

说明

  • 规则根据@waiting/eslint-config fork,并根据自己项目进行修改

Features

  • @waiting/eslint-config/recommended extends and customize from
    • eslint-plugin-import
    • eslint-plugin-node
    • eslint-plugin-unicorn
    • eslint:recommended
    • @typescript-eslint/recommended
    • @typescript-eslint/recommended-requiring-type-checking
  • @waiting/eslint-config extends @waiting/eslint-config/strict and more strict rules enabled

Install

npm i -D @waiting/eslint-config eslint

Usage

Shareable configs are designed to work with the extends feature of .eslintrc.* files. You can learn more about Shareable Configs on the official ESLint website.

Add this to your .eslintrc.* file:

  • .eslintrc.yml
    extends: '@waiting/eslint-config' 
  • .eslintrc.json
    {
      "extends": "@waiting/eslint-config"
    }

You can override settings from the shareable config by adding them directly into your .eslintrc.* file. And add file .eslintrc.yml under the folder such as ./test for fast linting with less strict rules:

# .eslintrc.yml
extends: '@waiting/eslint-config/recommended'

Linting

eslint --fix src/**/*.ts
eslint src/**/*.{ts,js}

Learn more

License

MIT

Languages

eslint-config's People

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.