1.4.3 • Published 7 months ago

eslint-plugin-cupcake v1.4.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

eslint-plugin-cupcake

npm version build status

A collection of eslint rules for consistent code standards.

Installation

Use npm or a compatible tool to install.

$ npm install --save-dev eslint eslint-plugin-cupcake

Requirements

  • Node.js v14.15.0 or newer versions.
  • ESLint v6.8.0 or newer versions.

Usage

Write your config file such as .eslintrc.yml.

plugins:
  - cupcake
rules:
  cupcake/case-block: error

See also Configuring ESLint.

Configs

  • cupcake/recommended ... enables the recommended rules.

Rules

Stylistic Issues

Rule IDDescription
cupcake/case-blockEnforces block statements in case blocks⭐️✒️
cupcake/declaration-orderEnforces order of variable declarations⭐️
cupcake/func-styleEnforce the consistent use of either function declarations or expressions⭐️

Semantic Versioning Policy

This plugin follows Semantic Versioning and ESLint's Semantic Versioning Policy.

Changelog

Contributing

Welcome your contribution!

See also ESLint Contribution Guide.

Development Tools

  • npm test runs tests and measures coverage.
  • npm version <TYPE> updates the package version. And it updates lib/configs/recommended.js, lib/index.js, and README.md's rule table. See also npm version CLI command.
  • npm run add-rule <RULE_ID> creates three files to add a new rule.
1.4.3

7 months ago

1.4.2

10 months ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

2 years ago

1.0.0

2 years ago