5.0.1 • Published 9 months ago

eslint-plugin-hagemanto v5.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

Hagemanto

Discipline TS

A very opinionated ESLint rules and config, check lib/index.js for more info.

Usage

pnpm i -D eslint eslint-plugin-hagemanto
// eslint.config.js
import hagemanto from "eslint-plugin-hagemanto";

export default [
    // ...
    ...hagemanto({
        styler: "stylistic",
        enableJsx: true,
        enableTs: true,
        enableTailwind: true,
        enableVue: false,
        sortImports: true,
        enableDefaultLanguageOptions: true,
    }), // or just `...hagemanto()` if this is what you're using
    // ...
]

If you use Vue, you'll need to install eslint-plugin-vue and add it to your config separately.

pnpm i -D eslint-plugin-vue
// eslint.config.js
import hagemanto from "eslint-plugin-hagemanto";
import vue from "eslint-plugin-vue";

export default [
    // ...
    ..hagemanto({ vueConfig: vue.configs["flat/recommended"] })
    // ...
]