eslint-plugin-directives
v0.0.1
Published
An ESLint plugin for js/ts directives
Maintainers
Readme
ESLint Plugin Directives
An ESLint plugin for js/ts directives.
Installation
npm i -D eslint-plugin-directivesUsage
Add directives to the plugins section of your ESLint configuration file and configure the rules:
// eslint.config.js
import eslint from '@eslint/js';
import { defineConfig } from 'eslint/config';
import directives from 'eslint-plugin-directives';
export default defineConfig({
plugins: { directives },
rules: {
'directives/no-directives': 'error',
},
});Available Rules
🔧 - Automatically fixable by the --fix CLI option.
💡 - Manually fixable by editor suggestions.
✅ - Enabled in the recommended configuration.
| Rule ID | Description | 🔧 | 💡 | ✅ |
| -------------------------- | ------------------------------ | --- | --- | --- |
| directives/no-directives | Disallow the use of directives | | | |
