-
Notifications
You must be signed in to change notification settings - Fork 13
/
.eslintrc.js
28 lines (28 loc) · 869 Bytes
/
.eslintrc.js
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
module.exports = {
extends: [
"standard",
"plugin:react/recommended",
"plugin:prettier/recommended",
],
plugins: ["standard", "react", "react-hooks", "prettier"],
rules: {
"react/prop-types": "warn",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"no-unused-vars": "warn",
},
settings: {
react: {
version: "detect",
},
},
globals: {
__GATSBY_PLUGIN_SANITY_IMAGE__BASE_URL__: "readonly",
__GATSBY_PLUGIN_SANITY_IMAGE__DATASET__: "readonly",
__GATSBY_PLUGIN_SANITY_IMAGE__PROJECTID__: "readonly",
__GATSBY_PLUGIN_SANITY_IMAGE__ALT_FIELD__: "readonly",
__GATSBY_PLUGIN_SANITY_IMAGE__DEFAULT_IMAGE_CONFIG__: "readonly",
__GATSBY_PLUGIN_SANITY_IMAGE__MISSING_ALT_WARNING__: "readonly",
__GATSBY_PLUGIN_SANITY_IMAGE__EMPTY_ALT_FALLBACK__: "readonly",
},
}