Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
module.exports = {
presets: [
[
"next/babel",
{
cjs: { "preset-env": { modules: "commonjs" } },
esm: { "preset-env": { modules: false } }
}[process.env.BABEL_ENV] || {}
]
],
plugins: [["babel-plugin-styled-components", { ssr: true }]]
'@babel/preset-typescript',
'@babel/preset-env',
'@babel/preset-react'
]
};
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage
dist
node_modules
types
!.*.js
!.*.ts
38 changes: 30 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,39 @@
module.exports = {
extends: ["standard", "standard-react", "prettier", "prettier/standard"],
root: true,
env: {
browser: true,
es6: true,
node: true,
jest: true
jest: true,
node: true
},
parser: "babel-eslint",
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:prettier/recommended'
],
parserOptions: {
ecmaVersion: 2018
ecmaFeatures: {
jsx: true
},
ecmaVersion: 2018,
sourceType: 'module'
},
plugins: ["react", "prettier"],
settings: {
react: {
version: '16.8'
}
},
plugins: ['@typescript-eslint', 'react-hooks'],
rules: {
"prettier/prettier": ["warn", {}],
"react/no-unused-prop-types": "warn"
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-var-requires': 'off',
'react/prop-types': 'off',
'react-hooks/exhaustive-deps': 'error',
'react-hooks/rules-of-hooks': 'error'
}
};
31 changes: 27 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
Expand All @@ -20,7 +24,7 @@ coverage
# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
Expand Down Expand Up @@ -56,12 +60,31 @@ typings/

# dotenv environment variables file
.env
.env.test

# Build cache
# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# Build output
dist-*
# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Rollup output
dist

# TypeScript output
types
4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
singleQuote: true,
proseWrap: 'always'
};
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

Loading