Skip to content

Commit 67338ca

Browse files
committed
chore(ods): add code base
1 parent aec1fb4 commit 67338ca

File tree

3,721 files changed

+117966
-6344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,721 files changed

+117966
-6344
lines changed

.commitlintrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"],
3+
"rules": {
4+
"footer-max-line-length": [2, "always", 300]
5+
}
6+
}

.editorconfig

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
ij_javascript_spaces_within_imports = true
9+
ij_typescript_spaces_within_brackets = true
10+
ij_typescript_spaces_within_imports = true
11+
ij_typescript_spaces_within_object_literal_braces = true
12+
ij_typescript_use_double_quotes = false
13+
indent_size = 2
14+
indent_style = space
15+
insert_final_newline = true
16+
max_line_length = 120
17+
tab_width = 4
18+
trim_trailing_whitespace = true
19+
20+
[*.sass]
21+
indent_size = 2
22+
23+
[{*.ats,*.cts,*.mts,*.ts}]
24+
indent_size = 2
25+
tab_width = 2
26+
27+
[{*.cjs,*.js}]
28+
indent_size = 2
29+
tab_width = 2
30+
31+
[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.prettierrc,.stylelintrc,bowerrc,jest.config}]
32+
indent_size = 2
33+
34+
[{*.htm,*.html,*.ng,*.sht,*.shtm,*.shtml}]
35+
indent_size = 2
36+
tab_width = 2
37+
38+
[*.md]
39+
insert_final_newline = false
40+
trim_trailing_whitespace = false

.eslintrc

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"ecmaVersion": 2020,
5+
"sourceType": "module"
6+
},
7+
"plugins": [
8+
"eslint-plugin-tsdoc"
9+
],
10+
"extends": [
11+
"eslint:recommended"
12+
],
13+
"rules": {
14+
"strict": "error",
15+
"tsdoc/syntax": "warn",
16+
"no-console": 1,
17+
"object-curly-spacing": [
18+
"error",
19+
"always"
20+
],
21+
"@typescript-eslint/ban-ts-comment": 0,
22+
"@typescript-eslint/no-empty-interface": 0
23+
},
24+
"ignorePatterns": [
25+
"**/vendor/**",
26+
"**/storybook/docs/**",
27+
"**/dist/*",
28+
"**/www/**",
29+
"**/components/*/loader/*"
30+
],
31+
"overrides": [
32+
{
33+
"files": [
34+
"*.tsx"
35+
],
36+
"extends": [
37+
"plugin:@typescript-eslint/eslint-recommended",
38+
"plugin:@typescript-eslint/recommended"
39+
],
40+
"rules": {
41+
"@typescript-eslint/explicit-module-boundary-types": 0
42+
},
43+
"env": {
44+
"browser": true
45+
}
46+
},
47+
{
48+
"files": [
49+
"*.ts"
50+
],
51+
"extends": [
52+
"plugin:@typescript-eslint/eslint-recommended",
53+
"plugin:@typescript-eslint/recommended"
54+
],
55+
"rules": {
56+
"@typescript-eslint/no-empty-interface": 0
57+
}
58+
},
59+
{
60+
"files": [
61+
"*.spec.js",
62+
"jest.config.js"
63+
],
64+
"env": {
65+
"mocha": true,
66+
"node": true,
67+
"jest": true
68+
}
69+
},
70+
{
71+
"files": [
72+
"*.test.ts"
73+
],
74+
"extends": [
75+
"plugin:@typescript-eslint/eslint-recommended",
76+
"plugin:@typescript-eslint/recommended"
77+
],
78+
"env": {
79+
"mocha": true,
80+
"node": true,
81+
"jest": true
82+
}
83+
},
84+
{
85+
"files": [
86+
"get-repo-releases.js",
87+
"generate-ods-doc.mjs",
88+
"generate-ods-version.js",
89+
"generate-ocdk-version.js"
90+
],
91+
"env": {
92+
"node": true
93+
},
94+
"rules": {
95+
"no-console": 0
96+
}
97+
}
98+
]
99+
}

.huskyrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"hooks": {
3+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
4+
}
5+
}

.prettierrc.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"jsxBracketSameLine": false,
5+
"jsxSingleQuote": false,
6+
"quoteProps": "consistent",
7+
"printWidth": 180,
8+
"semi": true,
9+
"singleQuote": true,
10+
"tabWidth": 2,
11+
"trailingComma": "all",
12+
"useTabs": false
13+
}

.yarnrc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
nodeLinker: node-modules
22

33
npmScopes:
4-
ovh:
5-
npmRegistryServer: "https://registry.npmjs.org"
4+
ods:
5+
npmRegistryServer: ""
66

77
plugins:
88
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

AUTHORS

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This is the official list of ODS authors for copyright purposes.
2+
# This file is distinct from the CONTRIBUTORS files
3+
# and it lists the copyright holders only.
4+
5+
# Names should be added to this file as one of
6+
# Organization's name
7+
# Individual's name <submission email address>
8+
# Individual's name <submission email address> <email2> <emailN>
9+
# See CONTRIBUTORS for the meaning of multiple email addresses.
10+
11+
# Please keep the list sorted.
12+
13+
OVH SAS

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)

CONTRIBUTING.md

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Contributing to ODS project
2+
3+
This project accepts contributions. In order to contribute, you should
4+
pay attention to a few things:
5+
6+
1. your code must follow the coding style rules
7+
2. your code must be unit-tested
8+
3. your code must be documented
9+
4. your work must be signed (see below)
10+
5. you may contribute through GitHub Pull Requests
11+
12+
# Coding and documentation Style
13+
* Code must pass `yarn test`, and therefore the `build` and `step` step in CI to be considered as a valid contribution.
14+
15+
# Submitting Modifications
16+
The contributions should be submitted through Github Pull Requests
17+
and follow the DCO which is defined below.
18+
19+
# Licensing for new files
20+
ODS is licensed under a Apache 2 license. Anything
21+
contributed to ODS must be released under this license.
22+
23+
When introducing a new file into the project, please make sure it has a
24+
copyright header making clear under which license it's being released.
25+
26+
# Developer Certificate of Origin (DCO)
27+
To improve tracking of contributions to this project we will use a
28+
process modeled on the modified DCO 1.1 and use a "sign-off" procedure
29+
on patches that are being emailed around or contributed in any other
30+
way.
31+
32+
The sign-off is a simple line at the end of the explanation for the
33+
patch, which certifies that you wrote it or otherwise have the right
34+
to pass it on as an open-source patch. The rules are pretty simple:
35+
if you can certify the below:
36+
37+
By making a contribution to this project, I certify that:
38+
39+
(a) The contribution was created in whole or in part by me and I have
40+
the right to submit it under the open source license indicated in
41+
the file; or
42+
43+
(b) The contribution is based upon previous work that, to the best of
44+
my knowledge, is covered under an appropriate open source License
45+
and I have the right under that license to submit that work with
46+
modifications, whether created in whole or in part by me, under
47+
the same open source license (unless I am permitted to submit
48+
under a different license), as indicated in the file; or
49+
50+
(c) The contribution was provided directly to me by some other person
51+
who certified (a), (b) or (c) and I have not modified it.
52+
53+
(d) The contribution is made free of any other party's intellectual
54+
property claims or rights.
55+
56+
(e) I understand and agree that this project and the contribution are
57+
public and that a record of the contribution (including all
58+
personal information I submit with it, including my sign-off) is
59+
maintained indefinitely and may be redistributed consistent with
60+
this project or the open source license(s) involved.
61+
62+
then you just add a line saying
63+
64+
Signed-off-by: Random J Developer <[email protected]>
65+
66+
using your real name (sorry, no pseudonyms or anonymous contributions.)
67+
68+
Please find all the documentation about contributions in the directory `packages/contributing`.
69+
You can start with the Getting Started in `packages/contributing/contributing-getting-started.mdx`.

CONTRIBUTORS

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This is the official list of people who can contribute
2+
# (and typically have contributed) code to the ODS repository.
3+
#
4+
# Names should be added to this file only after verifying that
5+
# the individual or the individual's organization has agreed to
6+
# the appropriate CONTRIBUTING.md file.
7+
#
8+
# Names should be added to this file like so:
9+
# Individual's name <submission email address>
10+
# Individual's name <submission email address>
11+
#
12+
# Please keep the list sorted.
13+
#
14+
15+
Aurore Stagnol <[email protected]>
16+
Baptiste Marck <[email protected]>
17+
Camille Gicquel <[email protected]>
18+
Celine Chapalain <[email protected]>
19+
François Eoche <[email protected]>
20+
Laurianne Lebreton <[email protected]>
21+
Philippe Dorchies <[email protected]>
22+
Stéphane Chevreux <[email protected]>
23+
Sullivan Khamvongsa <[email protected]>
24+
Xavier Ternisien <[email protected]>

0 commit comments

Comments
 (0)