@littlemissrobot/eslint-config
Little Miss Robot default eslint configuration/rules
Last updated 6 months ago by littlemissrobot .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @littlemissrobot/eslint-config 
SYNC missed versions from official npm registry.

Little Miss Robot - Eslint configuration

This repository contains the default configuration and setup of the Little Miss Robot eslinter and is adjusted towards the way we prefer to work.

This extension can be installed in the project as an npm package and can be extended in the project eslint configuration. Does this mean you are dependant on these settings? No, these values can be overwritten in that project eslint configuration.

Info

This package is used in combination with https://eslint.org/. Read their documentation on how to get started and extend other configurations.

Install

$ npm install --save-dev @littlemissrobot/eslint-config

Usage

  1. Create a .eslintrc.js in the root of your project
  2. Extend the eslint settings within the .eslintrc.js
module.exports = {
	"extends": [
		"@littlemissrobot/eslint-config"
	]
}

Options

By default extending @littlemissrobot/eslint-config will apply the basic linting. By adding one of these extra options you can apply linting for different environment or syntaxes:

  • @littlemissrobot/eslint-config/linters/node: Apply for node environments
  • @littlemissrobot/eslint-config/linters/es6: Apply ES6 linting
  • @littlemissrobot/eslint-config/linters/vue: Apply vue linting

ES6

module.exports = {
	"extends": [
		"@littlemissrobot/eslint-config",
		"@littlemissrobot/eslint-config/linters/es6"
	]
}

Vue

module.exports = {
	"extends": [
		"@littlemissrobot/eslint-config",
		"@littlemissrobot/eslint-config/linters/es6",
		"@littlemissrobot/eslint-config/linters/vue"
	]
}

Current Tags

  • 1.1.1                                ...           latest (19 days ago)

7 Versions

  • 1.1.1                                ...           19 days ago
  • 1.1.0                                ...           5 months ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           6 months ago
  • 1.0.2                                ...           6 months ago
  • 1.0.1                                ...           6 months ago
  • 1.0.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 7
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |