Skip to content

Commit

Permalink
Const enforcement added to .eslintrc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aidant19 committed Jan 11, 2024
1 parent f1435eb commit eb20519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ parserOptions:
ecmaVersion: latest
rules:
no-var: 'error'
prefer-const: 'error'
4 changes: 2 additions & 2 deletions package-scripts/modules/bb-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ BBPlugin.register('bb-cli', {
variant: 'both',
onload() {
console.log('BB-CLI loading...');
let [...argv] = electron.getGlobal('process').argv;
let scriptIndicator = argv.indexOf('--bb-cli');
const [...argv] = electron.getGlobal('process').argv;
const scriptIndicator = argv.indexOf('--bb-cli');
if (scriptIndicator !== -1) {
const scriptPath = argv[scriptIndicator + 1];
console.log('Importing...', scriptPath);
Expand Down

0 comments on commit eb20519

Please sign in to comment.