Skip to content

Commit

Permalink
Merge pull request #721 from mittwald/dependabot/npm_and_yarn/eslint-…
Browse files Browse the repository at this point in the history
…9.9.1

chore(deps-dev): bump eslint from 8.57.0 to 9.9.1
  • Loading branch information
martin-helmich authored Aug 28, 2024
2 parents 739b35e + 902a74b commit 93e256a
Show file tree
Hide file tree
Showing 41 changed files with 183 additions and 193 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

34 changes: 0 additions & 34 deletions .eslintrc.yml

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/glob-npm-7.2.3-2d866d17a5-29452e97b3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
74 changes: 74 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

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",
"**/*.test.ts",
"**/dist/**/*",
"**/dist-cjs/**/*",
"**/build/",
"**/.yarn/",
],
},
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
),
{
plugins: {
"@typescript-eslint": typescriptEslint,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
},

parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",
},

rules: {
"linebreak-style": ["error", "unix"],

quotes: [
"error",
"double",
{
avoidEscape: true,
},
],

semi: ["error", "always"],

"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "[iI]gnored",
argsIgnorePattern: "([iI]gnored|_)",
caughtErrorsIgnorePattern: "[iI]gnored",
},
],

curly: ["error", "all"],
},
},
];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.0.2",
"@yarnpkg/pnpify": "^4.0.0-rc.48",
"eslint": "^8.44.0",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-json": "^4.0.0",
"eslint-plugin-prettier": "^5.1.3",
Expand Down
Loading

0 comments on commit 93e256a

Please sign in to comment.