Skip to content

Commit

Permalink
🎉 init
Browse files Browse the repository at this point in the history
  • Loading branch information
iammary committed Mar 8, 2020
0 parents commit a4da345
Show file tree
Hide file tree
Showing 16 changed files with 9,720 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.next
node_modules
out
next.config.js
33 changes: 33 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// https://github.com/berlitz-global/max/blob/master/packages/eslint-config-max-base/index.js
// sans 'eslint:recommended' because it causes issue with PropTypes in *.tsx
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'plugin:react/recommended',
'plugin:prettier/recommended'],
env: {
browser: true,
es6: true,
node: true,
jest: true,
},
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of yarn modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
rules: {
strict: 0,
'react/prop-types': 0,
'prettier/prettier': 'warn',
'comma-dangle': ["error", "always-multiline"],
'react/display-name': 0
},
settings: {
react: {
pragma: 'React',
version: 'detect',
},
},
}


8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.next/
node_modules/
/npm-debug.log
.DS_Store
out/

# Editors
.idea
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 120
}
1 change: 1 addition & 0 deletions @types/globals/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module '*.md'
16 changes: 16 additions & 0 deletions content/home.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Awesome kitties
date: 2019-03-17T19:31:20.591Z
cats:
- description: 'Maru is a Scottish Fold from Japan, and he loves boxes.'
name: Maru (まる)
- description: Lil Bub is an American celebrity cat known for her unique appearance.
name: Lil Bub
- description: Grumpy cat is an American celebrity cat known for her grumpy appearance.
name: Grumpy cat (Tardar Sauce)
---
Welcome to my awesome page about cats of the internet.

This page is built with NextJS, and content is managed in Netlify CMS.

test
2 changes: 2 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
27 changes: 27 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const resolveTsconfigPathsToAlias = require('./resolve-tsconfig-path-to-webpack-alias')

module.exports = {
webpack: (cfg) => {
cfg.plugins = cfg.plugins || []

cfg.resolve.alias = {
...cfg.resolve.alias,
...resolveTsconfigPathsToAlias(),
}

cfg.plugins = [
...cfg.plugins,]

cfg.module.rules.push(
{
test: /\.md$/,
loader: 'frontmatter-markdown-loader',
options: { mode: ['react-component'] }
}
)

cfg.plugins = cfg.plugins.filter(plugin => plugin.constructor.name !== 'ForkTsCheckerWebpackPlugin')

return cfg;
}
}
Loading

0 comments on commit a4da345

Please sign in to comment.