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.
eslint-worker-brunch
Advanced tools
Inspired by eslint-brunch
Adds ESLint support to Brunch.
Install the plugin via npm with npm install --save-dev eslint-worker-brunch
.
Configuration settings can be set in any acceptable .eslintrc.*
configuration file formats.
If no configuration file can be found, this plugin will fallback to default ESLint options.
const sysPath = require("path");
exports.plugins = {
eslint: {
workers: require("os").cpus().length >> 1,
config: {
rules: {semi: 'always'},
},
overrides: {
"*.coffee": ({data, path, map}) => {
const basename = sysPath.basename(path, sysPath.extname(path));
return {
rules: {
"no-unused-vars": [2, {
"vars": "all"
"args": "none"
"caughtErrors": "none"
"varsIgnorePattern": basename
}]
}
};
},
"*.fbs": {
rules: {
"no-use-before-define": 0
"no-invalid-this": 0
"no-magic-numbers": 0
}
}
},
ignore: /^(?:bower_components|vendor)[/\\]/,
pattern: /^src\/.*\.jsx?$/,
warnOnly: false,
formatter: 'table',
},
};
Option | Type | Optional | Default | Description |
---|---|---|---|---|
workers | Integer | Yes | undefined | Number of workers to use for linting. Usefull to get large project linted faster |
config | Object | Yes | undefined | Options to pass to the ESLint engine (docs) |
overrides | Object | Yes | undefined | Overrides eslint config per file pattern |
pattern | RegExp | Yes | /^app\/.*\.jsx?$/ | Pattern of file paths to be processed (docs) |
warnOnly | Boolean | Yes | true | Use warn logging level instead of error |
formatter | String | Yes | 'stylish' | Built-in formatter to use (docs) |
FAQs
Eslint brunch plugin using workers
The npm package eslint-worker-brunch receives a total of 0 weekly downloads. As such, eslint-worker-brunch popularity was classified as not popular.
We found that eslint-worker-brunch 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
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.