New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@metastreet/fe-style-guide

Package Overview
Dependencies
Maintainers
6
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metastreet/fe-style-guide

Metastreet frontend style guide

  • 0.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-77.5%
Maintainers
6
Weekly downloads
 
Created
Source

Eslint quicksetup

fe-style-guide is an Eslint configuration for MetaStreet, created to prevent the repetitive task of copying style guidelines for each new project. By consolidating them into a single package, it offers easier maintenance and application.

Installation

You can install fe-style-guide using your preferred package manager:

npm install -D @metastreet/fe-style-guide

or

yarn add -D @metastreet/fe-style-guide

or

pnpm add -D @metastreet/fe-style-guide

Usage

Create a file named .eslintrc.js in your root folder and copy the following configuration.

// @ts-check

/** @type {import("eslint").Linter.Config} */
module.exports = {
  extends: [require.resolve('@metastreet/fe-style-guide/config')],
  parserOptions: {
    project: './tsconfig.json',
  },
};

Integration

fe-style-guide can be seamlessly integrated with Vscode, Although you may need to setup its settings:

  1. Create a folder names .vscode in your workspace root.

  2. Create a file inside it named settings.json

  3. Paste the following settings:

    {
      "[css]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
      },
      "[javascript]": {
        "editor.defaultFormatter": "dbaeumer.vscode-eslint"
      },
      "[javascriptreact]": {
        "editor.defaultFormatter": "dbaeumer.vscode-eslint"
      },
      "[typescript]": {
        "editor.defaultFormatter": "dbaeumer.vscode-eslint"
      },
      "[typescriptreact]": {
        "editor.defaultFormatter": "dbaeumer.vscode-eslint"
      },
      "eslint.validate": [
        "javascript",
        "javascriptreact",
        "typescript",
        "typescriptreact"
      ]
    }
    

Happy coding!

FAQs

Package last updated on 05 Feb 2025

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