mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-09 03:32:54 -05:00
🔧 (eslint) disallow using 'var': no-var rule (#1949)
This commit is contained in:
committed by
GitHub
parent
28266ed9a2
commit
6ed1b58321
@@ -92,6 +92,8 @@ module.exports = {
|
||||
// },
|
||||
// ],
|
||||
|
||||
'no-var': 'warn',
|
||||
|
||||
'import/extensions': [
|
||||
'warn',
|
||||
'never',
|
||||
|
||||
@@ -82,7 +82,7 @@ global.Actual = {
|
||||
let filename = file.name.replace(/.*(\.[^.]*)/, 'file$1');
|
||||
|
||||
if (file) {
|
||||
var reader = new FileReader();
|
||||
let reader = new FileReader();
|
||||
reader.readAsArrayBuffer(file);
|
||||
reader.onload = async function (ev) {
|
||||
let filepath = `/uploads/${filename}`;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
var electron_notarize = require('electron-notarize');
|
||||
let electron_notarize = require('electron-notarize');
|
||||
|
||||
// This is expected to be run by `electron-builder` after it signs the build.
|
||||
// It's disabled for now as we currently don't sign builds after Actual being open sourced.
|
||||
|
||||
@@ -30,7 +30,7 @@ electron.app.on('ready', function () {
|
||||
permission,
|
||||
callback,
|
||||
) {
|
||||
var url = webContents.getURL();
|
||||
let url = webContents.getURL();
|
||||
if (url.startsWith('file://')) {
|
||||
callback(true);
|
||||
} else {
|
||||
|
||||
@@ -5,7 +5,7 @@ let _libofxPromise;
|
||||
let _libofx;
|
||||
let ffi;
|
||||
|
||||
var parser = {
|
||||
let parser = {
|
||||
ctx: null,
|
||||
transactions: [],
|
||||
|
||||
|
||||
6
upcoming-release-notes/1949.md
Normal file
6
upcoming-release-notes/1949.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Maintenance
|
||||
authors: [MatissJanis]
|
||||
---
|
||||
|
||||
eslint: disallow using 'var': no-var rule
|
||||
Reference in New Issue
Block a user