Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
all-eslint-rules
Advanced tools
Get all available ESLint rules
const allEslintRules = require('all-eslint-rules');
allEslintRules();
//=> ['accessor-pairs', 'array-bracket-newline', 'array-bracket-spacing', ...]
npm install all-eslint-rules
const allEslintRules = require('all-eslint-rules');
options: Object | CLIEngine
Return: string[]
It returns an Array
of available ESLint rule names – the built-in ones and the ones defined by external plugins. Deprecated rules are excluded.
const rules = allEslintRules();
// Both indent-legacy and no-spaced-func are deprecated.
rules.includes('indent-legacy'); //=> false
rules.includes('no-spaced-func'); //=> false
The optional parameter accepts either a plain Object
to set CLIEngine
options or an already instantiated CLIEngine
, and affects the result.
// When eslint-plugin-promise https://www.npmjs.com/package/eslint-plugin-promise is installed
allEslintRules({
useEslintrc: false,
plugins: []
}).includes('promise/param-names'); //=> false
allEslintRules({
useEslintrc: false,
plugins: ['promise']
}).includes('promise/param-names'); //=> true
ISC License © 2018 - 2019 Watanabe Shinnosuke
FAQs
Get all available ESLint rules
The npm package all-eslint-rules receives a total of 304 weekly downloads. As such, all-eslint-rules popularity was classified as not popular.
We found that all-eslint-rules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.