Socket
Socket
Sign inDemoInstall

eslint-config-tabsanity

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-tabsanity

My personal preferences for eslint for Vue-based projects. YMMV. Tabs FTW!


Version published
Weekly downloads
10
decreased by-66.67%
Maintainers
1
Install size
5.88 kB
Created
Weekly downloads
 

Readme

Source

This is an OPINIONATED set of package.json linting and formatting defaults I use for my open-source and closed-source work.

This is SUBJECT TO CHANGE AT ANY TIME. I don't really expect anyone else to use this, as it's highly subjective to my personal taste n HTML, JS, and CSS formatting. I just did it because I got tired of having to copy and paste settings among all of my repos. But if you get value from it, great!

This assumes that the Vue eslint plugin has been installed properly. Rather than manually adding the packages, do this from the command line (it will edit the package.json as needed), then replace the "extends" part of the eslint config with just extending "tabsanity" (which already extends the recommended Vue and Prettier rules). Install with:

vue add @vue/cli-plugin-eslint
``

This project will track with the eslint rules and options as installed through the Vue eslint plugin, so don't update eslint, etc., just update the plugin.

Also, install these packages:

- stylelint
- stylelint-config-standard

You will also need your eslint config to extend:

"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/prettier"

The latest version of the Vetur plugin is also assumed, with the Vetur HTML Formatter option set to
use **prettier**. I've tried pretty-html, it creates ugly wrapping of divs, and js-beautify-html
results in odd formatting as well.

## History

- 2.0.0 Add Vue3 support by removing extension of vue 2 ruleset

FAQs

Last updated on 07 Jan 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc