Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tubaxenor committed Feb 3, 2025
1 parent 0577b50 commit 1eb2f0c
Show file tree
Hide file tree
Showing 9 changed files with 506 additions and 1,203 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc.js

This file was deleted.

1 change: 0 additions & 1 deletion .prettierrc.js

This file was deleted.

Binary file added .yarn/install-state.gz
Binary file not shown.
39 changes: 39 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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 [
{
ignores: ["**/vendor/"]
},
{
files: ["**/*.js"],
languageOptions: {
globals: {
// For Node.js
module: true,
require: true,
console: true,
setTimeout: true,
clearTimeout: true,

// For Jest
beforeAll: true,
afterAll: true,
it: true,
expect: true,
describe: true
}
},
},
...compat.extends("eslint:recommended")
];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@semantic-release/git": "^9.0.0",
"babel-jest": "^26.0.1",
"concurrently": "4.1.0",
"eslint-config-gusto": "^10.1.0",
"eslint": "^9.19.0",
"graphql-tag": "^2.10.3",
"jest": "^26.0.1",
"minimist": "^1.2.6",
Expand Down
5 changes: 0 additions & 5 deletions spec/.eslintrc.js

This file was deleted.

9 changes: 9 additions & 0 deletions spec/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import globals from "globals";

export default [{
languageOptions: {
globals: {
...globals.jest,
},
},
}];
Loading

0 comments on commit 1eb2f0c

Please sign in to comment.