@leohxj/eslint-config-dawn-react
no react-a11y rules.
Last updated a year ago by leohxj .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @leohxj/eslint-config-dawn-react 
SYNC missed versions from official npm registry.

eslint-config-dawn-react

no react-a11y rules.

使用说明

ES

通常编译 JSX 使用的是 babel, 所以我们依赖 babel-eslint eslint-plugin-babel.

npm i -D eslint eslint-plugin-import babel-eslint eslint-plugin-babel eslint-plugin-react eslint-plugin-react-hook
npm i -D  @leohxj/eslint-config-dawn-react
{
  "extends": [
    "@leohxj/eslint-config-dawn-react"
  ]
}

TS

TS:

npm i -D eslint eslint-plugin-import @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-react eslint-plugin-react-hooks
npm i -D  @leohxj/eslint-config-dawn-react
{
  "extends": [
    "@leohxj/eslint-config-dawn-react/typescript"
  ]
}

with prettier

npm i prettier eslint-plugin-prettier eslint-config-prettier -D

ES:

{
  "extends": [
    "@leohxj/eslint-config-dawn-react",
    "plugin:prettier/recommended",
    "prettier/babel",
    "prettier/react"
  ]
}

TS:

{
  "extends": [
    "@leohxj/eslint-config-dawn-react/typescript",
    "plugin:prettier/recommended",
    "prettier/@typescript-eslint",
    "prettier/react"
  ]
}

Current Tags

  • 1.0.12                                ...           latest (a year ago)

7 Versions

  • 1.0.12                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 7
This Month 8
Last Day 0
Last Week 0
Last Month 2
Dependencies (4)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |