Skip to content

Commit 580402c

Browse files
committed
reformat with prettier
1 parent 1a86bc5 commit 580402c

27 files changed

+1373
-1153
lines changed

.eslintrc.json

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
11
{
2-
"env": {
3-
"browser": false,
4-
"es6": true,
5-
"node": true
6-
},
7-
"ignorePatterns": ["**/*.d.ts"],
8-
"parser": "@typescript-eslint/parser",
9-
"parserOptions": {
10-
"project": "tsconfig.json",
11-
"sourceType": "module",
12-
"ecmaVersion": 2020
13-
},
14-
"plugins": ["@typescript-eslint", "jest"],
15-
"extends": [
16-
"eslint:recommended",
17-
"plugin:@typescript-eslint/recommended",
18-
"plugin:jest/recommended",
19-
"prettier"
20-
],
21-
"rules": {
22-
// The following rule is enabled only to supplement the inline suppression
23-
// examples, and because it is not a recommended rule, you should either
24-
// disable it, or understand what it enforces.
25-
// https://typescript-eslint.io/rules/explicit-function-return-type/
26-
"@typescript-eslint/explicit-function-return-type": "warn"
27-
}
2+
"env": {
3+
"browser": false,
4+
"es6": true,
5+
"node": true
6+
},
7+
"ignorePatterns": ["**/*.d.ts"],
8+
"parser": "@typescript-eslint/parser",
9+
"parserOptions": {
10+
"project": "tsconfig.json",
11+
"sourceType": "module",
12+
"ecmaVersion": 2020
13+
},
14+
"plugins": ["@typescript-eslint", "jest"],
15+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:jest/recommended", "prettier"],
16+
"rules": {
17+
// The following rule is enabled only to supplement the inline suppression
18+
// examples, and because it is not a recommended rule, you should either
19+
// disable it, or understand what it enforces.
20+
// https://typescript-eslint.io/rules/explicit-function-return-type/
21+
"@typescript-eslint/explicit-function-return-type": "warn"
22+
}
2823
}

.prettierrc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
2-
"singleQuote": true,
3-
"trailingComma": "all",
4-
"overrides": [
5-
{
6-
"files": ["*.ts", "*.mts"],
7-
"options": {
8-
"parser": "typescript"
9-
}
10-
}
11-
]
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"printWidth": 120,
5+
"tabWidth": 4,
6+
"overrides": [
7+
{
8+
"files": ["*.ts", "*.mts"],
9+
"options": {
10+
"parser": "typescript"
11+
}
12+
}
13+
]
1214
}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ See [/examples](./examples/) for more.
2727

2828
You can create a free account on [Scrapfly](https://scrapfly.io/register) to get your API Key.
2929

30-
* [Usage](https://scrapfly.io/docs/sdk/python)
31-
* [Python API](https://scrapfly.github.io/python-scrapfly/scrapfly)
32-
* [Open API 3 Spec](https://scrapfly.io/docs/openapi#get-/scrape)
33-
* [Scrapy Integration](https://scrapfly.io/docs/sdk/scrapy)
30+
- [Usage](https://scrapfly.io/docs/sdk/python)
31+
- [Python API](https://scrapfly.github.io/python-scrapfly/scrapfly)
32+
- [Open API 3 Spec](https://scrapfly.io/docs/openapi#get-/scrape)
33+
- [Scrapy Integration](https://scrapfly.io/docs/sdk/scrapy)
3434

3535
## Development
3636

@@ -45,4 +45,4 @@ Build and test:
4545
```shell
4646
$ npm task build
4747
$ npm task tests
48-
```
48+
```

0 commit comments

Comments
 (0)