包详细信息

@darwintantuco/eslint-config

darwintantuco17MIT1.0.5

My personal eslint config

自述文件

eslint-config

Node.js CI

My personal eslint config

Peer Dependencies

  • typescript
  • eslint
  • @typescript-eslint/parser
  • @typescript-eslint/eslint-plugin
  • eslint-plugin-react
  • eslint-plugin-jsx-a11y
  • eslint-config-prettier

Installation

npm

npm install @darwintantuco/eslint-config \
  typescript \
  eslint \
  @typescript-eslint/parser \
  @typescript-eslint/eslint-plugin \
  eslint-plugin-react \
  eslint-plugin-jsx-a11y \
  eslint-config-prettier --save-dev

yarn

yarn add @darwintantuco/eslint-config \
  typescript \
  eslint \
  @typescript-eslint/parser \
  @typescript-eslint/eslint-plugin \
  eslint-plugin-react \
  eslint-plugin-jsx-a11y \
  eslint-config-prettier --dev

Usage

Update .eslintrc.js

// .eslintrc.js
module.exports = {
  extends: ['@darwintantuco/eslint-config'],
}

Or add eslint config in package.json

{
  "eslintConfig": { "extends": ["@darwintantuco/eslint-config"] },
  "scripts": {
    "lint:js": "eslint 'js/**/*.{js,jsx,ts,tsx}'"
  }
}

License

MIT

更新日志

Changelog

All notable changes to this project will be documented in this file.

[1.0.5] - January 10, 2021

  • Fix CI
  • Update yarn.lock

[1.0.4] - January 10, 2021

  • Move plugins to peerDependencies

[1.0.3] - April 23, 2020

  • disable react/prop-types rule

[1.0.2] - April 18, 2020

  • Update packages
  • Add husky
  • Replace travis with github actions

[1.0.1] - April 08, 2020

  • Add typescript support

[1.0.0] - February 22, 2020

  • Initial release