-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GraphQL v16 compatibility * Remove TSLint
- Loading branch information
Showing
40 changed files
with
1,661 additions
and
1,803 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "./tsconfig.json" | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"standard", | ||
"prettier", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"max-len": "off", | ||
"arrow-parens": "off", | ||
"no-shadow": "off", | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"comma-dangle": "off", | ||
"sort-keys": "off", | ||
"max-classes-per-file": "off" | ||
}, | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"**/{test,tests,testing}/**/*.{ts,js}", | ||
"*.{spec,test}.{ts,js}" | ||
], | ||
"env": { | ||
"jest": true | ||
}, | ||
"rules": { | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"import/no-extraneous-dependencies": "off" | ||
} | ||
} | ||
], | ||
"ignorePatterns": [ | ||
"dist", | ||
"node_modules" | ||
] | ||
} |
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,3 @@ | ||
{ | ||
"trailingComma": "none" | ||
} |
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,20 @@ | ||
const { writeFileSync } = require('fs'); | ||
const { resolve } = require('path'); | ||
const { argv, cwd } = require('process'); | ||
|
||
const pkgPath = resolve(cwd(), './package.json'); | ||
|
||
const pkg = require(pkgPath); | ||
|
||
const version = argv[2]; | ||
|
||
if (pkg.devDependencies.graphql.startsWith(version)) { | ||
console.info(`GraphQL v${version} is match! Skipping.`); | ||
return; | ||
} | ||
|
||
// If it is not stable version, use pinned version | ||
const npmVersion = version.includes('-') ? version : `^${version}`; | ||
pkg.devDependencies.graphql = npmVersion; | ||
|
||
writeFileSync(pkgPath, JSON.stringify(pkg, null, 2), 'utf8'); |
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
Oops, something went wrong.