Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@1password/front-end-style

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@1password/front-end-style

Config for 1Password front-end code style using Prettier, ESLint, and Stylelint

  • 6.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
747
decreased by-30.12%
Maintainers
1
Weekly downloads
 
Created
Source

1Password Front-End Style

This package contains config for 1Password front-end code style using Prettier, ESLint, and Stylelint.

Usage

After installing, you'll need to configure your project to use these styles:

Prettier

Add to your package.json file:

"prettier": "@1password/front-end-style/prettierrc.json"

ESLint

Create an eslintrc.yml file:

---
extends:
  - "@1password/front-end-style/eslintrc.yml"

Stylelint

Add to your package.json file:

"stylelint": {
	"extends": "@1password/front-end-style/stylelintrc.yml"
}

SVG Lint

A basic SVG linting tool is included as well, which checks for unnecessary line breaks and tags.

Run with svglint [directory]

IDE Extensions

You should also install the related IDE extensions so you can see issues (and sometimes get them auto-fixed) as you code.

Versioning Expectations

We'll be using semantic versioning when updating the package version number. The following is used to differentiate between the version identifiers.

Format: major.minor.patch

  • major: Any breaking change

    • Example:
      • Adding a package with new rules
      • Upgrading errors (warn to error)
      • major version bump of any NPM dependencies in package.json
  • minor: Any non-breaking change affecting the functionality of the package

    • Example:
      • Downgrading errors (error to warn)
      • minor version bump of any NPM dependencies in package.json, but no major version bump
  • patch: Any change not affecting the functionality of the package

    • Example:
      • Changing code comments
      • Changing the error message of a custom rule
      • Only patch version bumps of NPM dependencies in package.json
      • Updating yarn.lock

FAQs

Package last updated on 07 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc