Commit 4fde1f1a authored by lipengcheng 's avatar lipengcheng

lint

parent 80169c8e
root = true root = true
# 对所有文件有效 //[*js]只对js文件有效 # 对所有文件有效.
# [*js]只对js文件有效
# [*.{js,jsx,ts,tsx,vue}]对指定文件类型有效
[*] [*]
charset = utf-8 charset = utf-8
......
...@@ -3,6 +3,13 @@ module.exports = { ...@@ -3,6 +3,13 @@ module.exports = {
env: { env: {
node: true node: true
}, },
// 1: ESLint with error prevention only
// extends: ['plugin:vue/essential', 'eslint:recommended'],
// 2: ESLint + Airbnb config
// extends: ['plugin:vue/essential', '@vue/airbnb',],
// 3: ESLint + Standard config
// extends: [ 'plugin:vue/essential', '@vue/airbnb',],
// ESLint + Prettier
extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier'], extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/prettier'],
plugins: [], plugins: [],
parserOptions: { parserOptions: {
......
...@@ -20,7 +20,7 @@ module.exports = { ...@@ -20,7 +20,7 @@ module.exports = {
} }
} }
}, },
// css 相关选项 lintOnSave: true,
css: { css: {
/*为预处理器 loader 传递自定义选项*/ /*为预处理器 loader 传递自定义选项*/
loaderOptions: { loaderOptions: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment