0.6.1 • Published 3 months ago

eslint-plugin-esm v0.6.1

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

eslint-plugin-esm

npm.io npm.io npm.io npm.io PRs Welcome

ESLint plugin for linting ESM (import/export syntax)

Feature

  • Faster than eslint-plugin-import.
  • Easier than eslint-plugin-import
  • Zero dependencies.

Requirement

  • ESLint >= 8.57.0

Usage

Install

npm i -D eslint eslint-plugin-esm

Config eslint.config.js

import * as esm from "eslint-plugin-esm";

export default [
  ...
  {
    files: ["**/*.{js,mjs,jsx,ts,mts,tsx}"],
    plugins: { esm },
    rules: {
      "esm/no-git-ignored-imports": "error"
      ...
      // Visit https://github.com/zanminkian/fenge/tree/main/packages/eslint-plugin-esm/doc/rules for more other rules
    },
  },
  ...
];

Config package.json

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Rules

Click here.

License

MIT

0.6.1

3 months ago

0.6.0-beta.0

5 months ago

0.6.0

5 months ago

0.5.0

5 months ago

0.4.0

6 months ago

0.3.0

6 months ago

0.2.2-beta.1

6 months ago

0.2.2

6 months ago

0.2.2-beta.0

7 months ago

0.2.1

8 months ago

0.2.0

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.0

9 months ago