GitXplorerGitXplorer
k

eslint-plugin-tscompat

public
7 stars
2 forks
5 issues

Commits

List of commits on branch main.
Verified
d81c043a2a6cc077ecaf3f3c301b3636bd9ac513

Remove JSR deployment

kkoddsson committed 4 days ago
Verified
71c0c4cbfe32f44bd3c70e4060bc126c23451317

Create LICENSE

kkoddsson committed 4 days ago
Verified
60d08402ad396f65a907914b533dde41367958d4

Merge pull request #245 from serkodev/fix/allow-empty-browserlist

kkoddsson committed 4 days ago
Verified
5baffe537e7ebd6cc7e919d97e53970edde06a2a

Merge pull request #244 from at-wat/handle-class-inheritance

kkoddsson committed 5 days ago
Verified
8035482db90b12b9955cc60fd28d178ee32e3c19

Merge branch 'main' into handle-class-inheritance

kkoddsson committed 5 days ago
Verified
4c993427495bf5c6d9fb36e857d0ad2e39ffe0a2

Merge pull request #247 from koddsson/dependabot/npm_and_yarn/typescript-eslint-8.19.1

ggithub-actions[bot] committed 5 days ago

README

The README file for this repository.

@koddsson/eslint-plugin-tscompat

A type-aware browser compatability ESLint rule

Install

Assuming you already have ESLint installed, run:

npm install @koddsson/eslint-plugin-tscompat --save-dev

Usage

Then extend the recommended eslint config:

import tscompat from "@koddsson/eslint-plugin-tscompat";
import parser from "@typescript-eslint/parser";

export default [
  {
    plugins: {
      tscompat,
    },
    rules: {
      "tscompat/tscompat": [
        "error",
        { browserslist: [">0.3%", "last 2 versions", "not dead"] },
      ],
    },
    languageOptions: {
      parser,
      parserOptions: {
        project: ["./tsconfig.json"],
        tsconfigRootDir: __dirname,
      },
    },
  },
];