1.1.9 • Published 11 months ago

@whfm/eslint-config v1.1.9

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

ESLint规范

分米武汉前端ESLint规范,目前支持uniapp|vue3|vue

安装

npm install @whfm/eslint-config -D
# OR
pnpm add @whfm/eslint-config -D

使用

在你的工程根目录下创建一个.eslintrc.js配置文件

配置如下:

  • vue
module.exports = {
  extends: ['@whfm/eslint-config/vue'],
};
  • vue3
module.exports = {
  extends: ['@whfm/eslint-config/vue3'],
};

:::caution 如果项目之前安装过ESLint相关的包,建议卸载,避免引入不必要的包。如eslinteslint-plugin-vue@babel/eslint-parser@typescript-eslint/eslint-plugin@typescript-eslint/parser@vue/eslint-config-standard@vue/eslint-config-typescripteslint-config-react-appeslint-plugin-import等,直接在package.json搜索eslint,相关的包全部卸载 :::

1.1.9

11 months ago

1.1.8

11 months ago

1.1.7

11 months ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago