@jenkins-cd/eslint-config-jenkins v0.0.2
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.eslintrcfile.@jenkins-cd/js-builderwill automatically lint using one of the following configurations, using the builder instancelangsetting (defaultes6), or will usereactif it detects.jsxfiles in the builder source paths.
ES6
.eslintrc:
{
"extends": "@jenkins-cd/jenkins/es6"
}Note: Applied by default if using
@jenkins-cd/js-builderi.e. no need to specify the.eslintrcfile.
ES5
.eslintrc:
{
"extends": "@jenkins-cd/jenkins/es5"
}Note: Applied by
@jenkins-cd/js-builderif the builder instance lang ises5(builder.lang('es5')).
React
.eslintrc:
{
"extends": "@jenkins-cd/jenkins/react"
}Note: Applied by
@jenkins-cd/js-builderif the builder instance lang isreact(builder.lang('react')), or if.jsxfiles are detected in any of the source paths.
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago