# fe-base-lint

> 前端规范集合配置文件

Latest version **1.1.3** (published 2024-05-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install fe-base-lint
pnpm add fe-base-lint
yarn add fe-base-lint
bun add fe-base-lint
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2024-05-08 |
| First published | 2022-08-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 30 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zzq8297729@163.com |
| Maintainers | tec8297729 |

## Links

- npm: https://www.npmjs.com/package/fe-base-lint
- Repository: https://github.com/tec8297729/fe-base-lint
- Homepage: https://www.jonhuu.com/
- Issues: https://github.com/tec8297729/fe-base-lint/issues
- npm.io page: https://npm.io/package/fe-base-lint

## Dependencies (30)

- [chalk](https://npm.io/package/chalk.md) 5.3.0
- [eslint](https://npm.io/package/eslint.md) 8.56.0
- [prettier](https://npm.io/package/prettier.md) 3.2.5
- [fast-glob](https://npm.io/package/fast-glob.md) 3.3.2
- [typescript](https://npm.io/package/typescript.md) 5.4.5
- [@babel/core](https://npm.io/package/@babel/core.md) 7.24.5
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) 7.24.5
- [eslint-plugin-jest](https://npm.io/package/eslint-plugin-jest.md) 28.5.0
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) 7.24.1
- [eslint-plugin-babel](https://npm.io/package/eslint-plugin-babel.md) 5.3.1
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) 7.34.1
- [@babel/eslint-parser](https://npm.io/package/@babel/eslint-parser.md) 7.24.5
- [eslint-plugin-compat](https://npm.io/package/eslint-plugin-compat.md) 4.2.0
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) 2.29.1
- [eslint-plugin-promise](https://npm.io/package/eslint-plugin-promise.md) 6.1.1
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) 52.0.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^9.1.0
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) 6.8.0
- [eslint-plugin-markdown](https://npm.io/package/eslint-plugin-markdown.md) 5.0.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) 5.1.3
- [eslint-formatter-pretty](https://npm.io/package/eslint-formatter-pretty.md) 6.0.1
- [@babel/preset-typescript](https://npm.io/package/@babel/preset-typescript.md) 7.24.1
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) 7.8.0
- [eslint-config-airbnb-base](https://npm.io/package/eslint-config-airbnb-base.md) 15.0.0
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) 4.6.2
- [eslint-plugin-eslint-comments](https://npm.io/package/eslint-plugin-eslint-comments.md) 3.2.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) 7.8.0
- [eslint-plugin-simple-import-sort](https://npm.io/package/eslint-plugin-simple-import-sort.md) 12.1.0
- [@babel/plugin-proposal-decorators](https://npm.io/package/@babel/plugin-proposal-decorators.md) 7.24.1
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) 7.18.6

## Recent versions

- 1.1.3 (latest) — 2024-05-08
- 1.1.1 — 2024-05-08
- 1.0.0 — 2024-02-18
- 0.3.0 — 2023-05-07
- 0.2.10 — 2022-08-27
- 0.2.2 — 2022-08-10

## README

# 前端js规范包

## 更新历史

### v1.0.0
* 剥离ts、js集成的lint规则，1.0版本将分二个lint文件手动引入（jslint/tslint）


## 安装依赖

1、安装包

```js
yarn add fe-base-lint
```

PS：如果项目环境中有其它eslint包，冲突情况下，才手动安装以下包

```js
yarn add @babel/core @babel/eslint-parser @babel/plugin-proposal-class-properties @babel/plugin-proposal-decorators @babel/preset-env @babel/preset-react @babel/preset-typescript
```

## 配置案例

lint 规范集合配置文件

`.eslintrc.js`

```js
const path = require('path')
module.exports = {
  extends: [require.resolve('fe-base-lint/dist/tslint')],
  parserOptions: {
    project: require.resolve(path.join(__dirname, './tsconfig.json')),
  },
  rules: {
    // your rules
  },
};
```

`.prettierrc.js`

```js
const config = require('fe-base-lint');

module.exports = {
  ...config.prettier,
};
```

---
_Source: https://npm.io/package/fe-base-lint · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
