Skip to content

Commit

Permalink
reformat with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Granitosaurus committed Jul 20, 2023
1 parent 1a86bc5 commit 580402c
Show file tree
Hide file tree
Showing 27 changed files with 1,373 additions and 1,153 deletions.
47 changes: 21 additions & 26 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
{
"env": {
"browser": false,
"es6": true,
"node": true
},
"ignorePatterns": ["**/*.d.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module",
"ecmaVersion": 2020
},
"plugins": ["@typescript-eslint", "jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"prettier"
],
"rules": {
// The following rule is enabled only to supplement the inline suppression
// examples, and because it is not a recommended rule, you should either
// disable it, or understand what it enforces.
// https://typescript-eslint.io/rules/explicit-function-return-type/
"@typescript-eslint/explicit-function-return-type": "warn"
}
"env": {
"browser": false,
"es6": true,
"node": true
},
"ignorePatterns": ["**/*.d.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module",
"ecmaVersion": 2020
},
"plugins": ["@typescript-eslint", "jest"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:jest/recommended", "prettier"],
"rules": {
// The following rule is enabled only to supplement the inline suppression
// examples, and because it is not a recommended rule, you should either
// disable it, or understand what it enforces.
// https://typescript-eslint.io/rules/explicit-function-return-type/
"@typescript-eslint/explicit-function-return-type": "warn"
}
}
22 changes: 12 additions & 10 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"singleQuote": true,
"trailingComma": "all",
"overrides": [
{
"files": ["*.ts", "*.mts"],
"options": {
"parser": "typescript"
}
}
]
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120,
"tabWidth": 4,
"overrides": [
{
"files": ["*.ts", "*.mts"],
"options": {
"parser": "typescript"
}
}
]
}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ See [/examples](./examples/) for more.

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

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

## Development

Expand All @@ -45,4 +45,4 @@ Build and test:
```shell
$ npm task build
$ npm task tests
```
```
Loading

0 comments on commit 580402c

Please sign in to comment.