1.1.1 • Published 8 months ago

@groupeactual/code-quality-front v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Code Quality Front

This project contains a collection of essential quality tools for front applications, including Prettier, TypeScript configuration, Jest, and ESLint.

Table of Contents

  1. Introduction
  2. Installation
  3. Usage
  4. Configuration
  5. Contributing
  6. License

Introduction

Code Quality Front Tools aims to help you maintain a high-quality codebase by providing a set of tools and configurations for code formatting, type checking, testing, and linting. The included tools are:

  • Prettier: An opinionated code formatter.
  • TypeScript: A superset of JavaScript that adds static types.
  • Jest: A delightful JavaScript testing framework.
  • ESLint: A pluggable JavaScript linter.

Code Quality include all quality packages you need for your font project. Make sure you have installed all these dependencies before using the tools.

Check package.json for more details.

Installation of the package

  • Make sure you have installed all these dependencies before using the tools.
  • To install the Code Quality Front Tools in your project, run the following command :
npm install @groupeactual/code-quality-front

Copy makefile rule and use these commands to init your project depending on your framework :

make init-quality-react

or

make init-quality-react-native

You can customize these configurations (Prettier/TypeScript/Jest/ESLint) to fit your project's needs, all these configurations can be overridden in your project.

Configuration

Each tool comes with its own configuration file:

  • Prettier: .prettierrc.js
  • TypeScript: tsconfig.json
  • Jest: jest.config.js
  • ESLint: .eslintrc.js

Configuring import orders

This package comes with prettier-plugin-sort-imports

Your .prettierrc.js can be configured to look like this

const config = require('@groupeactual/code-quality-front/react-prettier');

module.exports = {
  ...config,
  rules: {
    ...config?.rules
  },
  importOrder: [
    '^(react|react-native)$',
    '<THIRD_PARTY_MODULES>',
    '^@(alias1|alias2)/.*',
    '^[./]'
  ],
  importOrderSeparation: true,
  importOrderSortSpecifiers: true
};

CI

For each new tag created, a new release will be created on github and a new version will be published on npm.

Contributing

You are invited to follow our guide for contributing.

License

© Actual Digital

1.1.1

8 months ago

1.0.2

9 months ago

1.1.0

8 months ago

1.0.1

9 months ago

1.0.0

9 months ago

0.0.17-beta.1

9 months ago

1.0.3

9 months ago

0.0.17

9 months ago

1.1.0-beta.0

8 months ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago