Skip to content

Commit 0903e2e

Browse files
committed
added prettier config settings
1 parent f68803e commit 0903e2e

File tree

6 files changed

+5221
-5215
lines changed

6 files changed

+5221
-5215
lines changed

.eslintrc.json

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"commonjs": true,
5-
"es2021": true
6-
},
7-
"extends": [
8-
"eslint:recommended",
9-
"airbnb-base"
10-
],
11-
"parser": "@typescript-eslint/parser",
12-
"parserOptions": {
13-
"ecmaVersion": "latest"
14-
},
15-
"plugins": [
16-
"@typescript-eslint"
17-
],
18-
"rules": {
19-
"indent": [
20-
"warn",
21-
2,
22-
{
23-
"SwitchCase": 1
24-
}
25-
]
26-
}
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es2021": true
6+
},
7+
"extends": ["eslint:recommended", "airbnb-base"],
8+
"parser": "@typescript-eslint/parser",
9+
"parserOptions": {
10+
"ecmaVersion": "latest"
11+
},
12+
"plugins": ["@typescript-eslint"],
13+
"rules": {
14+
"indent": [
15+
"warn",
16+
2,
17+
{
18+
"SwitchCase": 1
19+
}
20+
]
21+
}
2722
}

.prettierrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 4,
4+
"semi": true,
5+
"singleQuote": true,
6+
"printWidth": 100,
7+
"bracketSpacing": true,
8+
"arrowParens": "always",
9+
"proseWrap": "never"
10+
}

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: node_js
22
node_js:
3-
- 16
3+
- 16
44
branches:
5-
only:
6-
- dev
5+
only:
6+
- dev
77
script:
8-
- "npm run lint"
9-
# - "npm run test"
8+
- 'npm run lint'
9+
# - "npm run test"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# graph-beaver
2-
A GraphQL rate limiting library using query complexity analysis.
2+
3+
A GraphQL rate limiting library using query complexity analysis.

0 commit comments

Comments
 (0)