2.1.2 • Published 8 months ago

eslint-plugin-resulto v2.1.2

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

eslint-plugin-resulto

Build Size Version Maintained Issues

Installation

npm install --save-dev eslint @eslint/js typescript typescript-eslint eslint-plugin-resulto

Configuration

  1. Create/modify your tsconfig.json.
{
  "compilerOptions": {
    "strict": true
  }
}
  1. Create/modify your ESLint configuration file, i.e. eslint.config.mjs.
import js from "@eslint/js";
import resulto from "eslint-plugin-resulto";
import ts from "typescript-eslint";

export default ts.config(
  js.configs.recommended,
  ...ts.configs.recommended,
  resulto.configs.recommended,
);

See typescript-eslint docs for more info.

Hint

In Rust it is idiomatic to assign a must-used value to a variable named _ when you want to purposely discard this value.

To make this work in TypeScript without making ESLint or tsc angry you need to:

  1. Add this rule to your ESLint configuration file, i.e. eslint.config.mjs
export default ts.config({
  rules: {
    "@typescript-eslint/no-unused-vars": [
      "warn",
      {
        varsIgnorePattern: "^_",
      },
    ],
  },
});
  1. Make sure you do not have noUnusedLocals set to true in tsconfig.json
2.1.2

8 months ago

2.1.1

8 months ago

2.1.0

8 months ago

2.0.0-beta.2

10 months ago

2.0.0-beta.1

10 months ago

2.0.0-beta.0

10 months ago

2.0.1

10 months ago

2.0.0

10 months ago

2.0.0-beta.3

10 months ago

1.0.0

1 year ago

0.4.4

1 year ago

0.3.0

2 years ago

0.2.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago