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.
@redwoodjs/eslint-config
Advanced tools
This package contains a shareable set of ESLint rules and configuration that can be re-used on all RedwoodJS projects. The framework eslint-config
package is used both for framework configuration and RedwoodJS app (created with the CRWA package) configuration.
Our configuration uses recommended rule presets, including those from ESLint, React, the Rules of Hooks, and Jest. We also override the presets with some stylistic preferences. Some of them are:
Peter Pistorius (@peterp), David Price (@thedavidprice), Dominic Saadi (@jtoar), Daniel Choudhury (@dac09)
This package doesn't depend on other Redwood Framework packages. To contribute, you should be familiar with the ESLint package. Keep in mind that any rules added should not conflict with code formatting tools (e.g. Prettier).
In a Redwood App, you can override default config in your root package.json
file by adding the rules after the include for this package:
// redwood-app/package.json
"eslintConfig": {
"extends": "@redwoodjs/eslint-config",
"root": true,
"jsx-a11y/no-onchange": "off",
},
If you need script in your configuration, you can remove the eslintConfig
block from your root package.json
file and add an .eslintrc.js
file:
// redwood-app/.eslintrc.js
module.exports = {
extends: ['@redwoodjs/eslint-config'],
root: true,
rules: {
'jsx-a11y/no-onchange': 'off',
},
}
By default, ESLint will recurse through all project directories looking for configuration files and directives, and override those specified in multiple places according to a prioritization formula. The root
directive tells ESLint to stop searching for configuration lower in the tree at the file this directive is encountered.
In a different Redwood Framework package or in a Redwood App, you can provide configuration that applies only to that package or side by omitting the root
directive. For example, to apply a directive only to the client code of an app:
// e.g. redwood/packages/auth or redwood-app/web/package.json
"eslintConfig": {
"jsx-a11y/no-onchange": "off",
},
In this case, ESLint will still load the configuration from the @redwoodjs/eslint-config
package as the default value of root
is false
.
FAQs
Unknown package
The npm package @redwoodjs/eslint-config receives a total of 13,317 weekly downloads. As such, @redwoodjs/eslint-config popularity was classified as popular.
We found that @redwoodjs/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
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.