标签:mave config 文件 quick exce uil node ase bre
// eslint-disable-next-line prefer-const
.eslintrc.*
可以存放在HOME目录下,就不用每个项目都配置该文件。eslintConfig
.eslintrc.js
.eslintrc.yaml
.eslintrc.yml
.eslintrc.json
.eslintrc
deprecatedpackage.json
# omit all .js file
**/*.js
# Ignore built files except build/index.js
build/*
!build/index.js
env
'env': {
'browser': true,
// new ES6 global variables,
'es6': true,
'node': true
},
options
'extends': 'eslint:recommended', // 'airbnb-base' 'standard'
parseOptions
'parserOptions': {
// supporting ES6 syntax
'ecmaVersion': 6,
'sourceType': 'module'
},
plugins
"html"
rules
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
标签:mave config 文件 quick exce uil node ase bre
原文地址:https://www.cnblogs.com/rosendolu/p/11108187.html