Skip to content

Commit

Permalink
Setup Enviroment - Alias, eslint, prettier and wrap app code in src
Browse files Browse the repository at this point in the history
  • Loading branch information
NightDreams committed Mar 17, 2022
1 parent a7e84aa commit c4a3de9
Show file tree
Hide file tree
Showing 14 changed files with 223 additions and 350 deletions.
1 change: 1 addition & 0 deletions .eslintignore
@@ -0,0 +1 @@
node_modules
14 changes: 14 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,14 @@
module.exports = {
root: true,
env: { browser: true amd: true, node: true, es6: true },
extends: [
'eslint:recommended',
'plugin:jsx-a11y/recommended',
'plugin:prettier/recommended',
'next',
'next/core-web-vitals',
],
rules: {
'semi': ['error', 'always']
}
}
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

8 changes: 8 additions & 0 deletions jsconfig.json
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"baseUrl": "src",
"paths": {
"@apges": ["pages/"]
}
}
}
533 changes: 187 additions & 346 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion package.json
Expand Up @@ -9,12 +9,16 @@
"lint": "next lint"
},
"dependencies": {
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"next": "12.1.0",
"prettier": "^2.6.0",
"react": "17.0.2",
"react-dom": "17.0.2"
},
"devDependencies": {
"eslint": "8.11.0",
"eslint-config-next": "12.1.0"
"eslint-config-next": "^12.1.0"
}
}
8 changes: 8 additions & 0 deletions prettier.config.js
@@ -0,0 +1,8 @@
module.exports = {
semi: true,
singleQuote: true,
printWidth: 200,
useTabs: false,
trailingComma: 'es5',
backetSpace: true,
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.

0 comments on commit c4a3de9

Please sign in to comment.