Skip to content

Includes bundle with linters rulesets, Webpack build configurations & coding guidelines

License

Notifications You must be signed in to change notification settings

bn-digital/configs

Repository files navigation

BN Digital Coding Standards

npm npm npm npm npm npm npm


Packages

This package is a meta package that bundles other packages all together. To install, add the following to your package.json file:

{
  "devDependencies": {
    "@bndigital/cosmiconfig": "^1.0.8"
  }
}

and configure corresponding tools as described below.

Typescript

npm

In your tsconfig.json file, add the following:

{
  "extends": "@bndigital/typescript/standard"
}

Available profiles to use:

  • @bndigital/typescript/standard
  • @bndigital/typescript/react
  • @bndigital/typescript/strapi-admin
  • @bndigital/typescript/strapi-server
  • @bndigital/typescript/pulumi
  • @bndigital/typescript/projen

ESLint

npm

In your package.json file, add the following:

{
  "eslintConfig": {
    "extends": "@bndigital/eslint-config"
  }
}

Stylelint

In your package.json file, add the following:

{
  "stylelint": {
    "extends": "@bndigital/stylelint-config"
  }
}

Prettier

npm

In your package.json file, add the following:

{
  "prettier": "@bndigital/prettier-config"
}

Vite

npm

See vite for more information.

GraphQL

npm

See graphql for more information.