Skip to content

vasu-rbt/eslint-config-actum-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

eslint-config-actum is a set of rules for gulp-eslint plugin, which is heavily based on [AirBnB JavaScript Styleguide](airbnb javascript style guide).

Usage

To use this configuration in your project, follow these steps:

1. Install the module via npm:

npm install -D actum/eslint-config-actum

2. Configure ESLint in your package.json:

"eslintConfig": {
  "extends": "actum" 
}

Using environment-specific rules

In order to use different rules depending on the environment, include the configuration module in your Gulp task and use it as follows:

/* This is environment example */
const environment = {
	isDevelopment: true
};

/* Get configuration file depending on the environment */
const eslintConfig = require('eslint-config-actum').getConfig({ environment });

...

gulp.task('lint', () => {
  const options = { configName: eslintConfig };

  return gulp.src(...)
    .pipe(eslint(options))
    .pipe(eslint.format());
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published