Skip to content

Instantly share code, notes, and snippets.

Avatar

Vincent DELACOURT vdelacou

View GitHub Profile
@vdelacou
vdelacou / .eslintrc.json
Last active Apr 25, 2021
Start node project
View .eslintrc.json
{
"env": {
"node": true,
"es2020": true
},
"extends": [
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
@vdelacou
vdelacou / README.md
Last active Apr 5, 2021
Add tailwind CSS
View README.md
@vdelacou
vdelacou / .eslintrc.json
Last active Feb 27, 2021
Vercel Nodejs API
View .eslintrc.json
{
"env": {
"node": true,
"es2020": true
},
"extends": [
"airbnb-typescript",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
@vdelacou
vdelacou / README.md
Last active Jun 6, 2021
Create NEXT app Typescript with typescript eslint jest and TailwindCSS
View README.md

Create project

npx create-next-app --example with-typescript-eslint-jest your-app

cd your-app

Setup prettier

curl -o .prettierrc https://gist.githubusercontent.com/vdelacou/58484f1c11af70aaa457f4e5c289e893/raw/.prettierrc

@vdelacou
vdelacou / tsconfig.json
Created Oct 20, 2020
Gatsby Typescript config
View tsconfig.json
{
"compilerOptions": {
"target": "esnext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
@vdelacou
vdelacou / README.md
Last active May 17, 2021
Create Multi Tenant AWS Amplify For B2B
View README.md

npm install -g @aws-amplify/cli

npm init private

amplify init

? Enter a name for the project tenant
? Enter a name for the environment develop
? Choose your default editor: Visual Studio Code
@vdelacou
vdelacou / .vscode_settings.json
Last active May 5, 2020
How to add AWS Amplify function typescript
View .vscode_settings.json
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"typescript.tsdk": "node_modules\\typescript\\lib",
"files.autoSave": "afterDelay",
"search.exclude": {
"**/node_modules": true,
"**/.vscode": true,
@vdelacou
vdelacou / .eslintrc.json
Last active May 15, 2020
Create Node API in second with Zeit now and typescript
View .eslintrc.json
{
"env": {
"es6": true,
"node": true
},
"extends": ["airbnb-typescript", "plugin:prettier/recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
@vdelacou
vdelacou / .editorconfig
Last active Apr 11, 2021
Create React app Typescript with eslint
View .editorconfig
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
@vdelacou
vdelacou / amplify.yml
Last active Jan 31, 2020
Amplify Console for backend end only with amplify cli
View amplify.yml
version: 0.1
backend:
phases:
build:
commands:
- amplifyPush --simple
frontend:
phases:
preBuild:
commands: