Socket
Book a DemoInstallSign in
Socket

@ichong/eslint-config

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ichong/eslint-config

ESLint config

latest
npmnpm
Version
0.0.14
Version published
Maintainers
4
Created
Source

JS ESLint 配置

@ichong

安装

npm i -D @ichong/eslint-config

使用方法

.eslintrc.js 文件中添加内容:

module.exports = {
	extends: [
        '@ichong',
        // vue项目
        // '@ichong', '@ichong/eslint-config/vue'
        // '@ichong', '@ichong/eslint-config/vue3'
	],
}

VSCode中设置保存自动fix

"eslint.autoFixOnSave": true,
"eslint.options": {
    "extensions": [
        ".js",
        ".vue"
    ]
},
"eslint.validate": [
    "javascript",
    "javascriptreact",
    {
        "language": "vue",
        "autoFix": true
    }
],

参考文档

  • ESLint
  • eslint-plugin-vue

Keywords

eslint

FAQs

Package last updated on 21 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts