Skip to content

Commit 42fdd8b

Browse files
author
Olivier YOUF
committed
feat: removing recompose for React Hooks
1 parent 08bee3d commit 42fdd8b

35 files changed

+871
-656
lines changed

exercice-sample/.eslintrc

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"extends": [
3+
"airbnb",
4+
"plugin:prettier/recommended",
5+
"prettier",
6+
"prettier/react",
7+
"react-app"
8+
],
9+
"plugins": ["react", "prettier", "react-hooks"],
10+
"env": {
11+
"browser": true,
12+
"node": true,
13+
"es6": true,
14+
"jest": true
15+
},
16+
"parserOptions": {
17+
"ecmaVersion": 6,
18+
"ecmaFeatures": {
19+
"jsx": true
20+
}
21+
},
22+
"rules": {
23+
"react/jsx-filename-extension": [
24+
2,
25+
{
26+
"extensions": [".js", ".jsx"]
27+
}
28+
],
29+
"linebreak-style": 0,
30+
"import/no-extraneous-dependencies": "warn",
31+
"import/no-unresolved": "off",
32+
"import/named": "warn",
33+
"import/prefer-default-export": "off",
34+
"jsx-a11y/aria-role": 1,
35+
"jsx-a11y/href-no-hash": "off",
36+
"jsx-a11y/label-has-for": 1,
37+
"jsx-a11y/no-autofocus": 1,
38+
"jsx-a11y/no-noninteractive-element-interactions": 1,
39+
"jsx-a11y/anchor-is-valid": 1,
40+
"prettier/prettier": "warn",
41+
"react/forbid-prop-types": 0,
42+
"react/jsx-closing-bracket-location": 0,
43+
"react/no-multi-comp": 0,
44+
"react/no-unused-prop-types": 1,
45+
"react/prop-types": 0,
46+
"react/no-unescaped-entities": 1,
47+
"react/jsx-closing-tag-location": 0,
48+
"react-hooks/rules-of-hooks": "error",
49+
"react-hooks/exhaustive-deps": "error"
50+
},
51+
"settings": {
52+
"import/resolver": {
53+
"node": {
54+
"moduleDirectory": ["node_modules", "./src"]
55+
}
56+
}
57+
}
58+
}

exercice-sample/.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": true,
3+
"semi": true,
4+
"trailingComma": "all",
5+
"jsxBracketSameLine": false,
6+
"arrowParens": "avoid",
7+
"printWidth": 150
8+
}

0 commit comments

Comments
 (0)