Socket
Book a DemoInstallSign in
Socket

@brightsole/eslint-config-lint-front

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brightsole/eslint-config-lint-front

eslint & prettier frontend setup

0.2.1
latest
Source
npmnpm
Version published
Weekly downloads
11
57.14%
Maintainers
1
Weekly downloads
 
Created
Source

(eslint-config-)lint-front

code style: prettier published on npm!

What is it?

tl;dr: eslint & prettier setup for frontend projects

prettier and eslint are pretty great tools for writing repeatable and easy to parse code, so long as you configure them correctly. This is a very small standard setup for linting things that look like something run in a frontend environment. I like the way the output looks for the most part. This repo is here to gobble up all the deps needed to make that happen, and pipe them to a standard config.

That being said I'm not a huge fan of prettier's my way or the highway bucko mentality, and will rip it out hardcore as soon as something equally easy to use comes along that lets me do some more customization not made by me.

This repo should at the very least get you pointed in the right direction for now, however.


How to use it?

tl;dr: yarn add -D @brightsole/eslint-config-lint-front
After the install, you need to extend the eslint setup by adding an `.eslintrc` file with the following contents:
  {
    "extends": "@brightsole/lint-front"
  }

Then, all that's left is to add a script for linting, like the one in this repo:

  ...
  "scripts": { "lint": "eslint . --fix" },
  ...
That's pretty much it, but...

Some things to be cognizent of:

  • Some projects will need overrides, you can still do that in the .eslintrc.
  • Some projects will need a .eslintignore
  • linting should probably be handled pre-commit by something like husky but wrapping that in here would be wrong

TODO:

tl;dr: not. much.
  • add it to project-status
  • generate a couple badges

FAQs

Package last updated on 10 Oct 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.