Skip to content

Commit 1eb2f0c

Browse files
committed
Fix
1 parent 0577b50 commit 1eb2f0c

File tree

9 files changed

+506
-1203
lines changed

9 files changed

+506
-1203
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

.prettierrc.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

.yarn/install-state.gz

1.12 MB
Binary file not shown.

eslint.config.mjs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import path from "node:path";
2+
import { fileURLToPath } from "node:url";
3+
import js from "@eslint/js";
4+
import { FlatCompat } from "@eslint/eslintrc";
5+
6+
const __filename = fileURLToPath(import.meta.url);
7+
const __dirname = path.dirname(__filename);
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
recommendedConfig: js.configs.recommended,
11+
allConfig: js.configs.all
12+
});
13+
14+
export default [
15+
{
16+
ignores: ["**/vendor/"]
17+
},
18+
{
19+
files: ["**/*.js"],
20+
languageOptions: {
21+
globals: {
22+
// For Node.js
23+
module: true,
24+
require: true,
25+
console: true,
26+
setTimeout: true,
27+
clearTimeout: true,
28+
29+
// For Jest
30+
beforeAll: true,
31+
afterAll: true,
32+
it: true,
33+
expect: true,
34+
describe: true
35+
}
36+
},
37+
},
38+
...compat.extends("eslint:recommended")
39+
];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@semantic-release/git": "^9.0.0",
3131
"babel-jest": "^26.0.1",
3232
"concurrently": "4.1.0",
33-
"eslint-config-gusto": "^10.1.0",
33+
"eslint": "^9.19.0",
3434
"graphql-tag": "^2.10.3",
3535
"jest": "^26.0.1",
3636
"minimist": "^1.2.6",

spec/.eslintrc.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

spec/eslint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import globals from "globals";
2+
3+
export default [{
4+
languageOptions: {
5+
globals: {
6+
...globals.jest,
7+
},
8+
},
9+
}];

0 commit comments

Comments
 (0)