https://github.com/ntnyq/eslint-plugin-ntnyq
:package: Do not use this plugin unless you know exactly every rule may change.
https://github.com/ntnyq/eslint-plugin-ntnyq
eslint eslint-plugin lint linting
Last synced: 6 months ago
JSON representation
:package: Do not use this plugin unless you know exactly every rule may change.
- Host: GitHub
- URL: https://github.com/ntnyq/eslint-plugin-ntnyq
- Owner: ntnyq
- License: mit
- Created: 2023-03-25T23:52:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-08T11:30:29.000Z (11 months ago)
- Last Synced: 2024-11-08T12:29:07.671Z (11 months ago)
- Topics: eslint, eslint-plugin, lint, linting
- Language: TypeScript
- Homepage: https://eslint-plugin.ntnyq.com
- Size: 1.03 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-ntnyq
[](https://github.com/ntnyq/eslint-plugin-ntnyq/actions)
[](https://www.npmjs.com/package/eslint-plugin-ntnyq)
[](https://www.npmjs.com/package/eslint-plugin-ntnyq)
[](https://codecov.io/github/ntnyq/eslint-plugin-ntnyq)
[](https://github.com/ntnyq/eslint-plugin-ntnyq/blob/main/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**:
```shell
npm i eslint-plugin-ntnyq -D
```**yarn**
```shell
yarn add eslint-plugin-ntnyq -D
```**pnpm**
```shell
pnpm add eslint-plugin-ntnyq -D
```## Usage
Config in `eslint.config.mjs`
```js
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](https://eslint.org/docs/user-guide/command-line-interface#--fix).\
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).| Name | Description | 🔧 | 💡 |
| :-------------------------------------------------------------------------------------------------------------- | :------------------------------------------------ | :-: | :-: |
| [no-duplicate-exports](https://eslint-plugin.ntnyq.com/rules/no-duplicate-exports.html) | Disallow duplicate exports statement | 🔧 | |
| [no-member-accessibility](https://eslint-plugin.ntnyq.com/rules/no-member-accessibility.html) | Disallow usage of typescript member accessibility | 🔧 | |
| [prefer-newline-after-file-header](https://eslint-plugin.ntnyq.com/rules/prefer-newline-after-file-header.html) | Require a newline after file header | 🔧 | |## License
[MIT](./LICENSE) License © 2023-PRESENT [ntnyq](https://github.com/ntnyq)