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

@box/frontend-config

Package Overview
Dependencies
Maintainers
28
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@box/frontend-config

Common config files for frontend projects

  • 0.5.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by150%
Maintainers
28
Weekly downloads
 
Created
Source

npm version

Frontend related configs used by other Box frontend projects. Unless you are a part of another Box project, you should not be consuming any code from here. It is completely unsupported and can be highly unstable.

Publishing

This project is published on public npmjs. To push a new release, use yarn release:major or yarn release:minor or yarn release:patch.

Dependencies

See package.json for peer dependencies.

ESLint

Import eslintrc.js from this project and re-export it within your own project's .eslintrc.js. Add any overrides as necessary, but it is recommended that you ideally should not be having any overrides at all.

module.exports = require('@box/frontend-config/eslint/eslintrc.js');

Stylelint

Project: https://github.com/stylelint/stylelint

Import stylelint.config.js from this project and re-export it within your own project's stylelint.config.js.

module.exports = require('@box/frontend-config/stylelint/stylelint.config.js');

Prettier

Project: https://github.com/prettier/prettier

Import prettierrc.js from this project and re-export it within your own project's .prettierrc.js.

module.exports = require('@box/frontend-config/prettier/prettierrc.js');

Commit Linter

Project: https://github.com/marionebl/commitlint

Import commitlint.config.js from this project and re-export it within your own project's commitlint.config.js.

module.exports = require('@box/frontend-config/commitlint/commitlint.config.js');

You will also need to use something like husky for git hooks. And then add the following to your package.json.

  "husky": {
    "hooks": {
      "commit-msg": "commitlint -e"
    }  
  }

Dotfiles

dotfiles folder contains a few files that can used in your own project. Use them as needed and by renaming them to have a begining dot.

Overriding

Add any overrides as necessary, but it is recommended that you ideally should not be having any overrides at all. To add overrides just extend the imported config with your own rules.

var eslintrc = require('@box/frontend-config/eslint/eslintrc.js');

eslintrc.rules = {
    ...eslintrc.rules,
    'some/override': 0,
};

module.exports = eslintrc;

FAQs

Package last updated on 20 Oct 2018

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