# eslint-plugin **Repository Path**: mirrors_NativeScript/eslint-plugin ## Basic Information - **Project Name**: eslint-plugin - **Description**: ESLint plugin for NativeScript projects. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-13 - **Last Updated**: 2026-01-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # NativeScript ESLint Plugin ESLint rules for NativeScript projects. ## Installation and setup 1. Install ``` npm i -D @nativescript/eslint-plugin @typescript-eslint/parser eslint ``` 2. Add an `.eslintrc.json` config file with the following content. **.eslintrc.json** ```json { "parser": "@typescript-eslint/parser", "parserOptions": { "sourceType": "module", "ecmaVersion": 2015 }, "plugins": ["@nativescript"], "extends": [ "plugin:@nativescript/recommended" ] } ``` 3. Lint the project. ``` npx eslint --ext=ts src/ ``` **Notice that you need to provide the path to your source code. In the example above, we use `src/`. Change that to match your project setup.** 4. Fix all auto-fixable problems. ``` npx eslint --ext=ts --fix src/ ``` 5. [Optional] Set up VSCode to use `eslint`. - Install the `dbaeumer.vscode-eslint` extension. - Add the following to your `settings.json` file: ```json "eslint.validate": [ "typescript", "javascript" ], ```