@4tw/eslint-config 中文文档教程
@4tw/eslint-config
Installation
运行以下命令:
$ yarn add --dev eslint prettier @4tw/eslint-config
然后将其添加到您的 .eslintrc.js
中:
module.exports = {
extends: [
'@4tw',
],
}
最后将 lint
命令添加到您的 package.json
中:
{
...
"scripts": {
"lint": "eslint --ext .js,.vue --ignore-path .gitignore ."
}
}
@4tw/eslint-config
Installation
Run the following:
$ yarn add --dev eslint prettier @4tw/eslint-config
Then add this in your .eslintrc.js
:
module.exports = {
extends: [
'@4tw',
],
}
Finally add the lint
command to your package.json
:
{
...
"scripts": {
"lint": "eslint --ext .js,.vue --ignore-path .gitignore ."
}
}