1.0.1 • Published 4 years ago

eslint-plugin-scd v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Support Languages : English | 日本語

eslint-plugin-scd

This ESLint Plugin for introducing Specific Component Design ( SCD ). Currently applicable only to Functional Components.

install

$> npm install eslint-plugin-scd

or

$> yarn add eslint-plugin-scd

Usage

apply to eslint

// .eslintrc.js

module.exports = {
  extends: ["plugin:scd/recommended"],
  plugins: ["scd"],
  rules: {
    /* You can override the rules */
  },
};

Supported Rules

See below for the features and options of each rule.

NameDescription
nue-element-sizeDetermines the size of the Nue component
nue-not-use-hooksDetermine if Hooks are used in the Nue component
otem-element-sizeDetermines the size of the Otem component
otem-not-use-hooksDetermine if Hooks are used in the Otem component
pafe-conditionsDetermine if Pafe component has more than 10 elements or if Hooks are used
page-must-have-main-tagDetermine if the Page component has a main tag.

Contribution

Do you have bugs, feature additions, questions, etc. in this repository? If so, please refer to this file and contribute!

MIT LICENSE

MIT