1
0
mirror of https://github.com/kremalicious/ipfs.git synced 2024-12-27 07:07:46 +01:00

package cleanup

This commit is contained in:
Matthias Kretschmann 2021-09-12 22:54:44 +02:00
parent 33d2e6abed
commit 084e7a4572
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 12 additions and 4785 deletions

View File

@ -33,7 +33,7 @@
"plugin:react-hooks/recommended",
"plugin:@next/next/recommended"
],
"plugins": ["@typescript-eslint", "react"],
"plugins": ["@typescript-eslint", "react", "@next/next"],
"rules": {
"react/prop-types": "off",
"@typescript-eslint/explicit-function-return-type": "off"

View File

@ -1,3 +1,9 @@
// @ts-check
/**
* @type {import('next').NextConfig}
**/
// eslint-disable-next-line no-unused-vars
const withSvgr = (nextConfig = {}, nextComposePlugins = {}) => {
return Object.assign({}, nextConfig, {
@ -23,4 +29,8 @@ const withSvgr = (nextConfig = {}, nextComposePlugins = {}) => {
})
}
module.exports = withSvgr()
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
})
module.exports = withBundleAnalyzer(withSvgr)

4775
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -37,7 +37,6 @@
"@types/react": "^17.0.2",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"cssnano": "^5.0.8",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
@ -45,7 +44,6 @@
"eslint-plugin-react": "^7.25.1",
"eslint-plugin-react-hooks": "^4.2.0",
"jest": "^27.1.1",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.4.0",
"typescript": "^4.4.3"
},

View File

@ -1,6 +0,0 @@
module.exports = {
plugins: {
'postcss-preset-env': {},
cssnano: {}
}
}