ReSharper 2021.1 Help

ReSharper by Language: JavaScript

ReSharper fully supports JavaScript up to ECMAScript 2016, including experimental features such as async/await, exponentiation operator and rest/spread in object literals/destructuring. jQuery and JSX syntax are supported as well.

By default, code inspection and other ReSharper features analyze JavaScript code according to the ECMAScript 5 standard, which is supported universally. If you use more advanced JavaScript code in your project, you can change the target ECMAScript level on the Code Editing | JavaScript | Inspections page of ReSharper options.

Descriptions of ReSharper features for JavaScript are grouped in the following topics:

Make ReSharper ignore specific code

ReSharper allows you to ignore specific files, folders and file masks in different ways. You can configure ignored files on the following options pages:

  • Code Inspection | Ignored Code to exclude files, folders, and masks from code inspection.

  • Code Inspection | Generated Code to partly disable code inspection for generated code.

  • Environment | Search & Navigation to specify files and folders that should be ignored by Search by Name commands.

  • Code Editing | Third-Party Code to add C++, JavaScript, TypeScript, CSS, HTML and JSON files, folders and wildcards to be treated either as 'skipped' or 'library'. ReSharper will completely ignore 'skipped' files, and treat 'library' files as read-only — indexed for navigation, but no inspections, quick-fixes and refactorings.

To improve performance, ReSharper also automatically detects and starts ignoring large web files that have no references and were probably added to the solution by mistake.

If any of such files are detected, you will see a notification where you can stop ignoring any of those files if you need them for some reason. You can also find all automatically ignored files on the Code Editing | Third-Party Code page of ReSharper options (Alt+R, O).

To stop auto-detection and ignoring large unused web files, clear the Search for web files that can affect performance and exclude them from indexing checkbox on the Code Editing | Third-Party Code page of ReSharper options (Alt+R, O).

Last modified: 15 March 2021