UNPKG

1.02 kBJavaScriptView Raw
1// https://eslint.org/docs/user-guide/configuring
2module.exports = {
3 root: true,
4 parser: 'babel-eslint',
5 parserOptions: {
6 sourceType: 'module'
7 },
8 env: {
9 browser: true,
10 },
11 // https://github.com/standard/standard/blob/master/docs/RULES-en.md
12 extends: 'standard',
13 // required to lint *.vue files
14 plugins: [
15 'html'
16 ],
17 // http://eslint.cn/docs/rules/
18 // add your custom rules here
19 // "off" or 0 关闭规则
20 // "warn" or 1 打开规则,出现警告提示
21 // "error" or 2 打开规则,出现错误提示
22 'rules': {
23 //不要求文件末尾空行
24 'eol-last': 0,
25 //不要求使用 === 和 !==
26 'eqeqeq': 0,
27 //警告在return、throw、continue 和 break 语句之后出现不可达代码
28 'no-unreachable': 1,
29 // 不要求箭头函数的参数使用圆括号
30 'arrow-parens': 0,
31 // 不强制 generator 函数中 * 号周围使用一致的空格
32 'generator-star-spacing': 0,
33 //警告出现未使用过的变量
34 "no-unused-vars": 1
35 }
36}