File tree Expand file tree Collapse file tree 5 files changed +40
-8
lines changed
features/users/userscontainer Expand file tree Collapse file tree 5 files changed +40
-8
lines changed Original file line number Diff line number Diff line change 22 "env" : {
33 "node" : true ,
44 "browser" : true ,
5- "es6" : true
5+ "commonjs" : true ,
6+ "es2021" : true
67 },
7- "extends" : " next/core-web-vitals" ,
8+ "extends" : [
9+ " next/core-web-vitals" ,
10+ " eslint:recommended" ,
11+ " plugin:react/recommended" ,
12+ " plugin:react-hooks/recommended"
13+ ],
814 "plugins" : [
915 " eslint-plugin-react" , " eslint-plugin-react-hooks"
1016 ],
1521 "semi" : [" error" , " never" ],
1622 "no-unused-vars" : " error" ,
1723 "no-undef" : " error" ,
18- "no-trailing-spaces" : " error" ,
19- "no-console" : [" error" , { "allow" : [" error" ] }]
24+ "no-console" : [" error" , { "allow" : [" error" ] }],
25+ "react/react-in-jsx-scope" : " off" ,
26+ "no-restricted-imports" : [
27+ " error" , { "patterns" : [" @/features/*/*" ] }
28+ ]
2029 }
21- }
30+ }
Original file line number Diff line number Diff line change 1+ import PropTypes from 'prop-types'
12import HeadComponent from '../head'
23
3- export default function Page ( { children } ) {
4+ function Page ( { children } ) {
45 return (
56 < div style = { {
67 height : '100vh' ,
@@ -11,3 +12,10 @@ export default function Page ({ children }) {
1112 </ div >
1213 )
1314}
15+
16+ Page . propTypes = {
17+ children : PropTypes . node
18+ }
19+
20+ export default Page
21+
Original file line number Diff line number Diff line change 1+ import PropTypes from 'prop-types'
12import styles from './Card.module.css'
23
34function Card ( { children } ) {
@@ -8,4 +9,8 @@ function Card ({ children }) {
89 )
910}
1011
12+ Card . propTypes = {
13+ children : PropTypes . node
14+ }
15+
1116export default Card
Original file line number Diff line number Diff line change @@ -58,7 +58,9 @@ function UsersComponent ({
5858
5959UsersComponent . propTypes = {
6060 addUser : PropTypes . func ,
61- deleteUser : PropTypes . func
61+ deleteUser : PropTypes . func ,
62+ deleteTodo : PropTypes . func ,
63+ addTodo : PropTypes . func ,
6264}
6365
6466export default UsersComponent
Original file line number Diff line number Diff line change 1+ import PropTypes from 'prop-types'
12import { Provider } from 'react-redux'
23import { store } from '@/store/store'
34
45import '@/styles/globals.css'
56
6- export default function App ( { Component, pageProps } ) {
7+ function App ( { Component, pageProps } ) {
78 return (
89 < Provider store = { store } >
910 < Component { ...pageProps } />
1011 </ Provider >
1112 )
1213}
14+
15+ App . propTypes = {
16+ Component : PropTypes . func ,
17+ pageProps : PropTypes . object
18+ }
19+
20+ export default App
You can’t perform that action at this time.
0 commit comments