eslint-plugin-ntnyq
v0.14.0
Published
An opinionated ESLint plugin.
Downloads
3,796
Readme
eslint-plugin-ntnyq
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 -Dyarn
yarn add eslint-plugin-ntnyq -Dpnpm
pnpm add eslint-plugin-ntnyq -DUsage
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 | 🔧 | |
