generator-fountain-webapp icon indicating copy to clipboard operation
generator-fountain-webapp copied to clipboard

Error message when running project: "Unnecessarily quoted property 'edit' found quote-props"

Open felipe-gdr opened this issue 7 years ago • 8 comments

Description

I'm getting an error message when running npm run serve just after a fresh installation of this generator

Error Message & Stack Trace

ERROR in ./src/app/components/TodoTextInput.js

/Users/myusername/dev/jhipster-lab/fountain-webapp/src/app/components/TodoTextInput.js
  40:13  error  Unnecessarily quoted property 'edit' found  quote-props

✖ 1 problem (1 error, 0 warnings)

Config

Copy the content from .yo-rc.json:

{
  "generator-fountain-react": {
    "version": "1.0.0",
    "props": {
      "framework": "react",
      "modules": "webpack",
      "js": "babel",
      "ci": "",
      "css": "scss",
      "resolved": "/usr/local/lib/node_modules/generator-fountain-webapp/node_modules/generator-fountain-react/generators/app/index.js",
      "namespace": "fountain-react:app",
      "_": [],
      "sample": "todoMVC",
      "router": "router"
    }
  }
}

Environment

node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
Node.js v6.10.0
darwin 15.6.0

yo --version
1.8.5

npm --version
3.10.10

felipe-gdr avatar Mar 04 '17 18:03 felipe-gdr

The error message goes away when I removed the quotes from the edit property.

File: TodoTextInput.js:38-42

        className={
          classnames({
            'edit': this.props.editing,
            'new-todo': this.props.newTodo
          })}

After fix:

        className={
          classnames({
            edit: this.props.editing,
            'new-todo': this.props.newTodo
          })}

felipe-gdr avatar Mar 04 '17 18:03 felipe-gdr

Yep, that fixed it. Thanks a million!

habpygo avatar Mar 09 '17 10:03 habpygo

Thanks, Felipe!

besopmac avatar Mar 13 '17 20:03 besopmac

Yup, was having same issue, thanks for posting solution.

mattinteractive avatar Apr 14 '17 18:04 mattinteractive

Nice one, fixed the issue. Problem can be found near the bottom of the 'src/app/components' folder.

wr125 avatar Apr 15 '17 15:04 wr125

should be: className={ classnames({ edit: this.props.editing, 'new-todo': this.props.newTodo })}

original is: className={ classnames({ 'edit': this.props.jditing, 'new-todo': this.props.newTodo })}

mphz avatar May 05 '17 09:05 mphz

Still in TodoTextInput.js 40:13 the singlequotes should be removed.

mortensassi avatar May 14 '17 23:05 mortensassi

Fixed the issue for me also. Thanks!!!

DamienBriggs avatar Feb 09 '18 16:02 DamienBriggs