Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

unumotors/eslint-config-unu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-unu

This package provides unu's .eslintrc as an extensible shared config. And optional rulesets for different type of projects.

Usage

This package should be included in package.json dependencies (devDependencies preferably). So first install it with npm install --save-dev eslint-config-unu.

For using sharable configurations in your projects, please follow instructions in eslint's webpage: https://eslint.org/docs/developer-guide/shareable-configs

A simple setup example:

Create a .eslintrc.js file with content:

module.exports = {
  extends: 'unu'
}

Will allow you to use shared configuration right away.

Or if you need to include different rulesets and custom globals, you can extend your configuration with any setting you like.

module.exports = {
  extends: [
    'unu',
    'unu/rules/closure-compiler'
  ],
  globals: {
    'analytics': false
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published