Skip to content

Commit

Permalink
Merge pull request #891 from ThornWalli/renovate/nuxtjs-eslint-config…
Browse files Browse the repository at this point in the history
…-12.x

chore(deps): update devdependency @nuxtjs/eslint-config to v12
  • Loading branch information
ThornWalli committed Jan 3, 2023
2 parents 4540116 + cc874ef commit 1eb70f1
Show file tree
Hide file tree
Showing 15 changed files with 3,661 additions and 3,028 deletions.
4 changes: 0 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@
"maxEOF": 1
}
],
"vue/name-property-casing": [
"error",
"PascalCase"
],
"vue/component-name-in-template-casing": [
"error",
"kebab-case",
Expand Down
6,656 changes: 3,655 additions & 3,001 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@
"@fullhuman/postcss-purgecss": "5.0.0",
"@mapbox/stylelint-processor-arbitrary-tags": "0.4.0",
"@nuxt/postcss8": "1.1.3",
"@nuxtjs/eslint-config": "10.0.0",
"@nuxtjs/eslint-config": "12.0.0",
"@nuxtjs/eslint-module": "3.1.0",
"@nuxtjs/sitemap": "2.4.0",
"@nuxtjs/stylelint-module": "4.1.0",
"@packtracker/webpack-plugin": "2.3.0",
"eslint": "8.28.0",
"eslint-plugin-json": "3.1.0",
"eslint-plugin-security": "1.5.0",
"husky": "8.0.2",
Expand Down
1 change: 0 additions & 1 deletion src/components/environments/Core.vue
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ export default {
},
startWebDos () {
// eslint-disable-next-line no-unreachable
const bootWindow = this.windowsModule.addWindow(
{
title: 'WebDOS',
Expand Down
11 changes: 4 additions & 7 deletions src/web-workbench/classes/BasicInterpreter.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ class Parser {
commandWhile (value) {
const condition = value.match(/([^<>]*) *(<>|<=|>=|<|>|[=!]{2,3}) *([^<>].*)/);
if (condition) {
// eslint-disable-next-line promise/catch-or-return
return this.executeCondition(condition[1], condition[2], condition[3]).then((value) => {
// eslint-disable-next-line promise/always-return
if (value) {
Expand Down Expand Up @@ -493,7 +492,7 @@ class Parser {
}
result = result.then(value => this.setStack({
name: dim[1],
// eslint-disable-next-line promise/always-return

value: value ? Array(value) : undefined,
global: shared
}));
Expand All @@ -504,15 +503,13 @@ class Parser {

commandLet (name, value, index) {
if (this.#memory.has(name)) {
// eslint-disable-next-line promise/catch-or-return
return this.setStack({
name,
value,
index
// eslint-disable-next-line promise/always-return

});
} else {
// eslint-disable-next-line prefer-promise-reject-errors
throw new Error(`Variable ${name} not defined`);
}
}
Expand Down Expand Up @@ -568,9 +565,9 @@ class Parser {
async commandPrint (value) {
if (/^((".*"|[^"]*);([^;]*))$/.test(value)) {
const args = value.match(/(.*);(.*)$/);
// eslint-disable-next-line promise/catch-or-return

const parsedValue = await this.parseValue(args[1], true);
// eslint-disable-next-line promise/no-nesting

let parsedArgs = await Promise.all(
CommandParser.resolveValues(CommandParser.extractValues(args[2], ' ')).reduce((result, arg) => {
result.push(this.parseValue(arg, true));
Expand Down
1 change: 0 additions & 1 deletion src/web-workbench/classes/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export function generateCommands (commands) {
}

export function parseParsedCommand (command, parsedInput) {
// eslint-disable-next-line complexity
return command.args.reduce((result, arg) => {
const name = [].concat(arg.name);
if (name.length < 1) {
Expand Down
1 change: 0 additions & 1 deletion src/web-workbench/classes/CommandParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default class CommandParser {
this.#mathParser = mathParser;
}

// eslint-disable-next-line complexity
async parse (input) {
const origin = input;

Expand Down
2 changes: 1 addition & 1 deletion src/web-workbench/classes/ConsoleInterface/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class ConsoleInterface {
/**
* @override
*/
// eslint-disable-next-line no-empty-function

clear (...args) {
// console.clear(...args);
}
Expand Down
1 change: 0 additions & 1 deletion src/web-workbench/classes/FileSystem/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export default class Item {
#data;
#action;

// eslint-disable-next-line complexity
constructor ({
locked = false,
id = null,
Expand Down
2 changes: 0 additions & 2 deletions src/web-workbench/classes/FileSystem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,6 @@ export default class FileSystem {
return item;
}

// eslint-disable-next-line complexity
async makedir (path, name, options) {
const { ignore } = Object.assign({ ignore: false, override: false }, options);

Expand Down Expand Up @@ -388,7 +387,6 @@ export default class FileSystem {
return item;
}

// eslint-disable-next-line complexity
async makefile (path, name, data, options) {
const { override, meta } = Object.assign({ override: false, meta: [] }, options);
const item = new ItemFile({
Expand Down
1 change: 0 additions & 1 deletion src/web-workbench/classes/MathParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ try {
REGEX_BRACKETS = /([^\w$%]?)\(([^\\(\\)]+)\)/;
REGEX_BRACKETS_START = /^\((.*)\)$/;

// eslint-disable-next-line security/detect-unsafe-regex
// eslint-disable-next-line prefer-regex-literals
REGEX_MULTIPLY = new RegExp('[^\\d$\\-\\w]?(?<a>([+-]?[\\w.]+e\\+\\d+)|([+-]?[\\w$%.]+)|(^[+-]?[\\w$%.]+)|([\\w$%.]+)|([$]{3}\\d+))[ ]*(?<operator>[\\^*%\\/]|MOD|XOR|AND|OR|<<|>>|>>>)[ ]*(?<b>([-]?[\\w.]+e\\+\\d+)|([-]?[\\w$%.]+)|(^[+-]?[\\w$%.]+)|([\\w$%.]+)|([$]{3}\\d+))'); ;

Expand Down
1 change: 0 additions & 1 deletion src/web-workbench/classes/SymbolItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default class SymbolItem {
visible: true
};

// eslint-disable-next-line complexity
constructor ({
fsItem = null,

Expand Down
1 change: 0 additions & 1 deletion src/web-workbench/classes/modules/Screen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ export default class Screen extends Module {
}
}

// eslint-disable-next-line no-empty-function
global.oncontextmenu = (e) => {
e.preventDefault();
};
1 change: 0 additions & 1 deletion src/web-workbench/services/domEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ class DomEvents {
}
});

// eslint-disable-next-line complexity
this.keyUp.subscribe(({ keyCode, location }) => {
switch (keyCode) {
case 91:
Expand Down
3 changes: 0 additions & 3 deletions vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ export default defineConfig({
include: [
'test/*.test.js'
],
exclude: [
'test/firebaseWrapper.test.js'
],
testTimeout: 60_000,
hookTimeout: 140_000
}
Expand Down

0 comments on commit 1eb70f1

Please sign in to comment.