Skip to content

Commit 19a4e86

Browse files
committed
Fix linter
1 parent 6568465 commit 19a4e86

File tree

3 files changed

+41
-4
lines changed

3 files changed

+41
-4
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"eslint": "^8.17.0",
6262
"eslint-config-standard": "^17.0.0",
6363
"eslint-plugin-import": "^2.26.0",
64+
"eslint-plugin-n": "^15.2.2",
6465
"eslint-plugin-node": "^11.1.0",
6566
"eslint-plugin-promise": "^6.0.0",
6667
"eslint-plugin-standard": "^5.0.0",

src/builder/webpack_config/defaults.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { destinationPath } from 'utils'
22

33
export const mainDefaults = (mode, env) => {
44
return {
5-
mode: mode,
5+
mode,
66
target: 'electron-main',
77
entry: './src/main/index.js',
88
output: {
@@ -26,7 +26,7 @@ export const mainDefaults = (mode, env) => {
2626

2727
export const rendererDefaults = (mode, env) => {
2828
return {
29-
mode: mode,
29+
mode,
3030
target: 'electron-renderer',
3131
entry: './src/renderer/javascripts/index.js',
3232
output: {
@@ -62,7 +62,7 @@ export const rendererDefaults = (mode, env) => {
6262

6363
export const preloadDefaults = (mode, env) => {
6464
return {
65-
mode: mode,
65+
mode,
6666
target: 'electron-preload',
6767
entry: './src/preload/index.js',
6868
output: {

yarn.lock

+37-1
Original file line numberDiff line numberDiff line change
@@ -2749,6 +2749,13 @@ [email protected]:
27492749
stat-mode "^1.0.0"
27502750
temp-file "^3.4.0"
27512751

2752+
builtins@^5.0.1:
2753+
version "5.0.1"
2754+
resolved "https://registry.yarnpkg.com/builtins/-/builtins-5.0.1.tgz#87f6db9ab0458be728564fa81d876d8d74552fa9"
2755+
integrity sha512-qwVpFEHNfhYJIzNRBvd2C1kyo6jz3ZSMPyyuR47OPdiKWlbYnZNyDWuyR175qDnAJLiCo5fBBqPb3RiXgWlkOQ==
2756+
dependencies:
2757+
semver "^7.0.0"
2758+
27522759
cacheable-request@^6.0.0:
27532760
version "6.1.0"
27542761
resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912"
@@ -3671,6 +3678,14 @@ eslint-plugin-es@^3.0.0:
36713678
eslint-utils "^2.0.0"
36723679
regexpp "^3.0.0"
36733680

3681+
eslint-plugin-es@^4.1.0:
3682+
version "4.1.0"
3683+
resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz#f0822f0c18a535a97c3e714e89f88586a7641ec9"
3684+
integrity sha512-GILhQTnjYE2WorX5Jyi5i4dz5ALWxBIdQECVQavL6s7cI76IZTDWleTHkxz/QT3kvcs2QlGHvKLYsSlPOlPXnQ==
3685+
dependencies:
3686+
eslint-utils "^2.0.0"
3687+
regexpp "^3.0.0"
3688+
36743689
eslint-plugin-import@^2.26.0:
36753690
version "2.26.0"
36763691
resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz#f812dc47be4f2b72b478a021605a59fc6fe8b88b"
@@ -3690,6 +3705,20 @@ eslint-plugin-import@^2.26.0:
36903705
resolve "^1.22.0"
36913706
tsconfig-paths "^3.14.1"
36923707

3708+
eslint-plugin-n@^15.2.2:
3709+
version "15.2.2"
3710+
resolved "https://registry.yarnpkg.com/eslint-plugin-n/-/eslint-plugin-n-15.2.2.tgz#1ea682e57871c5ce6ba04c36e71df38466b68d34"
3711+
integrity sha512-MLjZVAv4TiCIoXqjibNqCJjLkGHfrOY3XZ0ZBLoW0OnS3o98PUBnzB/kfp8dCz/4A4Y18jjX50PRnqI4ACFY1Q==
3712+
dependencies:
3713+
builtins "^5.0.1"
3714+
eslint-plugin-es "^4.1.0"
3715+
eslint-utils "^3.0.0"
3716+
ignore "^5.1.1"
3717+
is-core-module "^2.9.0"
3718+
minimatch "^3.1.2"
3719+
resolve "^1.10.1"
3720+
semver "^7.3.7"
3721+
36933722
eslint-plugin-node@^11.1.0:
36943723
version "11.1.0"
36953724
resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-11.1.0.tgz#c95544416ee4ada26740a30474eefc5402dc671d"
@@ -4569,7 +4598,7 @@ is-core-module@^2.2.0:
45694598
dependencies:
45704599
has "^1.0.3"
45714600

4572-
is-core-module@^2.8.1:
4601+
is-core-module@^2.8.1, is-core-module@^2.9.0:
45734602
version "2.9.0"
45744603
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.9.0.tgz#e1c34429cd51c6dd9e09e0799e396e27b19a9c69"
45754604
integrity sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A==
@@ -6568,6 +6597,13 @@ semver@^6.0.0, semver@^6.1.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semve
65686597
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
65696598
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
65706599

6600+
semver@^7.0.0, semver@^7.3.7:
6601+
version "7.3.7"
6602+
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f"
6603+
integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==
6604+
dependencies:
6605+
lru-cache "^6.0.0"
6606+
65716607
semver@^7.3.2, semver@^7.3.4:
65726608
version "7.3.4"
65736609
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.4.tgz#27aaa7d2e4ca76452f98d3add093a72c943edc97"

0 commit comments

Comments
 (0)