Skip to content

Commit

Permalink
Migrate to new config format
Browse files Browse the repository at this point in the history
  • Loading branch information
azrsh committed Aug 3, 2024
1 parent 6f1a73f commit 6634ffd
Show file tree
Hide file tree
Showing 5 changed files with 269 additions and 245 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

18 changes: 0 additions & 18 deletions .eslintrc.js

This file was deleted.

35 changes: 35 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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: ["**/dist", "**/.eslintrc.js"],
}, ...compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"), {
plugins: {
"@typescript-eslint": typescriptEslint,
},

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

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

rules: {},
}];
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.8.0",
"@typescript-eslint/eslint-plugin": "8.0.0",
"@typescript-eslint/parser": "8.0.0",
"eslint": "9.8.0",
"eslint-config-prettier": "9.1.0",
"globals": "^15.9.0",
"prettier": "3.3.3",
"ts-node": "10.9.2",
"typescript": "5.5.4"
Expand All @@ -29,5 +32,6 @@
},
"dependencies": {
"@slack/bolt": "3.19.0"
}
},
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}
Loading

0 comments on commit 6634ffd

Please sign in to comment.