Skip to content

jvskelton/default-eslint-config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-iwt

ESLint configuration file for IWT Health node packages.

Installation

Include .eslintrc.json in your project with the following:

{
    "extends": "iwt"
}

Grunt Usage

Install grunt-eslint:

npm install --save-dev iwtsolutions/eslint-config-iwt
npm install --save-dev grunt-eslint

Update Gruntfile.js

module.exports = function (grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        eslint: {
            options: {
                configFile: '.eslintrc.json'
            },
            target: '.'
        }
    });

    grunt.loadNpmTasks('grunt-eslint');

    grunt.registerTask('default', [ 'eslint' ]);
    grunt.registerTask('lint', 'eslint');
};

Optional usage:

npm install -g eslint

From command line, run eslint . or eslint filename.js. See the command line interface guide for more options.

About

ESLint options for

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%