Skip to content

Commit fcc939b

Browse files
committed
Fix lint
1 parent fed23ed commit fcc939b

Some content is hidden

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

67 files changed

+1354
-846
lines changed

.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"no-console": "off",
1616
"no-prototype-builtins": "off",
1717
"no-useless-constructor": "off",
18-
"@typescript-eslint/ban-types": "warn",
1918
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
2019
"@typescript-eslint/no-use-before-define": "off",
2120
"@typescript-eslint/no-namespace": "off",

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,29 @@ about: Create a bug report to help us improve
77

88
<!-- PLEASE DO NOT REMOVE THIS SECTION -->
99

10-
_Progress of the issue based on the [Contributor Workflow](https://github.com/the-guild-org/Stack/blob/master/CONTRIBUTING.md#a-typical-contributor-workflow)_
10+
_Progress of the issue based on the
11+
[Contributor Workflow](https://github.com/the-guild-org/Stack/blob/master/CONTRIBUTING.md#a-typical-contributor-workflow)_
1112

1213
- [ ] 1. The issue provides a reproduction available on GitHub, Stackblitz or CodeSandbox
13-
> Make sure to fork this template and run `yarn generate` in the terminal.
14-
>
15-
> Please make sure the GraphQL Scalars package version under `package.json` matches yours.
14+
> Make sure to fork this template and run `yarn generate` in the terminal.
15+
>
16+
> Please make sure the GraphQL Scalars package version under `package.json` matches yours.
1617
- [ ] 2. A failing test has been provided
1718
- [ ] 3. A local solution has been provided
1819
- [ ] 4. A pull request is pending review
1920

2021
---
2122

2223
**Describe the bug**
24+
2325
<!-- A clear and concise description of what the bug is. -->
2426

25-
**To Reproduce**
26-
Steps to reproduce the behavior:
27+
**To Reproduce** Steps to reproduce the behavior:
2728

2829
<!-- Adding a codesandbox can help us understand the bug better and speed up things -->
2930

3031
**Expected behavior**
32+
3133
<!-- A clear and concise description of what you expected to happen. -->
3234

3335
**Environment:**
@@ -37,4 +39,5 @@ Steps to reproduce the behavior:
3739
- NodeJS:
3840

3941
**Additional context**
42+
4043
<!-- Add any other context about the problem here. -->
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
---
22
name: Feature Request
33
about: Suggest an idea for the core of this project
4-
54
---
65

76
**Is your feature request related to a problem? Please describe.**
87

98
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
109

1110
**Describe the solution you'd like**
11+
1212
<!-- A clear and concise description of what you want to happen. -->
1313

1414
**Describe alternatives you've considered**
15+
1516
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
1617

1718
**Additional context**
19+
1820
<!-- Add any other context or screenshots about the feature request here. -->

.prettierrc.cjs

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

.prettierrc.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import config from '@theguild/prettier-config';
2+
3+
export default {
4+
...config,
5+
proseWrap: 'always',
6+
};
7+

src/scalars/BigInt.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import { GraphQLScalarType, GraphQLScalarTypeConfig, print } from 'graphql';
32
import { createGraphQLError } from '../error.js';
43
import { serializeObject } from './utilities.js';

src/scalars/Timestamp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function parseDate(value: any) {
2020

2121
try {
2222
return new Date(value);
23-
} catch (err) {
23+
} catch {
2424
return null;
2525
}
2626
}

src/scalars/iso-date/DateTime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const GraphQLDateTimeConfig: GraphQLScalarTypeConfig<Date, Date> = /*#__P
3434
} else if (typeof value === 'number') {
3535
try {
3636
return new Date(value);
37-
} catch (e) {
37+
} catch {
3838
throw createGraphQLError('DateTime cannot represent an invalid Unix timestamp ' + value);
3939
}
4040
} else {

src/scalars/json/JSONObject.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import { GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
32
import { ensureObject, parseObject } from './utils.js';
43

src/scalars/json/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export function identity<T>(value: T): T {
55
return value;
66
}
77

8-
// eslint-disable-next-line @typescript-eslint/ban-types
98
export function ensureObject(value: any, ast?: ValueNode): object {
109
if (typeof value !== 'object' || value === null || Array.isArray(value)) {
1110
throw createGraphQLError(

0 commit comments

Comments
 (0)