Skip to content

FundingOptions/eslint-plugin-funding-options

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-funding-options

How to use

To install:

npm i @fundingoptions/eslint-plugin-funding-options --save-dev

In .eslintrc.js

module.exports = {
  plugins: ["@fundingoptions/eslint-plugin-funding-options"],
  rules: {
    "@fundingoptions/funding-options/classNaming": 2,
  },
};

Rules

funding-options/classNaming

Ensures that component classNames are camelCased:

// pass

function FancyProfileCard() {
  return <div className="fancyProfileCard" />;
}

// fail
function FancyProfileCard() {
  return <div className="fancy-profile-card" />;
}

function FancyProfileCard() {
  return <div className="FancyProfileCard" />;
}

Pull Requests

Please run npm run build | yarn build before submitting a PR for the time being

About

Funding Options; custom eslint rules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •