Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
.eslintrc.js 1.24 KB
Copy Edit Raw Blame History
踩着两条虫 authored 2018-07-11 15:23 . !11 v2.1.0
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
env: {
browser: true,
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/base',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard'
],
// required to lint *.vue files
plugins: [
'vue'
],
// add your custom rules here
rules: {
'indent': 0,
'vue/script-indent': 0,
'no-console': 0,
'no-trailing-spaces': 0,
'no-multiple-empty-lines': 0,
'no-extra-boolean-cast': 0,
'valid-jsdoc': 0,
'one-var': 0,
'semi': 0,
'no-new': 0,
'no-extra-semi': 0,
'keyword-spacing': 0,
'space-before-function-paren': 0,
// allow paren-less arrow functions
'arrow-parens': 0,
// allow async-await
'generator-star-spacing': 0,
// 禁止混合使用不同的操作符
'no-mixed-operators': 0,
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'padded-blocks': 0,
'eol-last': 0
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化