Skip to content

Commit

Permalink
chore: update packages 2024-08-02
Browse files Browse the repository at this point in the history
* Update packages

* Update eslint 9.8.0
  • Loading branch information
tmorell authored Aug 2, 2024
1 parent b9216b3 commit 360813e
Show file tree
Hide file tree
Showing 5 changed files with 585 additions and 2,029 deletions.
16 changes: 4 additions & 12 deletions .eslintrc.ext.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"rules": {
"@stylistic/js/brace-style": "error",
"@stylistic/js/comma-spacing": "error",
"@stylistic/js/semi": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "generic"
}
],
"@typescript-eslint/ban-tslint-comment": "error",
"@typescript-eslint/brace-style": "error",
"@typescript-eslint/comma-spacing": "error",
"@typescript-eslint/consistent-indexed-object-style": "error",
"@typescript-eslint/consistent-type-assertions": [
"error",
Expand Down Expand Up @@ -37,14 +38,6 @@
"accessibility": "no-public"
}
],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi"
}
}
],
"@typescript-eslint/no-confusing-non-null-assertion": "error",
"@typescript-eslint/no-dupe-class-members": "error",
"@typescript-eslint/no-dynamic-delete": "error",
Expand All @@ -69,12 +62,10 @@
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-literal-enum-member": "error",
"@typescript-eslint/semi": "error",
"@typescript-eslint/unified-signatures": "error",
"comma-dangle": ["error", "always-multiline"],
"eqeqeq": "error",
"function-paren-newline": ["error", "consistent"],
"import/no-duplicates": "error",
"key-spacing": "error",
"keyword-spacing": [
"error",
Expand All @@ -88,6 +79,7 @@
],
"linebreak-style": ["error", "unix"],
"max-classes-per-file": "error",
"no-duplicate-imports": "error",
"no-async-promise-executor": "error",
"no-await-in-loop": "error",
"no-loss-of-precision": "error",
Expand Down
12 changes: 0 additions & 12 deletions .eslintrc.js

This file was deleted.

36 changes: 36 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import stylisticJs from "@stylistic/eslint-plugin-js";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
{
ignores: ["**/*.js", "**/docs", "**/layers", "**/lib", "**/node_modules", "tests/mock-packages"],
},
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"./.eslintrc.ext.json",
),
{
plugins: {
"@typescript-eslint": typescriptEslint,
"@stylistic/js": stylisticJs,
},
languageOptions: {
parser: tsParser,
},
},
];
Loading

0 comments on commit 360813e

Please sign in to comment.