Skip to content

Commit

Permalink
[Config] Prettier and other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioislima committed Apr 21, 2022
1 parent cc9e4ac commit 2a4517a
Show file tree
Hide file tree
Showing 6 changed files with 504 additions and 18 deletions.
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"trailingComma": "none",
"tabWidth": 2,
"semi": false,
"singleQuote": true
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.tabSize": 2
}
2 changes: 0 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
const withPlugins = require('next-compose-plugins');
const optimizedImages = require('next-optimized-images');

const isProd = process.env.NODE_ENV === 'production'

module.exports = withPlugins([
[optimizedImages, {
optipng: {
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@
"react": "17.0.2",
"react-dom": "17.0.2",
"react-ionicons": "^4.2.0",
"styled-components": "^5.3.5"
"sharp": "^0.30.4",
"styled-components": "^5.3.5",
"tslib": "^2.3.1"
},
"devDependencies": {
"@types/node": "16.11.6",
"@types/react": "17.0.34",
"eslint": "7",
"eslint-config-next": "12.0.3",
"next-compose-plugins": "^2.2.1",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.3",
"typescript": "4.6.3"
}
}
11 changes: 8 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true
"incremental": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"importHelpers": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"resolveJsonModule": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
Expand Down
Loading

0 comments on commit 2a4517a

Please sign in to comment.