-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add EXPORTABLE methods for schema export support (#202)
- Loading branch information
Showing
16 changed files
with
4,099 additions
and
1,532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,55 @@ | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
parser: "@babel/eslint-parser", | ||
parserOptions: { | ||
sourceType: "module", | ||
}, | ||
env: { | ||
jest: true, | ||
node: true, | ||
es6: true, | ||
"jest/globals": true, | ||
}, | ||
plugins: ["@typescript-eslint", "jest"], | ||
plugins: [ | ||
"@typescript-eslint", | ||
"jest", | ||
//"tsdoc", | ||
//"simple-import-sort", | ||
//"import", | ||
"graphile-export", | ||
], | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
// "plugin:import/errors", | ||
// "plugin:import/typescript", | ||
"plugin:graphile-export/recommended", | ||
"plugin:jest/recommended", | ||
"prettier", | ||
], | ||
rules: { | ||
"jest/expect-expect": ["off"], | ||
"no-fallthrough": ["error", { allowEmptyCase: true }], | ||
"@typescript-eslint/no-var-requires": ["off"], | ||
"@typescript-eslint/no-explicit-any": ["off"], | ||
// We need this for our `GraphileBuild`/`GraphileConfig`/etc namespaces | ||
"@typescript-eslint/no-namespace": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
args: "after-used", | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
// Rules for TypeScript only | ||
{ | ||
files: ["*.ts", "*.tsx"], | ||
parser: "@typescript-eslint/parser", | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Babel config, used by Jest | ||
module.exports = { | ||
plugins: ["@babel/plugin-transform-modules-commonjs"], | ||
presets: [ | ||
[ | ||
"@babel/env", | ||
{ | ||
targets: { | ||
node: "16.12", | ||
}, | ||
}, | ||
], | ||
"@babel/preset-typescript", | ||
], | ||
env: { | ||
test: { | ||
plugins: ["babel-plugin-transform-import-meta"], | ||
presets: [ | ||
[ | ||
"@babel/env", | ||
{ | ||
targets: { | ||
node: "current", | ||
}, | ||
}, | ||
], | ||
"@babel/preset-typescript", | ||
], | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.