Skip to content

Commit 9d9b87a

Browse files
author
Marek Rozmus
committed
Fix code review issues and clean up code
1 parent b0f6665 commit 9d9b87a

14 files changed

+1488
-662
lines changed

examples/.eslintrc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
22
"env": {
3-
"browser": true,
4-
"node": true
3+
"browser": true
54
},
65
"extends": ["plugin:prettier/recommended", "plugin:react/recommended"],
76
"parser": "babel-eslint",
7+
"plugins": ["react-hooks"],
88
"settings": {
99
"react": {
1010
"version": "detect"
1111
}
1212
},
1313
"rules": {
14-
"no-undef": "error"
14+
"no-undef": "error",
15+
"react-hooks/rules-of-hooks": "error",
16+
"react-hooks/exhaustive-deps": "warn"
1517
}
1618
}

examples/.stylelintrc

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"ignoreFiles": ["**/*.js"],
3+
"extends": "stylelint-config-standard",
4+
"rules": {
5+
"selector-pseudo-class-no-unknown": [
6+
true,
7+
{
8+
"ignorePseudoClasses": [
9+
"export",
10+
"import",
11+
"global",
12+
"local"
13+
]
14+
}
15+
],
16+
"property-no-unknown": [
17+
true,
18+
{
19+
"ignoreProperties": [
20+
"composes",
21+
"compose-with"
22+
]
23+
}
24+
],
25+
"at-rule-no-unknown": [
26+
true,
27+
{
28+
"ignoreAtRules": [
29+
"value"
30+
]
31+
}
32+
]
33+
}
34+
}

0 commit comments

Comments
 (0)