Skip to content

Conversation

@pranjalwalia
Copy link
Contributor

Fixes #116

Proposed Changes

  • addded eslint and prettier configuration files in root nodecloud workspace
  • added extended eslint config for the generator workspace to remove linter errors to allow for initialization of eslint, but should be tightened in future after discussion with project maintainers
  • added prettier config to avoid conflicting code syntax
  • added linter workflow to husky precommit, run the already existing linter script in workspace generator

- add prettier config + ignore file
- pending: add eslint with plugins for typescript and configure script formatter for prettier
- add root workspace eslint config
- pending: setup eslint configs for packages
- updated eslint config for workspace generator so that existing code
does not throw errors, but scope for code standardization is apparent.

- currently the codebase does not employ and standardization in
import/export rules and they are all over the place currently

- adding this eslint plugin will enforce import/export guidelines in
combination with prettier and ensures all imports are standardized
across the codebase
- fixed all linter errors produced by new eslint config

- pending 140 linter warnings (large change) that can be fixed post approval from
project mentors
@rajitha1998 rajitha1998 self-requested a review June 11, 2022 03:40
Copy link
Member

@rajitha1998 rajitha1998 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@rajitha1998 rajitha1998 requested a review from mbcse June 19, 2022 15:53
Copy link
Collaborator

@mbcse mbcse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

@rajitha1998 rajitha1998 merged commit c859719 into leopardslab:master Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TOOLING] Addition of ESLint and prettier configuration

3 participants