Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
chore: update to eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxken committed Jul 31, 2024
1 parent 44b2c28 commit 5f2e10b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 10 deletions.
7 changes: 0 additions & 7 deletions .eslintrc

This file was deleted.

40 changes: 40 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Import Node.js Dependencies
import path from "node:path";
import { fileURLToPath } from "node:url";

// Import Third-party Dependencies
import { FlatCompat } from "@eslint/eslintrc";

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/"
]
},
...compat.extends("@nodesecure/eslint-config"),
{
languageOptions: {
sourceType: "module",
parserOptions: {
requireConfigFile: false
}
},
rules: {
"func-style": "off",
"no-invalid-this": "off",
"no-inner-declarations": "off",
"no-case-declarations": "off"
}
}
];
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test": "npm run test-only && npm run test:tsd",
"test:tsd": "npm run build && tsd",
"coverage": "c8 -r html npm test",
"lint": "cross-env eslint src/*.ts"
"lint": "eslint src/**/*.ts"
},
"repository": {
"type": "git",
Expand All @@ -36,13 +36,12 @@
},
"homepage": "https://github.com/NodeSecure/rc#readme",
"devDependencies": {
"@nodesecure/eslint-config": "^1.8.0",
"@nodesecure/eslint-config": "^2.0.0-beta.0",
"@types/lodash.merge": "^4.6.7",
"@types/node": "^22.0.0",
"@types/zen-observable": "^0.8.4",
"ajv": "^8.12.0",
"c8": "^10.1.2",
"eslint": "^9.2.0",
"glob": "^11.0.0",
"tsd": "^0.31.0",
"tsx": "^4.9.3",
Expand Down

0 comments on commit 5f2e10b

Please sign in to comment.