ESLint

Introduction

Unlike other Code Checkers, TICS will use the ESLint package from the project's workspace. The reason for this is:

Therefore, to prevent version conflicts and ensure dependency completeness, ESLint needs to be installed and configured inside the project's workspace.

Prerequisites

In order to perform Coding Standard analysis for JavaScript and TypeScript, the following requirements have to be fulfilled:

ESLint installation

Please follow this tutorial to get started with ESLint and setup all its necessities. Also make sure to:

Troubleshooting

When transitioning from the legacy way of ESLint analysis where the ESLint package was provided by TIOBE or when ESLint was not used before, the above mentioned prerequisites will not be fulfilled. When attempting to run TICS without these prerequisites, errors will be prompted. The following errors are known and can likely be resolved:

ESLint couldn't find a configuration file
The tool 'npx' is not available
SyntaxError: Unexpected token
Suspiciously low violation count