Guidelines - CPNV-ES/notice GitHub Wiki

General

We are following the Airbnb Javascript and React style Guides. This means you have to fix the lining issues when you add or change code in the repository.

Here are also others guidelines :

Components

A component must be declared in a file (only one by file).

The component must be exposed as the default es6 export.

The component must be a React Function Component if it isn't coming from a library.

The component styling must be defined in a .css file with the same name as the component file.

The component file must start with an uppercase letter.

Pages

A page component must be declared in a file (only one by file)

A page component must be in the /src/pages directory.

The page file must start with an uppercase letter.

Assets

The /src/assets folder contains uncompiled assets such as SVGs, images, CSS styles.

Public

The /public folder contains assets that will be served statically once the app has been built.