Gathering detailed insights and metrics for @zibuthe7j11/quo-facilis-commodi
Gathering detailed insights and metrics for @zibuthe7j11/quo-facilis-commodi
Gathering detailed insights and metrics for @zibuthe7j11/quo-facilis-commodi
Gathering detailed insights and metrics for @zibuthe7j11/quo-facilis-commodi
npm install @zibuthe7j11/quo-facilis-commodi
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
231
Last Day
9
Last Week
78
Last Month
113
Last Year
174
MIT License
12 Commits
1 Branches
Updated on Apr 27, 2024
Latest Version
1.0.0
Package Id
@zibuthe7j11/quo-facilis-commodi@1.0.0
Unpacked Size
16.77 kB
Size
6.51 kB
File Count
10
NPM Version
10.5.0
Node Version
20.12.2
Published on
Apr 26, 2024
Cumulative downloads
Total Downloads
Last Day
-18.2%
9
Compared to previous day
Last Week
225%
78
Compared to previous week
Last Month
2,160%
113
Compared to previous month
Last Year
205.3%
174
Compared to previous year
A plugin for ESLint that allows you to use project-specific rules, similar to the deprecated --rulesdir
command line option (more).
1npm install @zibuthe7j11/quo-facilis-commodi
1'use strict'; 2 3module.exports = { 4 'disallow-identifiers': { 5 meta: { 6 docs: { 7 description: 'disallow identifiers', 8 category: 'Possible Errors', 9 }, 10 schema: [], 11 }, 12 create: function (context) { 13 return { 14 Identifier: function (node) { 15 context.report({ 16 node: node, 17 message: 'Identifiers not allowed for Super Important reasons.', 18 }); 19 }, 20 }; 21 }, 22 }, 23};
1{ 2 "plugins": ["@zibuthe7j11/quo-facilis-commodi"], 3 4 "rules": { 5 "local-rules/disallow-identifiers": "error" 6 } 7}
npm install ts-node @types/eslint
You'll also need an eslint config like the .eslintrc above (more info).
1require("ts-node").register({ 2 transpileOnly: true, 3 compilerOptions: { 4 module: "commonjs", 5 }, 6}); 7 8module.exports = require("./rules").default;
1import type { Rule } from "eslint"; 2 3export default { 4 "disallow-identifiers": { 5 meta: { 6 docs: { 7 description: 'disallow identifiers', 8 category: 'Possible Errors', 9 }, 10 schema: [], 11 }, 12 create: function (context) { 13 return { 14 Identifier: function (node) { 15 context.report({ 16 node: node, 17 message: 'Identifiers not allowed for Super Important reasons.', 18 }); 19 }, 20 }; 21 }, 22 }, 23} satisfies Record<string, Rule.RuleModule>;
This plugin supports npm/yarn/pnpm workspaces, although note that if the eslint-local-rules.js file is in the workspace subdirectory, running from the project root is unsupported.
For example, if there's an eslint-local-rules.js and index.js in ./src/app:
Wrong: npx eslint src/app/index.js
Right: (cd src/app; npx eslint index.js)
Also note that if there is an eslint-local-rules.js file in both the workspace subdirectory and project root, the workspace one takes precedence (assuming you're running eslint from the workspace directory, as above).
processors
MIT
No vulnerabilities found.
No security vulnerabilities found.