Package detail

eslint-plugin-ntnyq

ntnyq2.4kMIT0.11.0

An opinionated ESLint plugin.

eslint, eslint-plugin, ntnyq

readme

eslint-plugin-ntnyq

CI NPM VERSION NPM DOWNLOADS CODECOV LICENSE

Do not use this plugin unless you know exactly every rule may change.

[!CAUTION] Do check the output to ensure it's doing its job correctly and only run this on code that has been checked into source control.

Install

npm:

npm i eslint-plugin-ntnyq -D

yarn

yarn add eslint-plugin-ntnyq -D

pnpm

pnpm add eslint-plugin-ntnyq -D

Usage

Config in eslint.config.mjs

import { defineConfig } from 'eslint/config'
import pluginNtnyq from 'eslint-plugin-ntnyq'

export default defineConfig([
  // other configs
  {
    name: 'ntnyq',
    plugins: {
      ntnyq: pluginNtnyq,
    },
    rules: {
      'ntnyq/no-duplicate-exports': 'error',
    },
  },
])

Rules

🔧 Automatically fixable by the --fix CLI option.\ 💡 Manually fixable by editor suggestions.

Name Description 🔧 💡
no-duplicate-exports Disallow duplicate exports statement 🔧
no-member-accessibility Disallow usage of typescript member accessibility 🔧
prefer-newline-after-file-header Require a newline after file header 🔧

License

MIT License © 2023-PRESENT ntnyq