Skip to content

Commit

Permalink
Migrate to Next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuch committed Dec 13, 2017
1 parent 5cb94d2 commit 48a394d
Show file tree
Hide file tree
Showing 98 changed files with 4,496 additions and 6,713 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["env", "next/babel"]
}
39 changes: 39 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"plugins": ["react"],
"env": {
"shared-node-browser": true
},
"globals": {
"global": true
},
"rules": {
"no-console": "warn"
},
"overrides": [
{
"files": ["jest.config.js", "cosmos.config.js", "cosmos.test.js"],
"env": {
"node": true
}
},
{
"files": ["components/**/*.js", "pages/**/*.js"],
"rules": {
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error"
}
},
{
"files": ["**/__fixtures__/**/*.js"],
"rules": {
"no-console": "off"
}
}
]
}
17 changes: 3 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
node_modules
cosmos-export
.next

# dependencies
/node_modules

# testing
/coverage

# production
/build
/cosmos-export

# misc
.DS_Store
.env
npm-debug.log*
yarn-debug.log*
yarn-error.log*
Loading

0 comments on commit 48a394d

Please sign in to comment.