@jenkins-cd/eslint-config-jenkins

Jenkins JavaScript ESLint configuration

Stats

StarsIssuesVersionUpdatedCreatedSize
@jenkins-cd/eslint-config-jenkins
0.0.26 years ago6 years agoMinified + gzip package size for @jenkins-cd/eslint-config-jenkins in KB

Readme

ESLint configurations for Jenkins JavaScript projects.

We are hoping that people will try taking these and using them as they are. It would be nice for all Jenkins related JavaScript code to follow the same standards as much as possible.

Note: If using @jenkins-cd/js-builder, there's typically no need to specify a .eslintrc file. @jenkins-cd/js-builder will automatically lint using one of the following configurations, using the builder instance lang setting (default es6), or will use react if it detects .jsx files in the builder source paths.

ES6

.eslintrc:

{
    "extends": "@jenkins-cd/jenkins/es6"
}

Note: Applied by default if using @jenkins-cd/js-builder i.e. no need to specify the .eslintrc file.

ES5

.eslintrc:

{
    "extends": "@jenkins-cd/jenkins/es5"
}

Note: Applied by @jenkins-cd/js-builder if the builder instance lang is es5 (builder.lang('es5')).

React

.eslintrc:

{
    "extends": "@jenkins-cd/jenkins/react"
}

Note: Applied by @jenkins-cd/js-builder if the builder instance lang is react (builder.lang('react')), or if .jsx files are detected in any of the source paths.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.