https://github.com/bn-digital/configs
Includes bundle with linters rulesets, Webpack build configurations & coding guidelines
https://github.com/bn-digital/configs
coding-standards-guideline eslint-config prettier-config react-scripts stylelint-config webpack5
Last synced: 17 days ago
JSON representation
Includes bundle with linters rulesets, Webpack build configurations & coding guidelines
- Host: GitHub
- URL: https://github.com/bn-digital/configs
- Owner: bn-digital
- License: mit
- Created: 2021-08-05T21:13:32.000Z (over 4 years ago)
- Default Branch: latest
- Last Pushed: 2023-10-05T11:50:31.000Z (over 2 years ago)
- Last Synced: 2026-01-19T00:03:07.410Z (about 2 months ago)
- Topics: coding-standards-guideline, eslint-config, prettier-config, react-scripts, stylelint-config, webpack5
- Language: TypeScript
- Homepage:
- Size: 10.3 MB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BN Digital Coding Standards
      
---
## Packages
This package is a meta package that bundles other packages all together. To install, add the following to your `package.json` file:
```json
{
"devDependencies": {
"@bndigital/cosmiconfig": "^1.0.8"
}
}
```
and configure corresponding tools as described below.
### Typescript

In your `tsconfig.json` file, add the following:
```json
{
"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

In your package.json file, add the following:
```json
{
"eslintConfig": {
"extends": "@bndigital/eslint-config"
}
}
```
### Stylelint
In your package.json file, add the following:
```json
{
"stylelint": {
"extends": "@bndigital/stylelint-config"
}
}
```
### Prettier

In your package.json file, add the following:
```json
{
"prettier": "@bndigital/prettier-config"
}
```
### Vite

See [vite](packages/vite/README.md) for more information.
### GraphQL

See [graphql](packages/graphql/README.md) for more information.