Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ESlint's rules for styled components 💅

License

NotificationsYou must be signed in to change notification settings

tinloof/eslint-plugin-better-styled-components

Repository files navigation

Auto fixable ESlint's rules for styled components.

Installation

You'll first need to installESLint:

$ npm i eslint --save-dev

Next, installeslint-plugin-better-styled-components:

$ npm install eslint-plugin-better-styled-components --save-dev

Note: If you installed ESLint globally (using the-g flag) then you must also installeslint-plugin-better-styled-components globally.

Usage

Addbetter-styled-components to the plugins section of your.eslintrc configuration file. You can omit theeslint-plugin- prefix:

{"plugins": ["better-styled-components"    ]}

Then configure the rules you want to use under the rules section.

{"plugins": ["better-styled-components"    ],"rules": {"better-styled-components/sort-declarations-alphabetically":2    }}

Supported Rules

  • 🔤sort-declarations-alphabetically: auto fixable rule that enforces alphabetically sorted declarations.

License

Unless otherwise specified this project is licensed underApache License Version 2.0.

About

ESlint's rules for styled components 💅

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp