-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a4da345
Showing
16 changed files
with
9,720 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.next | ||
node_modules | ||
out | ||
next.config.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
}, | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"printWidth": 120 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
declare module '*.md' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/types/global" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
Oops, something went wrong.