@rezstream/eslint-plugin

1.4.0 • Public • Published

eslint-plugin-rezstream

CI npm version

An opinionated collection of ESLint shared configs and rules used by rezStream projects.

Installation

npm install --save-dev @rezstream/eslint-plugin

Inside your .eslintrc.cjs file:

{
  extends: [
    "plugin:@rezstream/recommended",
  ],
  plugins: [
    "@rezstream",
  ],
}

Available configs

Name Description
@rezstream/recommended Base config for all projects
@rezstream/browser Config for browser based projects
@rezstream/typescript Config for TypeScript projects

Using with Typescript

When adding this plugin to a TypeScript project, you'll need to install the following packages:

npm install --save-dev eslint-import-resolver-typescript

You may also need to add some or all of the following settings to your .eslintrc.cjs file:

{
  parserOptions: {
    project: "./tsconfig.json",
  },
  settings: {
    "import/resolver": {
      typescript: {
        alwaysTryTypes: true,
        project: join(__dirname, "./tsconfig.json"),
      },
    },
  },
}

Readme

Keywords

none

Package Sidebar

Install

npm i @rezstream/eslint-plugin

Weekly Downloads

95

Version

1.4.0

License

MIT

Unpacked Size

6.96 kB

Total Files

7

Last publish

Collaborators

  • jglinsek
  • adandy-rs
  • xt0rted