eslint-plugin-svg-jsx weekly downloads statistics
By fostimus · npm · ESLint plugins
ESLint rules for camelCasing React props
eslint-plugin-svg-jsx has 15,637 recorded weekly downloads on npm, a decrease of 67.3% over the past 30 days, ranking #849 of 2,322 tracked listings.
About eslint-plugin-svg-jsx
eslint-plugin-svg-jsx
Enforce camelCased props instead of dashed props.
NPM package: https://www.npmjs.com/package/eslint-plugin-svg-jsx
Add to your project
- Add the dependency:
yarn add -D eslint-plugin-svg-jsxornpm install --save-dev eslint-plugin-svg-jsx - In your .eslintrc.js:
- Add
svg-jsxto your plugins - Add the
svg-jsxrules:
'svg-jsx/camel-case-dash': 'error', 'svg-jsx/camel-case-colon': 'error', 'svg-jsx/no-style-string': 'error', - Add
Final .eslintrc.js should look something like:
module.exports = {
parser: "@babel/eslint-parser",
extends: ["standard", "standard-jsx", "plugin:prettier/recommended"],
plugins: ["no-only-tests", "prettier", "svg-jsx"],
rules: {
"svg-jsx/camel-case-dash": "error",
"svg-jsx/camel-case-colon": "error",
"svg-jsx/no-style-string": "error",
},
}
Code examples
Case #1: Dashes in props.
// invalid
<MyComponent margin-left={30} />
// valid
<MyComponent marginLeft={30} />
Case #2: Colons in props.
// invalid
<svg
width="546"
height="382"
viewBox="0 0 546 382"
fill="none"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
/>
// valid
<svg
width="546"
height="382"
viewBox="0 0 546 382"
fill="none"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
/>
Case #3: string style attributes
// invalid
<mask
style="mask-type:alpha"
maskUnits="userSpaceOnUse"
x="408"
y="144"
width="90"
height="194"
/>
// valid
<mask
style={{ maskType: 'alpha' }}
maskUnits="userSpaceOnUse"
x="408"
y="144"
width="90"
height="194"
/>
Contributing
Pull requests are welcome. Please checkout the open issues we have if you'd like to help out. Bugfixes and related features are also welcome.
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- react
- svg
- props
- camelCase
- camel case
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm ESLint plugins plugins
All 20 eslint-plugin-svg-jsx alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-svg-jsx. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.