eslint-plugin-ntnyq
v0.5.0
Published
An opinionated ESLint plugin.
Downloads
1,296
Readme
eslint-plugin-ntnyq
Do not use this plugin unless you know exactly every rule may change.
⚠️ Caveat
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 pluginNtnyq from 'eslint-plugin-ntnyq'
export default [
...pluginNtnyq.configs.recommended,
// Or
// ...pluginNtnyq.configs.all,
]
The recommended preset
The recommended
config enables a subset of the rules that should be most useful to most users.
See src/configs/recommended.ts for more details.
The all preset
The all
config enables all the the rules.
See src/configs/all.ts for more details.
Advanced Configuration
Override/add specific rules configurations.
See also: http://eslint.org/docs/user-guide/configuring.
import pluginNtnyq from 'eslint-plugin-ntnyq'
export default [
{
files: ['**/*.ts'],
plugins: {
ntnyq: pluginNtnyq,
},
rules: {
'ntnyq/no-member-accessibility': 'error',
},
},
]
Rules
💼 Configurations enabled in.
🌐 Set in the all
preset.
✅ Set in the recommended
preset.
🔧 Automatically fixable by the --fix
CLI option.
💡 Manually fixable by editor suggestions.
| Name | Description | 💼 | 🔧 | 💡 | | :-------------------------------------------------------------------------------------------- | :------------------------------------------------ | :-: | :-: | :-: | | no-member-accessibility | disallow usage of typescript member accessibility | 🌐 | 🔧 | |