eslint-plugin-ntnyq

v0.0.4
An opinionated ESLint plugin.
eslint eslint-plugin ntnyq

eslint-plugin-ntnyq

CI NPM VERSION NPM DOWNLOADS COVERAGE LICENSE

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 🌐 🔧

License

MIT License © 2023-PRESENT ntnyq

Metadata

  • MIT
  • >=16.14.0
  • ntnyq
  • released 5/30/2023

Downloads

Maintainers