@ichong/eslint-config

0.0.14 • Public • Published

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
    }
],

参考文档

Readme

Keywords

Package Sidebar

Install

npm i @ichong/eslint-config

Weekly Downloads

0

Version

0.0.14

License

ISC

Unpacked Size

27.3 kB

Total Files

20

Last publish

Collaborators

  • a289459798
  • rambos
  • daxiong123
  • jszh