Skip to content

Commit 77844ff

Browse files
committed
refactor: migrate codebase on typescript
BREAKING CHANGE: removed flowtype definitions; min supported nodejs version is 8
1 parent ce968a4 commit 77844ff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+840
-18963
lines changed

.babelrc

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

.eslintrc

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

.eslintrc.js

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint', 'prettier'],
6+
extends: [
7+
'plugin:@typescript-eslint/recommended',
8+
'prettier/@typescript-eslint',
9+
'plugin:prettier/recommended',
10+
],
11+
parserOptions: {
12+
sourceType: 'module',
13+
useJSXTextNode: true,
14+
project: [path.resolve(__dirname, 'tsconfig.json')],
15+
},
16+
rules: {
17+
'no-underscore-dangle': 0,
18+
'arrow-body-style': 0,
19+
'no-unused-expressions': 0,
20+
'no-plusplus': 0,
21+
'no-console': 0,
22+
'func-names': 0,
23+
'comma-dangle': [
24+
'error',
25+
{
26+
arrays: 'always-multiline',
27+
objects: 'always-multiline',
28+
imports: 'always-multiline',
29+
exports: 'always-multiline',
30+
functions: 'ignore',
31+
},
32+
],
33+
'no-prototype-builtins': 0,
34+
'prefer-destructuring': 0,
35+
'no-else-return': 0,
36+
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
37+
'@typescript-eslint/explicit-member-accessibility': 0,
38+
'@typescript-eslint/no-explicit-any': 0,
39+
'@typescript-eslint/no-inferrable-types': 0,
40+
'@typescript-eslint/explicit-function-return-type': 0,
41+
'@typescript-eslint/no-use-before-define': 0,
42+
'@typescript-eslint/no-empty-function': 0,
43+
'@typescript-eslint/camelcase': 0,
44+
'@typescript-eslint/ban-ts-comment': 0,
45+
},
46+
env: {
47+
jasmine: true,
48+
jest: true,
49+
},
50+
};

.flowconfig

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

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ notifications:
99
node_js:
1010
- "10"
1111
- "12"
12+
- "14"
1213
before_install: yarn global add greenkeeper-lockfile@1
1314
before_script: greenkeeper-lockfile-update
1415
after_script: greenkeeper-lockfile-upload

AUTHORS

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

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
## master
22

33
This package publishing automated by [semantic-release](https://github.com/semantic-release/semantic-release).
4-
[Changelog](https://github.com/nodkz/graphql-compose-pagination/releases) is generated automatically and can be found here: https://github.com/nodkz/graphql-compose-pagination/releases
4+
Changelog is generated automatically and can be found here: <https://github.com/graphql-compose/graphql-compose-pagination/releases>

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
[![codecov coverage](https://img.shields.io/codecov/c/github/graphql-compose/graphql-compose-pagination.svg)](https://codecov.io/github/graphql-compose/graphql-compose-pagination)
55
[![npm](https://img.shields.io/npm/v/graphql-compose-pagination.svg)](https://www.npmjs.com/package/graphql-compose-pagination)
66
[![trend](https://img.shields.io/npm/dt/graphql-compose-pagination.svg)](http://www.npmtrends.com/graphql-compose-pagination)
7-
[![Join the chat at https://gitter.im/graphql-compose/Lobby](https://badges.gitter.im/graphql-compose/graphql-compose.svg)](https://gitter.im/graphql-compose/Lobby)
87
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
9-
[![Greenkeeper badge](https://badges.greenkeeper.io/graphql-compose/graphql-compose-pagination.svg)](https://greenkeeper.io/)
108

119
This is a plugin for [graphql-compose](https://github.com/graphql-compose/graphql-compose) family, which adds to the ObjectTypeComposer `pagination` resolver.
1210

@@ -20,7 +18,7 @@ Live demo: [https://graphql-compose.herokuapp.com/](https://graphql-compose.hero
2018
npm install graphql graphql-compose graphql-compose-pagination --save
2119
```
2220

23-
Modules `graphql` and `graphql-compose` are in `peerDependencies`, so should be installed explicitly in your app. They should not installed as submodules, cause internally checks the classes instances.
21+
Modules `graphql` and `graphql-compose` are in `peerDependencies`, so should be installed explicitly in your app. They should not installed as sub-modules, cause internally checks the classes instances.
2422

2523
## Example
2624

flow-typed/npm/@babel/cli_vx.x.x.js

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

0 commit comments

Comments
 (0)