
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
eslint-plugin-deku
Advanced tools
Deku specific linting rules for ESLint. Forked from yannickcr/eslint-plugin-react with slight modifications to support deku.
Install ESLint either locally or globally.
npm install eslint
If you installed ESLint
globally, you have to install Deku plugin globally too. Otherwise, install it locally.
$ npm install eslint-plugin-deku
Add plugins
section and specify ESLint-plugin-Deku as a plugin.
{
"plugins": [
"deku"
]
}
If it is not already the case you must also configure ESLint
to support JSX.
{
"ecmaFeatures": {
"jsx": true
}
}
Finally, enable all of the rules that you would like to use.
{
"rules": {
"deku/display-name": 1,
"deku/jsx-boolean-value": 1,
"deku/jsx-curly-spacing": 1,
"deku/jsx-max-props-per-line": 1,
"deku/jsx-no-duplicate-props": 1,
"deku/jsx-no-undef": 1,
"deku/jsx-quotes": 1,
"deku/jsx-sort-prop-types": 1,
"deku/jsx-sort-props": 1,
"deku/jsx-uses-deku": 1,
"deku/jsx-uses-vars": 1,
"deku/no-danger": 1,
"deku/no-did-mount-set-state": 1,
"deku/no-did-update-set-state": 1,
"deku/no-multi-comp": 1,
"deku/no-unknown-property": 1,
"deku/prop-types": 1,
"deku/deku-in-jsx-scope": 1,
"deku/require-extension": 1,
"deku/self-closing-comp": 1,
"deku/sort-comp": 1,
"deku/wrap-multilines": 1
}
}
ESLint-plugin-Deku is licensed under the MIT License.
FAQs
Deku specific linting rules for ESLint
The npm package eslint-plugin-deku receives a total of 229 weekly downloads. As such, eslint-plugin-deku popularity was classified as not popular.
We found that eslint-plugin-deku 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
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.