Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Latest commit

 

History

History
55 lines (38 loc) · 1.97 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.97 KB

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.

Name Description
nue-element-size Determines the size of the Nue component
nue-not-use-hooks Determine if Hooks are used in the Nue component
otem-element-size Determines the size of the Otem component
otem-not-use-hooks Determine if Hooks are used in the Otem component
pafe-conditions Determine if Pafe component has more than 10 elements or if Hooks are used
page-must-have-main-tag Determine 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