Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
palant committed Jun 18, 2024
1 parent b5325d6 commit 54ba653
Show file tree
Hide file tree
Showing 7 changed files with 449 additions and 416 deletions.
77 changes: 0 additions & 77 deletions .eslintrc.json

This file was deleted.

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

let rules = {
"no-console": "off",
"no-unused-vars": "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-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",
"require-yield": "warn",
"quotes": [
"error",
"double",
{
"avoidEscape": true
}
],
"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"
};

export default [
js.configs.recommended,
{
files: ["*.js", "lib/**/*.js"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node,
...globals.es6,
},
},
rules
},
{
files: ["test/**/*.js"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.mocha,
expect: "readonly"
},
},
rules
},
];
1 change: 0 additions & 1 deletion lib/rewriteCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ export default function rewriteCode(ast)
{
let newNode = undefined;
let patterns = rewritePatterns.slice();
// eslint-disable-next-line no-constant-condition
while (true)
{
let result = rewriteNode(newNode || node, parent, patterns, scopeManager);
Expand Down
Loading

0 comments on commit 54ba653

Please sign in to comment.