![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@adeira/eslint-runner
Advanced tools
Eslint runner for large projects - faster than Eslint itself. 🤯
yarn add jest @adeira/eslint-runner --dev
This package contains a special runner for Jest to speedup Eslint checks. It executes Eslint in parallel thanks to Jest workers so it's much faster when you have many files with complicated rules. You have to create special Jest config in order to use this runner (.jest-eslint.config.js
):
module.exports = {
displayName: 'lint',
rootDir: __dirname,
verbose: false,
reporters: [
// optional but quite nice, give it a try
'@adeira/eslint-runner/reporter',
],
runner: '@adeira/eslint-runner',
testMatch: [
// add whatever files you want to lint
'<rootDir>/src/**/*.js',
'<rootDir>/scripts/**/*.js',
],
};
It is of course possible to run this lint as yet another Jest project (using options.projects
configuration). To execute this runner you have to call Jest like this:
{
"scripts": {
"lint": "yarn jest --config=.jest-eslint.config.js"
}
}
It tries to detect files to lint because it's highly inefficient to test all the files everytime. However, you can do so by using --all
flag like so: yarn run lint --all
.
This Eslint runner not only runs all the lints much faster, but it also performs automatic fixes. Automatic fixes are performed only while developing locally, not during CI. You can disable this behavior even locally by setting CI=true
environment variable.
You can also suppress warnings in report by --no-warnings
option. Usage of this option is generally discouraged, although it may be handy in certain scenarios - consider migration strategy to adopt a new rule on the legacy project when you get hundreds of reports:
error
for given rule in eslintrc
file.warn
, e.g. by adding /* eslint flowtype/no-weak-types: "warn" */
comment to the top of file or in eslintrc
for specific subdirectory where rule is too much broken.--no-warnings
option to locate the issue.And it has a nice and helpful output:
FAQs
Eslint runner for large projects - faster than Eslint itself. 🤯
The npm package @adeira/eslint-runner receives a total of 3 weekly downloads. As such, @adeira/eslint-runner popularity was classified as not popular.
We found that @adeira/eslint-runner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.