![]() ![]() With ESLint, you can also use JavaScript Standard Style. IntelliJ IDEA shows warnings and errors reported by ESLint right in the editor, as you type. ESLint brings a wide range of linting rules that can also be extended with plugins. Select Run 'npm install' from the context menu of the package.json file in your project root.īesides providing built-in code inspections, IntelliJ IDEA also integrates with linters, such as ESLint, for JSX code. In the embedded Terminal ( Alt+F12), type: To download the project dependencies, do one of the following: ![]() Npx create-react-app to create an application. IntelliJ IDEA also creates an npm start and JavaScript Debug configurations with default settings for running or debugging your application.Īlternatively, open the built-in Terminal and type: When you click Finish, IntelliJ IDEA generates a React-specific project with all the required configuration files and downloads the required dependencies. IntelliJ IDEA guarantees running and debugging Jest tests only with the react-scripts package. This can be one of the packages forked from react-scripts, for example, react-awesome-scripts, custom-react-scripts, react-scripts-ts, and so on. Specify a custom package to use instead of react-scripts during the project generation. When creating an application, select the folder where the create-react-app package is stored. Select a configured interpreter from the list or choose Add to configure a new one.įrom the create-react-app list, select npx create-react-app.Īlternatively, for npm version 5.1 and earlier, install the create-react-app package yourself by running npm install -g create-react-app in the Terminal Alt+F12. In the Node Interpreter field, specify the Node.js interpreter to use. On the second page of the wizard, specify the project name and the folder to create it in. In the right-hand pane, choose React App and click Next. ![]() In the New Project dialog, select Static Web in the left-hand pane. ![]() Select File | New | Project from the main menu or click the New Project button on the Welcome screen. Generating a React application with create-react-app ![]()
0 Comments
Leave a Reply. |