Skip to content

Commit fc429ac

Browse files
committed
chore: small fixes in code style settings
1 parent a4a24b1 commit fc429ac

File tree

5 files changed

+35
-45
lines changed

5 files changed

+35
-45
lines changed

.markdownlint.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"line-length": false,
3+
"no-trailing-punctuation": {
4+
"punctuation": ",;"
5+
},
6+
"no-inline-html": false,
7+
"ol-prefix": false,
8+
"first-line-h1": false,
9+
"first-heading-h1": false
10+
}

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"prettier.eslintIntegration": true,
3+
"eslint.validate": [
4+
"javascript",
5+
],
6+
"javascript.validate.enable": false
7+
}

README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
[![travis build](https://img.shields.io/travis/graphql-compose/graphql-compose-pagination.svg)](https://travis-ci.org/graphql-compose/graphql-compose-pagination)
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)
5-
[![](https://img.shields.io/npm/v/graphql-compose-pagination.svg)](https://www.npmjs.com/package/graphql-compose-pagination)
6-
[![npm](https://img.shields.io/npm/dt/graphql-compose-pagination.svg)](http://www.npmtrends.com/graphql-compose-pagination)
5+
[![npm](https://img.shields.io/npm/v/graphql-compose-pagination.svg)](https://www.npmjs.com/package/graphql-compose-pagination)
6+
[![trend](https://img.shields.io/npm/dt/graphql-compose-pagination.svg)](http://www.npmtrends.com/graphql-compose-pagination)
77
[![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)
88
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
99
[![Greenkeeper badge](https://badges.greenkeeper.io/graphql-compose/graphql-compose-pagination.svg)](https://greenkeeper.io/)
@@ -14,17 +14,16 @@ Live demo: [https://graphql-compose.herokuapp.com/](https://graphql-compose.hero
1414

1515
[CHANGELOG](https://github.com/graphql-compose/graphql-compose-pagination/blob/master/CHANGELOG.md)
1616

17-
Installation
18-
============
19-
```
17+
## Installation
18+
19+
```bash
2020
npm install graphql graphql-compose graphql-compose-pagination --save
2121
```
2222

2323
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.
2424

25+
## Example
2526

26-
Example
27-
=======
2827
```js
2928
import composeWithPagination from 'graphql-compose-pagination';
3029
import userTypeComposer from './user.js';
@@ -37,17 +36,17 @@ composeWithPagination(userTypeComposer, {
3736

3837
<img width="832" alt="screen shot 2017-08-07 at 23 31 46" src="https://user-images.githubusercontent.com/1946920/29038210-ad2390e4-7bc8-11e7-8143-ff0cca2b39cc.png">
3938

40-
Requirements
41-
============
39+
## Requirements
40+
4241
Types should have following resolvers:
43-
* `count` - for records count
44-
* `findMany` - for filtering records. Resolver `findMany` should have `limit` and `skip` args.
4542

46-
Used in plugins
47-
===============
43+
- `count` - for records count
44+
- `findMany` - for filtering records. Resolver `findMany` should have `limit` and `skip` args.
45+
46+
## Used in plugins
47+
4848
[graphql-compose-mongoose](https://github.com/graphql-compose/graphql-compose-mongoose) - converts mongoose models to graphql types
4949

50+
## License
5051

51-
License
52-
=======
5352
[MIT](https://github.com/graphql-compose/graphql-compose-pagination/blob/master/LICENSE.md)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"flow": "./node_modules/.bin/flow",
7777
"test": "npm run coverage && npm run lint && npm run flow",
7878
"link": "yarn build && yarn link graphql-compose && yarn link",
79-
"unlink": "yarn unlink graphql-compose && yarn add graphql-compose",
79+
"unlink": "rimraf node_modules && yarn install",
8080
"semantic-release": "semantic-release"
8181
}
8282
}

yarn.lock

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,7 +1903,7 @@ debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8:
19031903
dependencies:
19041904
ms "2.0.0"
19051905

1906-
debuglog@*, debuglog@^1.0.1:
1906+
debuglog@^1.0.1:
19071907
version "1.0.1"
19081908
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
19091909

@@ -3217,7 +3217,7 @@ import-local@^1.0.0:
32173217
pkg-dir "^2.0.0"
32183218
resolve-cwd "^2.0.0"
32193219

3220-
imurmurhash@*, imurmurhash@^0.1.4:
3220+
imurmurhash@^0.1.4:
32213221
version "0.1.4"
32223222
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
32233223

@@ -4270,39 +4270,17 @@ lockfile@^1.0.4:
42704270
dependencies:
42714271
signal-exit "^3.0.2"
42724272

4273-
lodash._baseindexof@*:
4274-
version "3.1.0"
4275-
resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c"
4276-
42774273
lodash._baseuniq@~4.6.0:
42784274
version "4.6.0"
42794275
resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8"
42804276
dependencies:
42814277
lodash._createset "~4.0.0"
42824278
lodash._root "~3.0.0"
42834279

4284-
lodash._bindcallback@*:
4285-
version "3.0.1"
4286-
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e"
4287-
4288-
lodash._cacheindexof@*:
4289-
version "3.0.2"
4290-
resolved "https://registry.yarnpkg.com/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz#3dc69ac82498d2ee5e3ce56091bafd2adc7bde92"
4291-
4292-
lodash._createcache@*:
4293-
version "3.1.2"
4294-
resolved "https://registry.yarnpkg.com/lodash._createcache/-/lodash._createcache-3.1.2.tgz#56d6a064017625e79ebca6b8018e17440bdcf093"
4295-
dependencies:
4296-
lodash._getnative "^3.0.0"
4297-
42984280
lodash._createset@~4.0.0:
42994281
version "4.0.3"
43004282
resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26"
43014283

4302-
lodash._getnative@*, lodash._getnative@^3.0.0:
4303-
version "3.9.1"
4304-
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
4305-
43064284
lodash._root@~3.0.0:
43074285
version "3.0.1"
43084286
resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692"
@@ -4339,10 +4317,6 @@ lodash.map@^4.5.1:
43394317
version "4.6.0"
43404318
resolved "https://registry.yarnpkg.com/lodash.map/-/lodash.map-4.6.0.tgz#771ec7839e3473d9c4cde28b19394c3562f4f6d3"
43414319

4342-
lodash.restparam@*:
4343-
version "3.6.1"
4344-
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805"
4345-
43464320
lodash.sortby@^4.7.0:
43474321
version "4.7.0"
43484322
resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438"
@@ -5834,7 +5808,7 @@ readable-stream@~1.1.10:
58345808
isarray "0.0.1"
58355809
string_decoder "~0.10.x"
58365810

5837-
readdir-scoped-modules@*, readdir-scoped-modules@^1.0.0:
5811+
readdir-scoped-modules@^1.0.0:
58385812
version "1.0.2"
58395813
resolved "https://registry.yarnpkg.com/readdir-scoped-modules/-/readdir-scoped-modules-1.0.2.tgz#9fafa37d286be5d92cbaebdee030dc9b5f406747"
58405814
dependencies:

0 commit comments

Comments
 (0)