Skip to content

cto-af/eslint-plugin-meta

Repository files navigation

"@cto.af/eslint-plugin-meta

Ensure eslint all rules are sorted, not deprecated, and included

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install "@cto.af/eslint-plugin-meta:

npm install "@cto.af/eslint-plugin-meta --save-dev

Usage

Add eslint-meta to the plugins section of your eslint.config.js configuration file:

import meta from '@cto.af/eslint-plugin-meta';
export default [
  {
    files: [
      'eslint.config.js'
    ],
    ...meta.configs.recommended,
  },
];

Rules

Rule Name Description Recommended
no-deprecated-rules Ensure no deprecated rules are used yes
no-unknown-rules Ensure all rules are valid yes
no-unused-rules Ensure all non-deprecated rules are used yes
sort-rules Ensure eslint rules are sorted yes