Skip to content

Commit

Permalink
Merge pull request #1 from Oh-My-Mechanical-Keyboard/dev_dg
Browse files Browse the repository at this point in the history
style: fix lint errors, more readable eslint rules
  • Loading branch information
jiaxin96 committed Nov 23, 2021
2 parents 6cea779 + 22b7bc8 commit 2e5355b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions kbctl-ng-app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ module.exports = {
],
'rules': {
// allow paren-less arrow functions
'arrow-parens': 0,
'arrow-parens': 'off',
'comma-dangle': 'off',
// allow async-await
'generator-star-spacing': 0,
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'object-curly-spacing': ['error', 'always'],
}
}
2 changes: 1 addition & 1 deletion kbctl-ng-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"author": "yrstduio(biu, jason ren)",
"description": "An electron-vue project",
"license": null,
"license": "MIT",
"main": "./dist/electron/main.js",
"scripts": {
"build": "node .electron-vue/build.js && electron-builder",
Expand Down
2 changes: 1 addition & 1 deletion kbctl-ng-app/src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function createMenu () {
label: '导入新配置',
type: 'checkbox',
click: () => {
dialog.showOpenDialog({ properties: [ 'openFile', 'openDirectory', 'multiSelections' ]})
dialog.showOpenDialog({ properties: [ 'openFile', 'openDirectory', 'multiSelections' ] })
}
},
{
Expand Down

0 comments on commit 2e5355b

Please sign in to comment.