0.2.10 • Published 2 years ago

@runes-security/eslint-config v0.2.10

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

runes-security/eslint-config

Usage

Applying the ruleset to your project is quick and easy. You install the package, then create an .eslintrc.js file and select an appropriate project profile.

1. Install the package

To install the package, do this:

npm install -D eslint @runes-security/eslint-config

2. Configure the linter

Create an .eslintrc.js config file that provides the Node.js __dirname context for TypeScript, as shown below:

.eslintrc.js
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require("@runes-security/eslint-config/modern-module-resolution");

module.exports = {
    root: true,
    extends: [
        "@runes-security/eslint-config", /* or */
        "@runes-security/eslint-config/react"
    ],
    parserOptions: {
        tsconfigRootDir: __dirname
    }
};