Skip to content

Commit

Permalink
工作流: 🛤️ 整合 ESLint 检测 JavaScript 语言、书写等
Browse files Browse the repository at this point in the history
  • Loading branch information
iTonyYo committed Jun 26, 2019
1 parent e549fd4 commit 62fe579
Show file tree
Hide file tree
Showing 2 changed files with 580 additions and 14 deletions.
21 changes: 20 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,29 @@
"add-module-exports"
]
},
"eslintConfig": {
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"no-console": 0
}
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.5",
"@babel/node": "^7.4.5",
"@babel/preset-env": "^7.4.5"
"@babel/preset-env": "^7.4.5",
"babel-eslint": "^10.0.2",
"babel-plugin-add-module-exports": "^1.0.2",
"eslint": "^6.0.1"
}
}
Loading

0 comments on commit 62fe579

Please sign in to comment.