Skip to content

Commit bb3a2f1

Browse files
authored
Merge pull request #1 from oslabs-beta/sh/env-setup
Environment setup
2 parents 32c7e66 + 0903e2e commit bb3a2f1

File tree

11 files changed

+5264
-1
lines changed

11 files changed

+5264
-1
lines changed

.eslintrc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
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+
}
22+
}

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
# Runs all code quality tools prior to each commit.
5+
npx lint-staged

.prettierignore

Whitespace-only changes.

.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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
language: node_js
2+
node_js:
3+
- 16
4+
branches:
5+
only:
6+
- dev
7+
script:
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)