Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestofreyreg committed Nov 23, 2020
0 parents commit 73548eb
Show file tree
Hide file tree
Showing 28 changed files with 162,268 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
out/
.next/
node_modules/
next-env.d.ts
31 changes: 31 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Parse all files with TypeScript.
extends: 'standard-with-typescript'
parserOptions:
project: './tsconfig.json'
createDefaultProgram: true

plugins:
- prettier
- react
- jest
- jest-dom
- '@typescript-eslint'
- react-hooks

settings:
react:
version: detect

env:
browser: true

rules:
react-hooks/rules-of-hooks: error
react-hooks/exhaustive-deps: error

no-unused-vars: off
'@typescript-eslint/no-unused-vars':
- error
- varsIgnorePattern: _
argsIgnorePattern: _

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
.next
out
*.log
coverage

6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.next/
node_modules/
out/
.yarn/
coverage/

9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"printWidth": 100,
"singleQuote": true,
"semi": false,
"jsxSingleQuote": true,
"trailingComma": "none",
"arrowParens": "avoid"
}

29 changes: 29 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const path = require('path')

module.exports = {
stories: ['../**/*.stories.mdx', '../**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
webpackFinal: async (config, { configType }) => {
// `configType` has a value of 'DEVELOPMENT' or 'PRODUCTION'
// You can change the configuration based on that.
// 'PRODUCTION' is used when building the static version of storybook.

// Make whatever fine-grained changes you need
config.module.rules.push({
test: /\.scss$/,
use: [
{ loader: 'style-loader' },
{
loader: 'css-loader',
options: { modules: true }
},
{ loader: 'sass-loader' }
],
include: path.resolve(__dirname, '../')
})

// Return the altered config
return config
}
}

4 changes: 4 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports.parameters = {
actions: { argTypesRegex: '^on[A-Z].*' }
}

Loading

0 comments on commit 73548eb

Please sign in to comment.