Commit 19f4e2e7 authored by yimj's avatar yimj

eslint windows端配置

parent 997b8dfa
......@@ -2,6 +2,7 @@ package.json
package-lock.json
yarn.lock
!.eslintrc.js
.eslintrc.js
# 忽略有所md文件
*.md
assets/
......
......@@ -33,7 +33,7 @@ module.exports = {
SwitchCase: 1 // 针对switch case的缩进
}
],
'linebreak-style': ['error', 'unix'],
'linebreak-style': ['warn', 'unix'],
'no-irregular-whitespace': [
1,
{ skipComments: true, skipTemplates: true, skipRegExps: true }
......
......@@ -31,5 +31,6 @@ module.exports = {
// 箭头函数参数括号 默认avoid 可选 avoid| always
// avoid 能省略括号的时候就省略 例如x => x
// always 总是有括号
arrowParens: 'always'
arrowParens: 'always',
endOfline: "auto"
}
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