UNPKG

@runejs/eslint-config

Version:

A standard set of ESLint rules for all RuneJS projects.

33 lines (21 loc) 916 B
[![RuneJS Discord Server](https://img.shields.io/discord/678751302297059336?label=RuneJS%20Discord&logo=discord)](https://discord.gg/5P74nSh) [![RuneJS](https://i.imgur.com/QSXNzwC.png)](https://github.com/runejs/) # ESLint Config A standard set of ESLint rules for all RuneJS projects. ## Installation Required peer dependencies: * `eslint` * `@typescript-eslint/parser` * `@typescript-eslint/eslint-plugin` Install the RuneJS eslint config and the required peer dependencies with the following: `npm i --save-dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin @runejs/eslint-config` ## Usage Create a `.eslintrc` file in your project's root directory or add an entry for `eslintConfig` in your `package.json` with the following configuration: ``` { "extends": [ "@runejs" ], "parserOptions": { "project": "./tsconfig.json" } } ```