![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.
eslint-plugin-eslint-config
Advanced tools
This plugin provides rules for linting files that export configs meant for use with ESLint, to ensure that they're valid.
npm install --dev eslint eslint-plugin-eslint-config
Note: If you installed ESLint globally then you must also install
eslint-plugin-eslint-config
globally.
Add config
to the plugins section of your .eslintrc.js
configuration file.
You can omit the eslint-plugin-
prefix:
{
"plugins": ["eslint-config"]
}
Then configure the rules you want to use for your config(s) using overrides
:
{
"overrides": [
{
"files": [".eslintrc.js", "react.js", "@typescript-eslint.js"],
"rules": {
"eslint-config/no-deprecated-rules": "warn"
}
}
]
}
The rules assume that the files they're linting are configs meant for ESLint.
This plugin provides three presets:
recommended-rules
rc
all
The rc
preset generally should be used by all projects, as it applies
recommended rules to supported eslintrc files.
If a project contains other files that export eslint configs (such as an eslint
config package), the recommended-rules
preset can be used to apply the
recommended rules to those files using overrides
.
While the recommended-rules
and rc
presets only change in major versions,
the all
preset may change in any release and is thus unsuited for
installations requiring long-term consistency.
Rule | Description | Configurations | Fixable |
---|---|---|---|
no-deprecated-rules | Checks for usage of deprecated eslint rules | ||
no-invalid-config | Checks that the config exported by a file is valid | ||
no-unknown-rules | Ensures that all rules are known | ||
sort-rules | Ensures that rules are sorted in a consistent order |
FAQs
ESLint rules for ESLint config files
The npm package eslint-plugin-eslint-config receives a total of 25 weekly downloads. As such, eslint-plugin-eslint-config popularity was classified as not popular.
We found that eslint-plugin-eslint-config 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.