Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
akash-joshi committed Mar 24, 2019
1 parent 3e41ffe commit 5b5be72
Show file tree
Hide file tree
Showing 12 changed files with 6,944 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .babelrc
@@ -0,0 +1,15 @@
{
"presets": [
"next/babel"
],
"plugins": [
[
"styled-components",
{
"ssr": true,
"displayName": true,
"preprocess": false
}
]
]
}
36 changes: 36 additions & 0 deletions .eslintrc
@@ -0,0 +1,36 @@
{
"extends": [
"airbnb",
"prettier",
"prettier/react"
],
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"rules": {
"consistent-return": "off",
"no-console": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100
}
]
},
"plugins": [
"prettier"
]
}
6 changes: 4 additions & 2 deletions README.md
@@ -1,2 +1,4 @@
# nextjs-config
馃敟 My nextjs config with eslint and styled-components
# gigindia

1) ```npm i```
2) ```npm run dev```
9 changes: 9 additions & 0 deletions next.config.js
@@ -0,0 +1,9 @@
module.exports = {
exportPathMap: function() {
return {
'/': { page: '/' },
'/student': { page: '/student'},
'/bussiness': {page: '/bussiness'}
}
}
}

0 comments on commit 5b5be72

Please sign in to comment.