fix: web lint

This commit is contained in:
Eli Bosley
2023-08-09 20:35:02 -04:00
parent db04c4094c
commit f15e9d9da7
3 changed files with 11 additions and 11 deletions

View File

@@ -3,9 +3,9 @@ import { provide } from 'vue';
import { createI18n, I18nInjectionKey } from 'vue-i18n';
import { disableProductionConsoleLogs } from '~/helpers/functions';
disableProductionConsoleLogs();
import en_US from '~/locales/en_US.json'; // eslint-disable-line camelcase
disableProductionConsoleLogs();
// import ja from '~/locales/ja.json';
const defaultLocale = 'en_US'; // ja, en_US

View File

@@ -9,25 +9,25 @@ for (const k in envConfig) {
* Used to avoid redeclaring variables in the webgui codebase.
* @see alt solution https://github.com/terser/terser/issues/1001, https://github.com/terser/terser/pull/1038
*/
function terserReservations(inputStr) {
function terserReservations (inputStr) {
const combinations = [];
// Add 1-character combinations
for(let i = 0; i < inputStr.length; i++) {
combinations.push(inputStr[i]);
for (let i = 0; i < inputStr.length; i++) {
combinations.push(inputStr[i]);
}
// Add 2-character combinations
for(let i = 0; i < inputStr.length; i++) {
for(let j = 0; j < inputStr.length; j++) {
combinations.push(inputStr[i] + inputStr[j]);
}
for (let i = 0; i < inputStr.length; i++) {
for (let j = 0; j < inputStr.length; j++) {
combinations.push(inputStr[i] + inputStr[j]);
}
}
return combinations;
}
const charsToReserve = "_$abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
const charsToReserve = '_$abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({

View File

@@ -1,6 +1,6 @@
import { createI18n } from 'vue-i18n';
import en_US from '@/locales/en_US.json';
import en_US from '@/locales/en_US.json'; // eslint-disable-line camelcase
export default defineNuxtPlugin(({ vueApp }) => {
const i18n = createI18n({
@@ -9,7 +9,7 @@ export default defineNuxtPlugin(({ vueApp }) => {
locale: 'en_US',
fallbackLocale: 'en_US',
messages: {
en_US,
en_US, // eslint-disable-line camelcase
},
});