Skip to content

Commit

Permalink
chore: use @openally/config.eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxken committed Dec 25, 2024
1 parent 67eefeb commit e035e81
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
31 changes: 10 additions & 21 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,25 +1,14 @@
// Import Node.js Dependencies
import path from "node:path";
import { fileURLToPath } from "node:url";
import { ESLintConfig } from "@openally/config.eslint";

// Import Third-party Dependencies
import { FlatCompat } from "@eslint/eslintrc";
export default [
...ESLintConfig,
{
languageOptions: {
sourceType: "module",

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const compat = new FlatCompat({
baseDirectory: __dirname
});

export default [{
ignores: ["**/node_modules/", "**/tmp/", "**/dist/", "**/coverage/", "**/fixtures/", "**/public/lib"]
}, ...compat.extends("@nodesecure/eslint-config"), {
languageOptions: {
sourceType: "module",

parserOptions: {
requireConfigFile: false
parserOptions: {
requireConfigFile: false
}
}
}
}];
];
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
"zup": "0.0.2"
},
"devDependencies": {
"@nodesecure/eslint-config": "2.0.0-beta.0",
"@openally/config.eslint": "^1.1.0",
"@openally/config.typescript": "^1.0.3",
"@types/node": "^22.2.0",
"c8": "^10.1.2",
"eslint": "^9.8.0",
"glob": "^11.0.0",
"open": "^10.1.0"
},
Expand Down

0 comments on commit e035e81

Please sign in to comment.