Coder Social home page Coder Social logo

morewings / cra-template-quickstart-redux Goto Github PK

View Code? Open in Web Editor NEW
66.0 2.0 4.0 4.49 MB

Opinionated quickstart Create React App template with Redux, React Testing Library and custom eslint configuration

Home Page: https://github.com/morewings/cra-template-quickstart-redux/wiki

License: MIT License

HTML 4.26% JavaScript 92.36% CSS 3.02% Shell 0.36%
create-react-app cra-template redux react reactjs eslint starter-template testing-library react-testing-library cra

cra-template-quickstart-redux's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar morewings avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cra-template-quickstart-redux's Issues

.eslintrc does not seem to be reloaded

Hi,

for some reason I still get

propType "onChange" is not required, but has no corresponding defaultProps declaration react/require-default-props

after adding "react/require-default-props": 0 to the .eslintrc rules section.

Restarting the bundler does not help.

Is there any config of my ide that could be messing this up? I am using VS Code but already tried disabling their eslint plugin.

Something similarly annoying happens when 'import/no-unresolved' prevents the app from building, because it cannot find an index.js file that is clearly where it should be.

Any ideas how to debug this?

Thanks a lot.

Update Husky

  • Update Husky to 6
  • Check if postinstall issue fixed

Take new Snapshots

Hello,

I'm trying to figure out what to do to take new snapshots.
I just added a new component to familiarize myself with React and Redux.
In order to be able to push the current status to my git repository, I have to take a new snapshot.

    SyntaxError: ~/my-project/src/components/Counter/Counter.spec.js: Unexpected token (30:6)

      28 |     /* We can only use enzyme `mount`, no `shallow`, since we are using React hooks, which `shallow` doesn't support */
      29 |     const wrapper = mount(
    > 30 |       <Provider store={store}>
         |       ^
      31 |         <Counter />
      32 |       </Provider>
      33 |     );

      at Parser.raise (node_modules/@babel/parser/src/parser/location.js:41:63)
      at Parser.unexpected (node_modules/@babel/parser/src/parser/util.js:150:16)
      at Parser.parseExprAtom (node_modules/@babel/parser/src/parser/expression.js:1123:20)
      at Parser.parseExprSubscripts (node_modules/@babel/parser/src/parser/expression.js:529:23)
      at Parser.parseMaybeUnary (node_modules/@babel/parser/src/parser/expression.js:509:21)
      at Parser.parseExprOps (node_modules/@babel/parser/src/parser/expression.js:279:23)
      at Parser.parseMaybeConditional (node_modules/@babel/parser/src/parser/expression.js:234:23)
      at Parser.parseMaybeAssign (node_modules/@babel/parser/src/parser/expression.js:185:21)
      at Parser.parseExprListItem (node_modules/@babel/parser/src/parser/expression.js:2077:18)
      at Parser.parseCallExpressionArguments (node_modules/@babel/parser/src/parser/expression.js:817:14)

Perhaps it would also be helpful for other beginners to describe this in more detail.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.