-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from Theodo-UK/feat/prettier-config
prettier config
- Loading branch information
Showing
11 changed files
with
162 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
{ | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"rules": { | ||
"max-lines": ["error", { "max": 200, "skipBlankLines": true }], | ||
"max-lines-per-function": [ | ||
"error", | ||
{ "max": 75, "skipBlankLines": true, "skipComments": true } | ||
"extends": [ | ||
"next/core-web-vitals", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"complexity": ["error", 6], | ||
"prettier/prettier": ["error", {"tabWidth": 4}] | ||
} | ||
"rules": { | ||
"max-lines": ["error", { "max": 200, "skipBlankLines": true }], | ||
"max-lines-per-function": [ | ||
"error", | ||
{ "max": 75, "skipBlankLines": true, "skipComments": true } | ||
], | ||
"complexity": ["error", 6] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"tabWidth": 4, | ||
"singleQuote": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true, | ||
"source.organizeImports": true, | ||
"source.unusedImports": true | ||
} | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": true, | ||
"source.organizeImports": true, | ||
"source.unusedImports": true | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,53 @@ | ||
{ | ||
"name": "front", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"local": "next dev", | ||
"dev": "sst bind next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint", | ||
"test": "jest", | ||
"generate": "yarn prisma generate --generator client_js", | ||
"db-push": "npx prisma db push" | ||
}, | ||
"prisma": { | ||
"schema": "../prisma/schema.prisma" | ||
}, | ||
"engines": { | ||
"node": ">=18.0.0" | ||
}, | ||
"dependencies": { | ||
"@prisma/client": "5.1.1", | ||
"@types/node": "20.4.8", | ||
"@types/react": "18.2.18", | ||
"@types/react-dom": "18.2.7", | ||
"autoprefixer": "10.4.14", | ||
"eslint": "8.46.0", | ||
"eslint-config-next": "13.4.13", | ||
"next": "13.4.13", | ||
"postcss": "8.4.27", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"server-only": "^0.0.1", | ||
"tailwindcss": "3.3.3", | ||
"typescript": "5.1.6" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^6.0.1", | ||
"@testing-library/react": "^14.0.0", | ||
"@types/jest": "^29.5.3", | ||
"@typescript-eslint/eslint-plugin": "^6.3.0", | ||
"aws-cdk-lib": "2.84.0", | ||
"constructs": "10.1.156", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"jest": "^29.6.2", | ||
"jest-environment-jsdom": "^29.6.2", | ||
"prettier": "^3.0.1", | ||
"prisma": "^5.1.1", | ||
"sst": "^2.23.6" | ||
} | ||
"name": "front", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"local": "next dev", | ||
"dev": "sst bind next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint", | ||
"test": "jest", | ||
"generate": "yarn prisma generate --generator client_js", | ||
"db-push": "npx prisma db push", | ||
"format": "prettier --write ." | ||
}, | ||
"prisma": { | ||
"schema": "../prisma/schema.prisma" | ||
}, | ||
"engines": { | ||
"node": ">=18.0.0" | ||
}, | ||
"dependencies": { | ||
"@prisma/client": "5.1.1", | ||
"@types/node": "20.4.8", | ||
"@types/react": "18.2.18", | ||
"@types/react-dom": "18.2.7", | ||
"autoprefixer": "10.4.14", | ||
"eslint": "8.46.0", | ||
"eslint-config-next": "13.4.13", | ||
"next": "13.4.13", | ||
"postcss": "8.4.27", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"server-only": "^0.0.1", | ||
"tailwindcss": "3.3.3", | ||
"typescript": "5.1.6" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^6.0.1", | ||
"@testing-library/react": "^14.0.0", | ||
"@types/jest": "^29.5.3", | ||
"@typescript-eslint/eslint-plugin": "^6.3.0", | ||
"aws-cdk-lib": "2.84.0", | ||
"constructs": "10.1.156", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"jest": "^29.6.2", | ||
"jest-environment-jsdom": "^29.6.2", | ||
"prettier": "^3.0.1", | ||
"prisma": "^5.1.1", | ||
"sst": "^2.23.6" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"noUncheckedIndexedAccess": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noEmit": true, | ||
"esModuleInterop": true, | ||
"module": "esnext", | ||
"moduleResolution": "bundler", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"jsx": "preserve", | ||
"incremental": true, | ||
"plugins": [ | ||
{ | ||
"name": "next" | ||
} | ||
], | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
}, | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], | ||
"exclude": ["node_modules"] | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"noUncheckedIndexedAccess": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noEmit": true, | ||
"esModuleInterop": true, | ||
"module": "esnext", | ||
"moduleResolution": "bundler", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"jsx": "preserve", | ||
"incremental": true, | ||
"plugins": [ | ||
{ | ||
"name": "next" | ||
} | ||
], | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
}, | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], | ||
"exclude": ["node_modules"] | ||
} |