Skip to content

Commit

Permalink
Merge pull request #37 from snow-actions/dependabot/npm_and_yarn/esli…
Browse files Browse the repository at this point in the history
…nt-9.17.0

Bump eslint from 6.3.0 to 9.17.0
  • Loading branch information
SnowCait authored Dec 28, 2024
2 parents 54162fd + e1e6563 commit b1ad042
Show file tree
Hide file tree
Showing 3 changed files with 912 additions and 2,588 deletions.
29 changes: 29 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import globals from "globals";
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 [...compat.extends("eslint:recommended"), {
languageOptions: {
globals: {
...globals.commonjs,
...globals.node,
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},

ecmaVersion: 2018,
sourceType: "commonjs",
},

rules: {},
}];
Loading

0 comments on commit b1ad042

Please sign in to comment.