Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.19 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.19 KB

GoodData JavaScript Style Guide

This package is build based on https://eslint.org/docs/developer-guide/shareable-configs. Provides common linting rules for gooddata TS/JS projects.

Linter is using typescript-eslint parser to check typescript and javascript sources

More details: https://typescript-eslint.io, typescript-eslint Roadmap

Install

yarn add @gooddata/eslint-config --dev

Add required eslint, parser & plugins

yarn add eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-header eslint-plugin-import eslint-plugin-jest --dev

Usage

Add or edit in project .eslintrc.js file.

module.exports = {
    root: true,
    extends: ["@gooddata"],
    rules: {
        // Custom rules
    },
};

Development

Install Node.js and Yarn (for versions, see config).

Install dependencies:

yarn install --frozen-lockfile

Release

Package publishing is done via Jenkins Job:

https://checklist.intgdc.com/job/client-libs/job/gdc-js-style-javascript-release/