@viso/eslint-config
v0.3.6
Published
提供快速的项目 ESLint 配置
Downloads
20
Readme
Viso ESLint Config
English | 中文
RViso's ESLint configurations. you can use this package to lint your JavaScript, TypeScript, and Vue3 projects.
Installation
To install this package, run the following command:
npm install eslint @viso/eslint-config@latest --save-dev
Usage
Create a .eslintrc
file in the root directory of your project with the following content:
{
"extends": ["@viso/eslint-config"]
}
Vscode Settings
If you are using Visual Studio Code, you can add the following settings to your settings.json
file:
{
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.enable": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"vue-html",
"json",
"jsonc",
"markdown",
"yaml"
]
}
To make these settings take effect, you need to install the following plugins:
License
Related
- @viso/eslint-config - RViso's ESLint Vue configurations.