Skip to content

Commit 45f3836

Browse files
committed
feat: project init 🌱
0 parents  commit 45f3836

22 files changed

+19506
-0
lines changed

‎.commitlintrc.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict'
2+
3+
module.exports = {
4+
extends: ['@strv/commitlint-config'],
5+
}

‎.editorconfig‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

‎.eslintignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.cache
3+
dist

‎.eslintrc.js‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
'use strict'
2+
3+
module.exports = {
4+
extends: [
5+
'@strv/eslint-config-typescript',
6+
'@strv/eslint-config-typescript/optional',
7+
'@strv/eslint-config-typescript/style',
8+
9+
'@strv/eslint-config-react',
10+
'@strv/eslint-config-react/optional',
11+
'@strv/eslint-config-react/style',
12+
13+
'prettier',
14+
],
15+
plugins: ['@typescript-eslint', 'import', 'jest'],
16+
parser: '@typescript-eslint/parser',
17+
parserOptions: {
18+
tsconfigRootDir: __dirname,
19+
project: ['./tsconfig.json'],
20+
},
21+
env: {
22+
'jest/globals': true,
23+
},
24+
rules: {
25+
'@typescript-eslint/naming-convention': [
26+
'warn',
27+
{
28+
selector: 'default',
29+
format: ['camelCase'],
30+
leadingUnderscore: 'allow',
31+
trailingUnderscore: 'allow',
32+
},
33+
/**
34+
* To also support format for React components which are using `PascalCase`
35+
*/
36+
{
37+
selector: 'variable',
38+
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
39+
leadingUnderscore: 'allow',
40+
trailingUnderscore: 'allow',
41+
},
42+
{
43+
selector: 'typeLike',
44+
format: ['PascalCase'],
45+
},
46+
],
47+
'padding-line-between-statements': 'off',
48+
49+
'@typescript-eslint/prefer-readonly-parameter-types': 'off',
50+
'@typescript-eslint/explicit-function-return-type': 'off',
51+
'@typescript-eslint/explicit-module-boundary-types': 'off',
52+
},
53+
}

‎.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.log
2+
.DS_Store
3+
node_modules
4+
.cache
5+
dist

‎.huskyrc.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use-strict'
2+
3+
module.exports = {
4+
hooks: {
5+
'pre-commit': 'pretty-quick --staged',
6+
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
7+
},
8+
}

‎.prettierignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.cache
3+
dist

‎.prettierrc.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict'
2+
3+
module.exports = {
4+
...require('@strv/prettier-config'),
5+
printWidth: 100,
6+
}

‎.storybook/main.js‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
stories: ['../src/**/*.stories.tsx'],
3+
addons: ['@storybook/addon-actions', '@storybook/addon-links', '@storybook/addon-docs'],
4+
webpackFinal: async (config) => {
5+
config.module.rules.push({
6+
test: /\.(ts|tsx)$/,
7+
use: [
8+
{
9+
loader: require.resolve('ts-loader'),
10+
options: {
11+
transpileOnly: true,
12+
},
13+
},
14+
{
15+
loader: require.resolve('react-docgen-typescript-loader'),
16+
},
17+
],
18+
})
19+
20+
config.resolve.extensions.push('.ts', '.tsx')
21+
22+
return config
23+
},
24+
}

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Lukas Hudec
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)