0.1.0-alpha.1 • Published 3 years ago
@copyist/eslint-plugin v0.1.0-alpha.1
@copyist/eslint-plugin
eslint插件
yarn add @copyist/eslint-plugin -D
需要配合相关依赖
yarn add eslint prettier eslint-config-prettier eslint-plugin-prettier eslint-config-airbnb-base -D # js # prettier@2.0.0?
yarn add eslint-config-airbnb eslint-plugin-react -D # react
yarn add @typescript-eslint/eslint-plugin @typescript-eslint/parser -D # ts
.vscode/settings.json
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}
.eslintrc.json
{
"extends": ["plugin:@copyist/react-ts"],
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@copyist"]
}
配合husky
yarn add husky lint-staged
{
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{ts,tsx,js,jsx}": [
"eslint --fix"
]
}
}
0.1.0-alpha.1
3 years ago
0.1.0-alpha.0
3 years ago
0.0.3-alpha.6
3 years ago
0.0.3-alpha.5
3 years ago
0.0.3-alpha.4
3 years ago
0.0.3-alpha.3
3 years ago
0.0.3-0.0.3-alpha.1.0
3 years ago
0.0.2
3 years ago
0.0.2-alpha.2
3 years ago