@fcedu/eslint-config-fcedu
v0.0.5
Published
Eslint config for fcedu based projects
Downloads
13
Readme
丰橙学院 ESlint 规则
规范基于 AlloyTeam V2 的规则,某些规则可能会调整。 相关文档可查看 AlloyTeam ESLint 规则。
使用
都以 .eslintrc.js
配置文件为例。
基础规则
安装
yarn add -D eslint babel-eslint eslint-config-alloy @fcedu/eslint-config-fcedu
使用
...
extends: [
'@fcedu/eslint-config-fcedu',
]
...
Vue
安装
yarn add -D eslint babel-eslint [email protected] eslint-plugin-vue eslint-config-alloy @fcedu/eslint-config-fcedu
配置
...
extends: [
'@fcedu/eslint-config-fcedu/vue',
]
...
React
安装
yarn add -D eslint babel-eslint eslint-plugin-react eslint-config-alloy @fcedu/eslint-config-fcedu
配置
...
extends: [
'@fcedu/eslint-config-fcedu/react',
]
...
TypeScript
安装
yarn add -D eslint babel-eslint typescript @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-config-alloy @fcedu/eslint-config-fcedu
...
extends: [
'@fcedu/eslint-config-fcedu/typescript',
]
...