-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate codebase on typescript (#59)
* refactor: migrate codebase on typescript BREAKING CHANGE: removed flowtype definitions; min supported nodejs version is 8 * chore: update prettier
- Loading branch information
Showing
55 changed files
with
1,644 additions
and
8,950 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,50 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier/@typescript-eslint', | ||
'plugin:prettier/recommended', | ||
], | ||
parserOptions: { | ||
sourceType: 'module', | ||
useJSXTextNode: true, | ||
project: [path.resolve(__dirname, 'tsconfig.json')], | ||
}, | ||
rules: { | ||
'no-underscore-dangle': 0, | ||
'arrow-body-style': 0, | ||
'no-unused-expressions': 0, | ||
'no-plusplus': 0, | ||
'no-console': 0, | ||
'func-names': 0, | ||
'comma-dangle': [ | ||
'error', | ||
{ | ||
arrays: 'always-multiline', | ||
objects: 'always-multiline', | ||
imports: 'always-multiline', | ||
exports: 'always-multiline', | ||
functions: 'ignore', | ||
}, | ||
], | ||
'no-prototype-builtins': 0, | ||
'prefer-destructuring': 0, | ||
'no-else-return': 0, | ||
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }], | ||
'@typescript-eslint/explicit-member-accessibility': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-inferrable-types': 0, | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/no-use-before-define': 0, | ||
'@typescript-eslint/no-empty-function': 0, | ||
'@typescript-eslint/camelcase': 0, | ||
'@typescript-eslint/ban-ts-comment': 0, | ||
}, | ||
env: { | ||
jasmine: true, | ||
jest: true, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,40 +1,3 @@ | ||
## master | ||
## 0.0.0-semantically-released | ||
|
||
## 0.0.0-semantically-released (September 12, 2016) | ||
This package publishing automated by [semantic-release](https://github.com/semantic-release/semantic-release). | ||
[Changelog](https://github.com/nodkz/graphql-compose/releases) is generated automatically and can be found here: https://github.com/nodkz/graphql-compose/releases | ||
|
||
## 1.0.8 (September 6, 2016) | ||
- Update dependencies | ||
- Flowtype 0.32 | ||
- Fix code style issues | ||
|
||
## 1.0.7 (August 15, 2016) | ||
- fix: babel build via the workaround https://phabricator.babeljs.io/T2877#78089 Huh, it's too tricky to use Map/Set in ES5. | ||
|
||
## 1.0.6 (August 13, 2016) | ||
- fix: babel build process | ||
|
||
## 1.0.5 (August 10, 2016) | ||
- Update packages, add `babel-plugin-transform-runtime` for build process. Fix [issue](https://github.com/nodkz/graphql-compose-connection/issues/2) for vanilla node.js users without babel (thanks @jacobbubu). | ||
|
||
## 1.0.4 (August 9, 2016) | ||
- Add `ofType` property to `Connection` and `Edge` types. | ||
Connection type is some kind of wrapper under GraphQLNamedType. | ||
This behavior needed for `graphql-compose` module in `projection` helper, otherwise, it incorrectly constructs projectionMapper for tricky fields. | ||
|
||
## 1.0.3 (July 22, 2016) | ||
- If `first` or `last` args not provided, then get first 20 records by default. | ||
|
||
## 1.0.2 (July 20, 2016) | ||
- fix: return non-empty PageInfo if records not found | ||
|
||
## 1.0.1 (July 18, 2016) | ||
* Add fallback to `sort` arg, due [unexpected behavior](https://github.com/graphql/graphql-js/issues/435#issuecomment-233297537) of defaultValue for enum field | ||
* Move `graphql-compose` module to peerDependencies. | ||
|
||
## 1.0.0 (July 15, 2016) | ||
* Production ready version | ||
|
||
## 0.0.1 (July 10, 2016) | ||
* Initial commit | ||
This package publishing automated by [semantic-release](https://github.com/semantic-release/semantic-release). Changelog is generated automatically and can be found here: https://github.com/graphql-compose/graphql-compose-connection/releases |
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.