Skip to content

Commit 76f2d09

Browse files
authoredJan 30, 2023
chore: add prettier to eslint run (#327)
1 parent 6c758d0 commit 76f2d09

20 files changed

+726
-602
lines changed
 

‎.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
flow-typed/

‎.eslintrc

+5-13
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,24 @@
55

66
"parser": "babel-eslint",
77

8+
"plugins": ["prettier"],
9+
810
"env": {
911
"es6": true,
1012
"node": true,
1113
"jest": true
1214
},
1315

1416
"rules": {
15-
"array-bracket-spacing": [2, "always"],
16-
"arrow-parens": [2, "as-needed"],
17-
"arrow-spacing": 2,
1817
"block-scoped-var": 0,
19-
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
2018
"callback-return": 2,
2119
"camelcase": [2, {"properties": "always"}],
2220
"comma-dangle": 0,
2321
"comma-spacing": 0,
24-
"comma-style": [2, "last"],
2522
"complexity": 0,
2623
"computed-property-spacing": [2, "never"],
2724
"consistent-return": 0,
2825
"consistent-this": 0,
29-
"curly": [2, "all"],
3026
"default-case": 0,
3127
"dot-location": [2, "property"],
3228
"dot-notation": 0,
@@ -39,14 +35,12 @@
3935
"handle-callback-err": [2, "error"],
4036
"id-length": 0,
4137
"id-match": [2, "^(?:_?[a-zA-Z0-9]*)|[_A-Z0-9]+$"],
42-
"indent": [2, 2, {"SwitchCase": 1}],
4338
"init-declarations": 0,
4439
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
4540
"keyword-spacing": 2,
4641
"linebreak-style": 2,
4742
"lines-around-comment": 0,
4843
"max-depth": 0,
49-
"max-len": [2, 80, 4],
5044
"max-nested-callbacks": 0,
5145
"max-params": 0,
5246
"max-statements": 0,
@@ -155,16 +149,12 @@
155149
"object-shorthand": [2, "always"],
156150
"one-var": [2, "never"],
157151
"operator-assignment": [2, "always"],
158-
"operator-linebreak": [2, "after"],
159-
"padded-blocks": 0,
160152
"prefer-const": 0,
161153
"prefer-reflect": 0,
162154
"prefer-spread": 0,
163155
"quote-props": [2, "as-needed"],
164-
"quotes": [2, "single"],
165156
"radix": 2,
166157
"require-yield": 2,
167-
"semi": [2, "always"],
168158
"semi-spacing": [2, {"before": false, "after": true}],
169159
"sort-vars": 0,
170160
"space-before-blocks": [2, "always"],
@@ -180,6 +170,8 @@
180170
"vars-on-top": 0,
181171
"wrap-iife": 2,
182172
"wrap-regex": 0,
183-
"yoda": [2, "never", {"exceptRange": true}]
173+
"yoda": [2, "never", {"exceptRange": true}],
174+
175+
"prettier/prettier": 2
184176
}
185177
}

‎CONTRIBUTING.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ We want to make contributing to this project as easy and transparent as
44
possible.
55

66
## Code of Conduct
7+
78
This project's code of conduct is described in the GraphQL Foundation's [`CODE_OF_CONDUCT.md`](https://github.com/graphql/foundation/blob/master/CODE-OF-CONDUCT.md)
89

910
## Pull Requests
@@ -26,9 +27,9 @@ clear and has sufficient instructions to be able to reproduce the issue.
2627

2728
## Coding Style
2829

29-
* 2 spaces for indentation rather than tabs
30-
* 80 character line length
31-
* See .eslintrc for the gory details.
30+
- 2 spaces for indentation rather than tabs
31+
- 80 character line length
32+
- See .eslintrc for the gory details.
3233

3334
## License
3435

0 commit comments

Comments
 (0)
Please sign in to comment.