Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set up prettier #78

Closed

Conversation

Akirtovskis
Copy link
Contributor

Description

Issue briefly discussed : #77

  1. First of many PRs to improve the subdomain registrar performance and Dev experience.
    This is part of M1 of : Subdomain registrar improvement stacksgov/grants-program#282
  2. Adds prettier config and formats the files
  3. Uses the same lint config as all the other Stacks projects

Type of change

Config update | code formatting improvement

Does this introduce a breaking change?

No breaking change!

package.json Outdated
"scripts": {
"start": "npm run build && node lib/index.js",
"start:regtest": "BSK_SUBDOMAIN_CONFIG=config-develop.json BSK_SUBDOMAIN_REGTEST=true npm run start",
"build": "babel src -d lib",
"flow": "flow",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"lint": "eslint src && npm run lint:prettier",
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe let's move eslint to a separate script lint:eslint https://github.com/hirosystems/stacks-blockchain-api/blob/master/package.json#L30?

import { PAYER_SK, OWNER_SK, DEVELOP_DOMAIN, ADMIN_PASSWORD } from './developmode'
import winston from 'winston'
import fs from 'fs'
import { PAYER_SK, OWNER_SK, DEVELOP_DOMAIN, ADMIN_PASSWORD } from './developmode';
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like prettier is somehow creating issues with the current eslint config, might be a good idea to use the npm package https://github.com/hirosystems/eslint-config for eslint

@Akirtovskis Akirtovskis closed this Mar 2, 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.

2 participants