Gathering detailed insights and metrics for @osjwnpm/nihil-recusandae-error
Gathering detailed insights and metrics for @osjwnpm/nihil-recusandae-error
npm install @osjwnpm/nihil-recusandae-error
Typescript
Module System
Node Version
NPM Version
54.1
Supply Chain
48.1
Quality
75.7
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
562
Last Day
1
Last Week
3
Last Month
10
Last Year
562
2,254 Commits
1 Watching
1 Branches
1 Contributors
Latest Version
1.0.0
Package Id
@osjwnpm/nihil-recusandae-error@1.0.0
Unpacked Size
22.41 kB
Size
7.40 kB
File Count
10
NPM Version
10.5.0
Node Version
20.12.2
Publised On
25 Apr 2024
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
50%
3
Compared to previous week
Last month
900%
10
Compared to previous month
Last year
0%
562
Compared to previous year
28
An ESLint plugin for linting ESLint plugins. Rules written in CJS, ESM, and TypeScript are all supported.
You'll first need to install ESLint:
1npm i eslint --save-dev
Next, install @osjwnpm/nihil-recusandae-error
:
1npm install @osjwnpm/nihil-recusandae-error --save-dev
Here's an example ESLint configuration that:
sourceType
to script
for CJS plugins (most users) (use module
for ESM/TypeScript)recommended
configuration1{ 2 "extends": ["plugin:eslint-plugin/recommended"], 3 "rules": { 4 "eslint-plugin/require-meta-docs-description": "error" 5 } 6}
eslint.config.js
(requires eslint>=v8.23.0)1const eslintPlugin = require('@osjwnpm/nihil-recusandae-error'); 2module.exports = [ 3 eslintPlugin.configs['flat/recommended'], 4 { 5 rules: { 6 'eslint-plugin/require-meta-docs-description': 'error', 7 }, 8 }, 9];
💼 Configurations enabled in.
✅ Set in the recommended
configuration.
🔧 Automatically fixable by the --fix
CLI option.
💡 Manually fixable by editor suggestions.
💠Requires type information.
Name                         | Description | 💼 | 🔧 | 💡 | 💠|
---|---|---|---|---|---|
fixer-return | require fixer functions to return a fix | ✅ | |||
meta-property-ordering | enforce the order of meta properties | 🔧 | |||
no-deprecated-context-methods | disallow usage of deprecated methods on rule context objects | ✅ | 🔧 | ||
no-deprecated-report-api | disallow the version of context.report() with multiple arguments | ✅ | 🔧 | ||
no-missing-message-ids | disallow messageId s that are missing from meta.messages | ✅ | |||
no-missing-placeholders | disallow missing placeholders in rule report messages | ✅ | |||
no-property-in-node | disallow using in to narrow node types instead of looking at properties | 💠| |||
no-unused-message-ids | disallow unused messageId s in meta.messages | ✅ | |||
no-unused-placeholders | disallow unused placeholders in rule report messages | ✅ | |||
no-useless-token-range | disallow unnecessary calls to sourceCode.getFirstToken() and sourceCode.getLastToken() | ✅ | 🔧 | ||
prefer-message-ids | require using messageId instead of message or desc to report rule violations | ✅ | |||
prefer-object-rule | disallow function-style rules | ✅ | 🔧 | ||
prefer-placeholders | require using placeholders for dynamic report messages | ||||
prefer-replace-text | require using replaceText() instead of replaceTextRange() | ||||
report-message-format | enforce a consistent format for rule report messages | ||||
require-meta-docs-description | require rules to implement a meta.docs.description property with the correct format | ||||
require-meta-docs-url | require rules to implement a meta.docs.url property | 🔧 | |||
require-meta-fixable | require rules to implement a meta.fixable property | ✅ | |||
require-meta-has-suggestions | require suggestable rules to implement a meta.hasSuggestions property | ✅ | 🔧 | ||
require-meta-schema | require rules to implement a meta.schema property | ✅ | 💡 | ||
require-meta-type | require rules to implement a meta.type property | ✅ |
Name                       | Description | 💼 | 🔧 | 💡 | 💠|
---|---|---|---|---|---|
consistent-output | enforce consistent use of output assertions in rule tests | ||||
no-identical-tests | disallow identical tests | ✅ | 🔧 | ||
no-only-tests | disallow the test case property only | ✅ | 💡 | ||
prefer-output-null | disallow invalid RuleTester test cases where the output matches the code | ✅ | 🔧 | ||
test-case-property-ordering | require the properties of a test case to be placed in a consistent order | 🔧 | |||
test-case-shorthand-strings | enforce consistent usage of shorthand strings for test cases with no options | 🔧 |
Name | Description | |
---|---|---|
✅ | recommended | enables all recommended rules in this plugin |
rules-recommended | enables all recommended rules that are aimed at linting ESLint rule files | |
tests-recommended | enables all recommended rules that are aimed at linting ESLint test files | |
all | enables all rules in this plugin, excluding those requiring type information | |
all-type-checked | enables all rules in this plugin, including those requiring type information | |
rules | enables all rules that are aimed at linting ESLint rule files | |
tests | enables all rules that are aimed at linting ESLint test files |
The list of recommended rules will only change in a major release of this plugin. However, new non-recommended rules might be added in a minor release of this plugin. Therefore, using the all
, rules
, and tests
presets is not recommended for production use, because the addition of new rules in a minor release could break your build.
Both flat and eslintrc configs are supported. For example, to enable the recommended
preset, use:
eslint.config.js
1const eslintPlugin = require('@osjwnpm/nihil-recusandae-error'); 2module.exports = [eslintPlugin.configs['flat/recommended']];
.eslintrc.json
1{ 2 "extends": ["plugin:eslint-plugin/recommended"] 3}
Or to apply linting only to the appropriate rule or test files:
eslint.config.js
1const eslintPlugin = require('@osjwnpm/nihil-recusandae-error'); 2module.exports = [ 3 { 4 files: ['lib/rules/*.{js,ts}'], 5 ...eslintPlugin.configs['flat/rules-recommended'], 6 }, 7 { 8 files: ['tests/lib/rules/*.{js,ts}'], 9 ...eslintPlugin.configs['flat/tests-recommended'], 10 }, 11];
.eslintrc.js
1{ 2 "overrides": [ 3 { 4 "files": ["lib/rules/*.{js,ts}"], 5 "extends": ["plugin:eslint-plugin/rules-recommended"] 6 }, 7 { 8 "files": ["tests/lib/rules/*.{js,ts}"], 9 "extends": ["plugin:eslint-plugin/tests-recommended"] 10 } 11 ] 12}
No vulnerabilities found.
No security vulnerabilities found.