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
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
Add or edit in project .eslintrc.js
file.
module.exports = {
root: true,
extends: ["@gooddata"],
rules: {
// Custom rules
},
};
Install Node.js and Yarn (for versions, see config).
Install dependencies:
yarn install --frozen-lockfile
Package publishing is done via Jenkins Job:
https://checklist.intgdc.com/job/client-libs/job/gdc-js-style-javascript-release/