Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
palant committed Jun 21, 2024
1 parent 66e5af2 commit 6d6cd40
Show file tree
Hide file tree
Showing 8 changed files with 1,618 additions and 4,042 deletions.
87 changes: 0 additions & 87 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion build/html-validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async function* htmlValidate(files, options = {})
for await (let file of files)
{
file = await file.read();
reports.push(validator.validateString(file.contents, file.path));
reports.push(await validator.validateString(file.contents, file.path));
yield file;
}

Expand Down
6 changes: 3 additions & 3 deletions build/sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

import path from "path";

import sass from "sass";
import {compile} from "sass";

import {PhysicalFile, MemoryFile} from "builder";

export default async function* sass_(files)
export default async function* sass(files)
{
for await (let file of files)
{
Expand All @@ -25,6 +25,6 @@ export default async function* sass_(files)
// Replace file extension by .css
let newPath = path.join(path.dirname(file.path), path.basename(file.path, path.extname(file.path))) + ".css";

yield new MemoryFile(newPath, sass.compile(file.path).css);
yield new MemoryFile(newPath, compile(file.path).css);
}
}
6 changes: 0 additions & 6 deletions contentScript/.eslintrc.json

This file was deleted.

123 changes: 123 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
import globals from "globals";
import js from "@eslint/js";
import json from "eslint-plugin-json";
import vue from "eslint-plugin-vue";

let rules = {
"no-console": "off",
"array-bracket-spacing": "error",
"arrow-spacing": "error",
"brace-style": [
"error",
"allman"
],
"comma-spacing": "error",
"comma-style": "error",
"consistent-return": "error",
"computed-property-spacing": "error",
"eol-last": "error",
"indent": [
"error",
2,
{
"SwitchCase": 1,
"CallExpression": {
"arguments": "off"
},
"MemberExpression": "off",
"ArrayExpression": "off",
"ignoreComments": true
}
],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": "error",
"new-parens": "error",
"no-prototype-builtins": "off",
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"no-unused-vars": "off",
"no-var": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": "error",
"operator-assignment": "error",
"operator-linebreak": "error",
"padded-blocks": [
"error",
"never"
],
"prefer-rest-params": "warn",
"prefer-spread": "warn",
"quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"require-yield": "warn",
"require-atomic-updates": [
"off",
"https://github.com/eslint/eslint/issues/11899"
],
"semi": "error",
"semi-spacing": "error",
"space-before-function-paren": [
"error",
"never"
],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"yield-star-spacing": "error",
"vue/singleline-html-element-content-newline": "off",
"vue/multiline-html-element-content-newline": "off",
"vue/multi-word-component-names": "off",
"vue/max-attributes-per-line": "off"
};

export default [
{
ignores: ["build-firefox/**", "build-chrome/**", "build-web/**", "node_modules/**"]
},
js.configs.recommended,
json.configs.recommended,
...vue.configs["flat/recommended"],
{
files: ["*.js", "*.json", "build/**/*.js", "locale/**/*.json"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node,
...globals.es6,
},
},
rules,
},
{
files: ["contentScript/**/*.js"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
...globals.es6,
},
},
rules,
},
{
files: ["lib/**/*.js", "ui/**/*.js", "ui/**/*.vue", "!ui/third-party/**"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.webextensions,
...globals.es6,
},
},
rules,
},
];
Loading

0 comments on commit 6d6cd40

Please sign in to comment.