Skip to content

Latest commit

 

History

History

javascript

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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/