This repository has been archived by the owner on Sep 10, 2024. It is now read-only.
forked from apify/apify-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
71 lines (71 loc) · 2.1 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"extends": [
"@apify/eslint-config-ts",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parserOptions": {
"files": ["*.js", "*.jsx", "*.ts", "*.tsx"],
"project": "./tsconfig.eslint.json",
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2022
},
"plugins": [
"@typescript-eslint"
],
"root": true,
"env": {
"browser": true,
"es2020": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"quote-props": ["error", "consistent"],
"react/prop-types": ["off"],
"import/extensions": ["off"],
"no-void": ["off"]
},
"overrides": [
{
"files": [
"CONTRIBUTING.md",
"README.md",
"./sources/**/*.{js,json,ts,md}"
],
"parserOptions": {
"files": ["*.js", "*.jsx", "*.ts", "*.tsx", "*.md", "*.mdx"],
"project": null,
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2022
},
"extends":[
"@apify/eslint-config-ts",
"plugin:markdown/recommended",
"plugin:json/recommended-with-comments"
],
"rules": {
// general things that are fine to have in code snippets
"import/no-extraneous-dependencies": "off",
"import/order": "off",
"no-console": "off",
"no-underscore-dangle": "off",
"@typescript-eslint/no-unused-vars": "off",
// not possible to use those for markdown code snippets
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/await-thenable": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/promise-function-async": "off"
}
}
],
"ignorePatterns": ["examples/"]
}