Skip to content

Commit 0f7112f

Browse files
committed
Sync eslint config with crystal repo
1 parent ed8c5d7 commit 0f7112f

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.eslintrc.js

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
module.exports = {
22
root: true,
3-
parser: "@typescript-eslint/parser",
3+
parser: "@babel/eslint-parser",
4+
parserOptions: {
5+
sourceType: "module",
6+
},
47
env: {
8+
jest: true,
59
node: true,
610
es6: true,
711
"jest/globals": true,
812
},
9-
plugins: ["@typescript-eslint", "jest", "graphile-export"],
13+
plugins: [
14+
"@typescript-eslint",
15+
"jest",
16+
//"tsdoc",
17+
//"simple-import-sort",
18+
//"import",
19+
"graphile-export",
20+
],
1021
extends: [
1122
"eslint:recommended",
23+
"plugin:@typescript-eslint/eslint-recommended",
1224
"plugin:@typescript-eslint/recommended",
25+
// "plugin:import/errors",
26+
// "plugin:import/typescript",
1327
"plugin:graphile-export/recommended",
1428
"plugin:jest/recommended",
1529
"prettier",
1630
],
1731
rules: {
1832
"jest/expect-expect": ["off"],
33+
"@typescript-eslint/no-var-requires": ["off"],
1934
},
2035
};

0 commit comments

Comments
 (0)