eslint & prettier frontend setup
Last updated 4 months ago by one19 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @brightsole/eslint-config-lint-front 
SYNC missed versions from official npm registry.


code style: prettier published on npm!

What is it?

<summary>tl;dr: eslint & prettier setup for frontend projects</summary>

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?

<summary> tl;dr: yarn add -D @brightsole/eslint-config-lint-front </summary>
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


<summary>tl;dr: not. much.</summary>
  1. add it to project-status
  2. generate a couple badges

Current Tags

  • 0.0.9                                ...           latest (4 months ago)

10 Versions

  • 0.0.9                                ...           4 months ago
  • 0.0.8                                ...           7 months ago
  • 0.0.7                                ...           7 months ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
  • 0.0.0                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 12
Last Day 0
Last Week 11
Last Month 6
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |