1 Star 1 Fork 0

Kay / snake

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
chenkai01 提交于 2018-04-20 15:29 . init
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
browser: true
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
// add your custom rules here
rules: {
'arrow-parens': 'off', // This rule enforces parentheses around arrow function parameters regardless of arity
'no-useless-escape': 'off', // This rule flags escapes that can be safely removed without changing behavior
'accessor-pairs': 'off',
'padded-blocks': 'off',
'comma-dangle': 'off',
'spaced-comment': 'off',
'comma-spacing': 'off',
'brace-style': 'off',
'block-spacing': 'off',
'prefer-promise-reject-errors': 'off',
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-new': 'off', // allow new
'eol-last': 'warn',
'no-unused-vars': 'warn',
'no-trailing-spaces': 'warn',
'no-multiple-empty-lines': 'warn',
'camelcase': 'off',
},
}
1
https://gitee.com/kaysama/snake.git
git@gitee.com:kaysama/snake.git
kaysama
snake
snake
master

搜索帮助