mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-16 09:42:42 +02:00
chore: bump npm dependencies
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import { defineConfig } from "eslint/config";
|
||||
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 babelParser from "@babel/eslint-parser";
|
||||
|
||||
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 defineConfig([{
|
||||
extends: compat.extends("eslint:recommended"),
|
||||
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.node,
|
||||
},
|
||||
|
||||
ecmaVersion: 8,
|
||||
sourceType: "module",
|
||||
parser: babelParser,
|
||||
|
||||
parserOptions: {
|
||||
requireConfigFile: false,
|
||||
},
|
||||
},
|
||||
|
||||
rules: {
|
||||
semi: 2,
|
||||
"no-unused-vars": "warn",
|
||||
},
|
||||
}]);
|
||||
Reference in New Issue
Block a user