npm.io
0.14.0 • Published 3 months ago

eslint-plugin-ntnyq

Licence
MIT
Version
0.14.0
Deps
3
Size
17 kB
Vulns
0
Weekly
0
Stars
4

eslint-plugin-ntnyq

CI NPM VERSION NPM DOWNLOADS LICENSE

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

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
no-only-tests Disallow .only blocks in tests
prefer-newline-after-file-header Require a newline after file header

License

MIT License 2023-PRESENT ntnyq