Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Aug 1, 2024
1 parent 0458405 commit 5d090de
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';

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 [...compat.extends("eslint:recommended"), {
languageOptions: {
globals: {
...globals.browser,
...globals.jquery,
},

ecmaVersion: 6,
sourceType: "script",
},
}];
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
);

0 comments on commit 5d090de

Please sign in to comment.