Skip to content

ESLint configuration for all RuneJS related projects.

License

Notifications You must be signed in to change notification settings

runejs/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RuneJS Discord Server

RuneJS

@runejs/eslint-config

A standard set of ESLint rules for all RuneJS related 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/eslint-config" ],
}

Don't forget to include your project's specific parserOptions in the file:

{
    "extends": [ "@runejs/eslint-config" ],
    "parserOptions": {
        "project": "./tsconfig.json"
    }
}

About

ESLint configuration for all RuneJS related projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published