JSPM

  • Created
  • Published
  • Downloads 37492
  • Score
    100M100P100Q143382F
  • License MIT

GitLab package for our custom eslint rules

Package Exports

  • @gitlab/eslint-plugin
  • @gitlab/eslint-plugin/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gitlab/eslint-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pipeline status code style: prettier

@gitlab/eslint-plugin

This package contains eslint rules developed for GitLab and shared eslint config to be used in all javascript projects across GitLab.

It encapsulates our coding standards and is based primarily upon eslint-config-airbnb-base and eslint-plugin-vue with the expectation that code formatting is handled separately by prettier.

Generally we should use upstream rules that are defined in eslint or eslint-plugin-vue. If one of these packages lacks a rule, we can create it here in order to enforce it, and try to get it upstream later.

Documentation

Eslint 9 migration

The TS portion of this plugin has been migrated to eslint v9 and can be used as const gitlabPlugin = require('@gitlab/eslint-plugin/eslint9');. You still add the @gitlab/eslint-plugin as a dependency.

Contribution guidelines

Please refer to gitlab's CONTRIBUTING.md for details on our guidelines.