Skip to content

Commit

Permalink
disable unicorn/prefer-module
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow committed Oct 6, 2021
1 parent b0129e1 commit f251853
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 8 deletions.
6 changes: 1 addition & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": "xo",
"plugins": [
"unicorn"
],
"rules": {
"array-bracket-spacing": [
"error",
Expand Down Expand Up @@ -40,7 +37,6 @@
"space-in-parens": [
"error",
"always"
],
"unicorn/prefer-module": "off"
]
}
}
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint unicorn/prefer-module: 0 */
// App entry
const main = require( './src/main.js' )

Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,7 @@
"always"
]
},
"semicolon": false,
"unicorn/prefer-module": "off"

"semicolon": false
},
"np": {
"publish": false,
Expand Down
1 change: 1 addition & 0 deletions src/config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint unicorn/prefer-module: 0 */
// Constants
const APP_HEIGHT = 124
const APP_WIDTH = 200
Expand Down
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint unicorn/prefer-module: 0 */
/*
Changed:
#20 Custom keybinds
Expand Down
1 change: 1 addition & 0 deletions src/menu.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint unicorn/prefer-module: 0 */
const path = require( 'path' )
const { app, shell } = require( 'electron' )
const {
Expand Down
1 change: 1 addition & 0 deletions src/preferences.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint unicorn/prefer-module: 0 */
// Via https://github.com/tkambler/electron-preferences
const { app } = require( 'electron' )
const path = require( 'path' )
Expand Down
1 change: 1 addition & 0 deletions src/preload-chooser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint unicorn/prefer-module: 0 */
// Via https://github.com/reZach/secure-electron-template

const path = require( 'path' )
Expand Down
1 change: 1 addition & 0 deletions src/preload.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint unicorn/prefer-module: 0 */
// Via https://github.com/reZach/secure-electron-template
const {
contextBridge,
Expand Down
1 change: 1 addition & 0 deletions src/util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint unicorn/prefer-module: 0 */
/* Utilities */

const debounce = ( func, delay ) => {
Expand Down
1 change: 1 addition & 0 deletions test/spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint unicorn/prefer-module: 0 */
const electronPath = require( 'electron' ) // Require Electron from the binaries included in node_modules.
const path = require( 'path' )
const { Application } = require( 'spectron' )
Expand Down

0 comments on commit f251853

Please sign in to comment.