Skip to content

Commit

Permalink
Merge pull request #56 from Jacksonmills/feature/add-prettier-eslint
Browse files Browse the repository at this point in the history
feat: standardize formatting and linting setup
  • Loading branch information
adamcohenhillel authored Feb 16, 2024
2 parents b7b9644 + 679f268 commit 3d9ddab
Show file tree
Hide file tree
Showing 40 changed files with 554 additions and 391 deletions.
29 changes: 29 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
node_modules
.pnp
.pnp.js
coverage

.changeset
.github

.next/
**/next-env.d.ts
out/
build

.DS_Store
*.pem

npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

.turbo

dist
.solid
docs/
*.yaml
*.yml
*.md
5 changes: 5 additions & 0 deletions app/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist/*
.cache
public
node_modules
*.esm.js
29 changes: 28 additions & 1 deletion app/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
{
"extends": "next/core-web-vitals"
"$schema": "https://json.schemastore.org/eslintrc",
"root": true,
"extends": [
"next/core-web-vitals",
"prettier",
"plugin:tailwindcss/recommended"
],
"plugins": ["tailwindcss"],
"rules": {
"@next/next/no-html-link-for-pages": "off",
"react/jsx-key": "off",
"tailwindcss/no-custom-classname": "off"
},
"settings": {
"tailwindcss": {
"callees": ["cn"],
"config": "tailwind.config.js"
},
"next": {
"rootDir": ["./"]
}
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser"
}
]
}
4 changes: 2 additions & 2 deletions app/capacitor.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const config: CapacitorConfig = {
appName: 'adeus',
webDir: 'out',
server: {
androidScheme: 'https'
}
androidScheme: 'https',
},
};

export default config;
2 changes: 1 addition & 1 deletion app/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"components": "@/components",
"utils": "@/utils/cnHelper"
}
}
}
16 changes: 8 additions & 8 deletions app/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"images" : [
"images": [
{
"filename" : "[email protected]",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
"filename": "[email protected]",
"idiom": "universal",
"platform": "ios",
"size": "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
8 changes: 4 additions & 4 deletions app/ios/App/App/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
}
}
}
28 changes: 14 additions & 14 deletions app/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"images" : [
"images": [
{
"idiom" : "universal",
"filename" : "splash-2732x2732-2.png",
"scale" : "1x"
"idiom": "universal",
"filename": "splash-2732x2732-2.png",
"scale": "1x"
},
{
"idiom" : "universal",
"filename" : "splash-2732x2732-1.png",
"scale" : "2x"
"idiom": "universal",
"filename": "splash-2732x2732-1.png",
"scale": "2x"
},
{
"idiom" : "universal",
"filename" : "splash-2732x2732.png",
"scale" : "3x"
"idiom": "universal",
"filename": "splash-2732x2732.png",
"scale": "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
}
}
}
4 changes: 2 additions & 2 deletions app/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const nextConfig = {
reactStrictMode: false,
output: 'export',
images: {
unoptimized: true
}
unoptimized: true,
},
};

export default nextConfig;
68 changes: 68 additions & 0 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint:fix": "next lint --fix",
"format:check": "prettier --check .",
"format": "prettier --write . --list-different",
"check": "npm run lint && npm run format:check",
"fix": "npm run lint:fix && npm run format",
"app": "npm run build && npx cap sync",
"ios": "npm run app && npx cap open ios",
"android": "npm run app && npx cap open android"
Expand Down Expand Up @@ -45,7 +50,12 @@
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-tailwindcss": "^3.14.2",
"postcss": "^8",
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4",
"tailwindcss": "^3.3.0",
"typescript": "^5"
}
Expand Down
Loading

0 comments on commit 3d9ddab

Please sign in to comment.