1.4.0 • Published 10 months ago

@rezstream/eslint-plugin v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

NameDescription
@rezstream/recommendedBase config for all projects
@rezstream/browserConfig for browser based projects
@rezstream/typescriptConfig 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"),
      },
    },
  },
}