1.0.32 • Published 3 years ago

@hairy/eslint v1.0.32

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@hairy/eslint

eslint 的规则集,包含了 ts-vue | ts-react | ts | ts-uni 的规则。

Install

npm install eslint @hairy/eslint -D

Usage

  1. 编写 prettier 规则 package.json(其余方式引入都可使用:.prettierrc|prettier.config.js
{
    "prettier": "@hairy/eslint/prettier"
}
  1. 编写 eslint 规则.eslintrc.js(其余方式引入都可使用:.eslintrc|.eslintrc.js
const typescript = require('@hairy/eslint/typescript.js')

module.exports = typescript

Eslint extends options

所有 eslint 的配置集

  • all: @hairy/eslint/all
  • typescript: @hairy/eslint/typescript
  • ts-react: @hairy/eslint/ts-react
  • ts-uni-vue@2: @hairy/eslint/ts-uni-vue@2
  • ts-vue@2: @hairy/eslint/ts-vue@2
  • ts-vue@3: @hairy/eslint/ts-vue@3

modules

对应模块使用的描述信息和依赖包

Basic eslint

/**
 * @author: Mr.Mao
 * @description: Basic eslint options
 * @module eslint
 * @module eslint-plugin-import
 * @module eslint-plugin-eslint-comments
 * @module eslint-plugin-jsonc
 * @module eslint-plugin-yml
 * @module eslint-config-prettier
 * @module eslint-plugin-prettier
 * @module prettier
 * @module eslint-plugin-html
 * @module eslint-plugin-unicorn
 */

Typescript eslint

/**
 * @author: Mr.Mao
 * @description: Typescript eslint options
 * @module eslint-plugin-import
 * @module @typescript-eslint/parser
 * @module @typescript-eslint/eslint-plugin
 */

React eslint

/**
 * @author: Mr.Mao
 * @description: React eslint options
 * @module eslint-plugin-react
 */

Vue eslint

/**
 * @author: Mr.Mao
 * @description: Vue eslint options
 * @module vue-eslint-parser
 * @module eslint-plugin-vue
 */

Uni eslint

/**
 * @author: Mr.Mao
 * @description: UniApp eslint options
 */
1.0.32

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.16

3 years ago

1.0.21

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.0

4 years ago