score:3
these errors are reported by jshint linter, not by phpstorm itself. you have to tell jshint that you are using es2015 syntax. this can be done by adding
/*jshint esversion: 6 */
comment to your file (http://jshint.com/docs/options/#esversion), or by specifying
{
"esversion": 6
}
in .jshintrc
file. if you don't have your own config file, you can enable ecmascript.next in relaxing options in settings | languages & frameworks | javascript | code quality tools | jshint
if you didn't mean to use jshint for linting your react application (and i'd say that this linter is a bit outdated and doesn't work well for jsx + es6), just disable it by unchecking enable in settings | languages & frameworks | javascript | code quality tools | jshint
Source: stackoverflow.com
Related Query
- PhpStorm for React gives me a red underline
- How to get rid of underline for Link component of React Router?
- React Testing Library gives console error for ReactDOM.render in React 18
- Symlinking react modules with npm link for local development gives error
- Fetching a github repo in react gives a "Module "stream" has been externalized for browser compatibility and cannot be accessed in client code" error
- How to implement transition effect for displaying underline on hovering a react router Link?
- How to prevent use my API which gives data for my React app
- Jasmine test for React gives error and doesn't run tests
- React table 7 gives issue for unique key
- React Proptypes gives error while generating Proptypes for a component
- why browserify build gives error for react build?
- React userSelector gives undefined value for the first time
- React hooks includes() for checking if a value exists in array gives one wrong answer every time
- React gives unique key warning for radiobutton (in map) despites unique keys being supplied
- I have downloaded nodejs for react but when my powershell open to install external tools it gives error shown in the image:-
- Can't set columns for react data grid. Gives non assignable type error
- How to remove the red line for a react button containing a js link
- React Hook Warnings for async function in useEffect: useEffect function must return a cleanup function or nothing
- React PropTypes: Allow different types of PropTypes for one prop
- React prop validation for date objects
- OnChange event using React JS for drop down
- Typescript react - Could not find a declaration file for module ''react-materialize'. 'path/to/module-name.js' implicitly has an any type
- Multiple path names for a same component in React Router
- Does React keep the order for state updates?
- react hooks useEffect() cleanup for only componentWillUnmount?
- How to create unique keys for React elements?
- How React JS index.js file contacting index.html for id references?
- ESLint with React gives `no-unused-vars` errors
- Using mixins vs components for code reuse in Facebook React
- How to specify (optional) default props with TypeScript for stateless, functional React components?
More Query from same tag
- Accessing onChange event from child component (React/Redux)
- How to create dynamic routes with react-router-dom?
- Map of dropdown buttons, check if id is clicked
- React - jquery module not found
- How to segregate JSON and show the largest number
- How to update ApolloClient authorization header after successful login?
- How can I change the state of clicked button only in react hooks
- React Native build failed: 'React/RCTBridge.h' file not found
- Push state of reactive value to dependencies
- HTML markup within a Component JSX attribute
- Send setState("") as function to new component
- Meteor: trigger template.event to call an external server with react in blaze template
- Passing props in React Typescript using custom hooks
- Can't create a footer for page with Material-UI Drawer
- Ant design - How to adjust table column width by dragging?
- React.PropTypes array with specific length
- React - How to independently toggle items from an array (loaded from DB)?
- Mapping array of props objects reduce(sum) values in objects in React
- Server-side render does not render UI library
- react-router: How to get activeClassName to work for non-exact routes?
- Function inside function in react.js
- How to access the "key" property from a reactjs component
- Could not find "store" in either the context or props of
- Having issues making requests to an API using AJAX
- React: Converting mongoDB date to human readable date
- Import custom JS in create-react-app
- Ant Design Form validation required field
- useEffect getting called multiple times
- How do I check the missing fields while comparing an array and an object?
- Next js multiple dynamic pages