パッケージの詳細

@nationalbankbelgium/code-style

Front-End code style

code-style, javascript, typescript, stylelint

readme

NBB Code style

A library containing code style configuration used in applications at the National Bank of Belgium

NPM version npm Build Status Commitizen friendly code style: prettier License

About

This package hosts style configuration useful in Front-End development at the National Bank of Belgium.

It currently provides the following configurations:

Library Path Latest supported version
codelyzer lib/codelyzer codelyzer version
Prettier lib/prettier Prettier version
stylelint lib/stylelint stylelint version
TSLint lib/tslint TSLint version
Typescript lib/tsconfig Typescript version

Installation

With npm:

npm install @nationalbankbelgium/code-style

With yarn:

yarn add @nationalbankbelgium/code-style

Contributing

Please follow our contribution guidelines.

To know how to release code-style, refer to this page.

Authors

Alexis Georges

Christopher Cortes

License

This project and all associated source code is licensed under the terms of the MIT License.

Thank you notes :)

We'd like to thank the following companies who support the open source community with great tools and platforms.

Jetbrains

We're supported by Jetbrains and their awesome support for open source, thanks to which we are able to use the best products on the market to work on this open source project!

GitHub Actions

We're supported by GitHub Actions

更新履歴

1.11.0 (2024-05-30)

Features

  • tsconfig: update support tsconfig@5 and angular@16 (52de768)

1.10.0 (2024-04-11)

Features

  • build: update to node 20 github workflow (193d8c4)
  • tsconfig: add configuration for typescript (d243b63)

1.9.0 (2024-02-09)

Bug Fixes

  • release: fix @release-it/conventional-changelog usage in .release-it.json (a8256f3)

Features

  • tsconfig: add support for ts 4.6 and ng14 (4c69ca0)

1.8.0 (2023-12-13)

Bug Fixes

  • all: add "@types/node": "~14.14.31" devDependency (d65683a)
  • all: fix test.sh in order to automatically install missing packages in npx cache (ccc36f9)
  • build: fix GitHub CI workflow (72cabbc)

Features

  • prettier: add support for prettier 2.4.x (33d54b8)
  • prettier: add support for prettier 2.5.x (94ce6e1)
  • prettier: add support for prettier 2.6.x (ae5e4ea)
  • prettier: add support for prettier 2.7.x (60a7703)
  • prettier: add support for prettier 2.8.x (6cdf1b6)
  • prettier: add support for prettier 3.0.x (5d7b177)
  • prettier: add support for prettier 3.1.x (f924bdc)

1.7.0 (2022-12-13)

Features

  • tsconfig: add support for typescript 4.4.x and angular >= 13.0.0 (d7b4d75)

1.6.0 (2021-08-03)

Bug Fixes

  • stylelint: allow ::ng-deep usage which is used with Angular (1350d0c)
  • stylelint: allow [@forward](https://github.com/forward) and [@use](https://github.com/use) usage (0dc42f7)
  • tsconfig: fix zone.js support in Angular by changing target to ES2015 (5989e71), closes #216

Features

  • build: udpate husky to v6 (fc50cc9)
  • codelyzer: add support for codelyzer 6.0.x (b206523), closes #202
  • prettier: add support for prettier 2.3.x (4e184bb)
  • stylelint: add support for stylelint 13.10.x (206ff47)
  • stylelint: add support for stylelint 13.11.x (f4106a9)
  • stylelint: add support for stylelint 13.12.x (9687df5)
  • stylelint: add support for stylelint 13.13.x (fc10051), closes #96
  • stylelint: add support for stylelint 13.4.x (70c4d2d)
  • stylelint: add support for stylelint 13.5.x (40f423b)
  • stylelint: add support for stylelint 13.6.x (99da6cc)
  • stylelint: add support for stylelint 13.7.x (b9192ef)
  • stylelint: add support for stylelint 13.8.x (e30f5ef)
  • stylelint: add support for stylelint 13.9.x (de89f5b)
  • tsconfig: add support for typescript 3.9.x and angular 10 (449ee31)
  • tsconfig: add support for typescript 4.0.x and angular >= 10.1.0 (eeb99c6)
  • tsconfig: add support for typescript 4.1.x and angular 11 (114c51b)
  • tsconfig: add support for typescript 4.2.x and angular 12 (71725ce)
  • tsconfig: add support for typescript 4.3.x and angular >= 12.1.0 (77cc0e6)

1.5.0 (2021-04-14)

Features

  • tslint: disable rule typedef for "arrow-call-signature" in all versions (9108bc6)
  • tslint: disable rule typedef for "arrow-parameter" in all versions (a4397f1)

1.4.0 (2021-03-09)

Features

  • prettier: add support for prettier 2.1.x (4ed0a92)
  • prettier: add support for prettier 2.2.x (533bd19)

1.3.0 (2021-02-24)

Bug Fixes

  • tsconfig: fix wrong paths under ng7 folders. Replaced - by / (16e3847)

Features

  • prettier: add support for prettier 1.17.x (54e5f3e)
  • prettier: add support for prettier 1.18.x (551fc07)
  • prettier: add support for prettier 1.19.x (bec231a)
  • prettier: add support for prettier 2.0.x (fc40e1e), closes #13
  • tsconfig: add support for typescript 3.3.x (4f10aae), closes #142
  • tsconfig: add support for typescript 3.4.x and angular 8 (637cd4d), closes #142
  • tsconfig: add support for typescript 3.5.x and angular 8 (978b8f3)
  • tsconfig: add support for typescript 3.6.x and angular 9 (9c98cde)
  • tsconfig: add support for typescript 3.7.x and angular 9 (4977f28)
  • tsconfig: add support for typescript 3.8.x and angular 9 (e8aa9ce)

1.2.0 (2020-06-26)

Bug Fixes

  • tslint: remove wrong 'whitelist' option from 'no-unbound-method' rule in 5.10.x config since it only exists as from TSLint v5.13 (b997adc)

Features

  • stylelint: add support for stylelint 13.1.x (4e0a310)
  • stylelint: add support for stylelint 13.2.x (ad61559)
  • stylelint: add support for stylelint 13.3.x (ea1095c)
  • tslint: add support for tslint 5.11.x (2269234)
  • tslint: add support for tslint 5.12.x (2a6bffa)
  • tslint: add support for tslint 5.13.x (a6177e8)
  • tslint: add support for tslint 5.14.x (e701b6d)
  • tslint: add support for tslint 5.15.x (d380804)
  • tslint: add support for tslint 5.16.x (652ff46)
  • tslint: add support for tslint 5.17.x (7bdbcd3)
  • tslint: add support for tslint 5.18.x (d0c4f48)
  • tslint: add support for tslint 5.19.x (cf51548)
  • tslint: add support for tslint 5.20.x (4036d3b)
  • tslint: add support for tslint 6.0.x (9f76097)
  • tslint: add support for tslint 6.1.x (5400f64), closes #15

1.1.1 (2020-02-19)

Bug Fixes

  • stylelint: disable incorrecly enabled stylelint rules from stylelint 10.0.x to 13.0.x (4c9a213), closes #32

1.1.0 (2020-02-18)

Bug Fixes

  • stylelint: remove wrong extend to "stylelint-config-prettier" in stylelint 9.10.x configuration.
    The stylelint/9.10.x config was mistakenly extending from stylelint-config-prettier and therefore the "extends": "stylelint-config-prettier" has been removed from that config since code-style doesn't depend on such library in any way.
    Please add that yourself in your stylelint config if necessary. (d6e6431), closes #17
  • tslint: remove the rules of TSLint v4.4+ from the 4.3.x subpackage (33043da), closes #14

Features

1.0.1 (2019-06-04)

Bug Fixes

  • tsconfig: remove outDir, baseUrl, rootDir and typeRoots properties from tsconfig files (4429a38), closes #10

1.0.0 (2019-05-24)

Bug Fixes

  • stylelint: comment unused rules (4c5cbb4)
  • tsconfig: wrong usage information in README for TS 3.1.x (f9c5ea7)

1.0.0-rc.2 (2019-05-20)

Bug Fixes

  • build: fix travis branches to be able to trigger the release process when there is a tag (f688d48)

1.0.0-rc.1 (2019-05-20)

Bug Fixes

  • release: fix expected node version to 10 instead of 8 (36a70bd)

1.0.0-rc.0 (2019-05-20)

Bug Fixes

  • release: adapt release-it config to remove/fix deprecated options as from version 10 (afae9e2)

Features

  • all: update copyright year in LICENSE + add comment in tslint-codelyzer (b0c2f73)