mirror of
https://github.com/oceanprotocol/ipfs
synced 2024-11-22 01:36:59 +01:00
lint tweaks
This commit is contained in:
parent
f7895c5359
commit
da0a24193b
@ -16,8 +16,7 @@
|
|||||||
"plugins": ["@typescript-eslint", "prettier"],
|
"plugins": ["@typescript-eslint", "prettier"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"react/prop-types": "off",
|
"react/prop-types": "off",
|
||||||
"@typescript-eslint/explicit-function-return-type": "off",
|
"@typescript-eslint/explicit-function-return-type": "off"
|
||||||
"@typescript-eslint/no-explicit-any": "off"
|
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"es6": true,
|
"es6": true,
|
||||||
@ -26,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"react": {
|
"react": {
|
||||||
"version": "16"
|
"version": "detect"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
16
package.json
16
package.json
@ -6,7 +6,7 @@
|
|||||||
"start": "next dev",
|
"start": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"serve": "next start",
|
"serve": "next start",
|
||||||
"test": "eslint --ignore-path .gitignore --ext .ts,.tsx ./src",
|
"test": "eslint --ignore-path .gitignore 'src/**/*.{ts,tsx}'",
|
||||||
"format": "prettier ./src/**/*.{css,yml,js,jsx,ts,tsx,json} --write"
|
"format": "prettier ./src/**/*.{css,yml,js,jsx,ts,tsx,json} --write"
|
||||||
},
|
},
|
||||||
"author": "Matthias Kretschmann <matthias@oceanprotocol.com>",
|
"author": "Matthias Kretschmann <matthias@oceanprotocol.com>",
|
||||||
@ -15,7 +15,7 @@
|
|||||||
"@oceanprotocol/art": "^2.2.0",
|
"@oceanprotocol/art": "^2.2.0",
|
||||||
"@oceanprotocol/typographies": "^0.1.0",
|
"@oceanprotocol/typographies": "^0.1.0",
|
||||||
"@zeit/next-css": "^1.0.1",
|
"@zeit/next-css": "^1.0.1",
|
||||||
"ipfs-http-client": "^38.2.0",
|
"ipfs-http-client": "^39.0.0",
|
||||||
"next": "9.1.1",
|
"next": "9.1.1",
|
||||||
"next-svgr": "0.0.2",
|
"next-svgr": "0.0.2",
|
||||||
"react": "^16.10.2",
|
"react": "^16.10.2",
|
||||||
@ -35,18 +35,6 @@
|
|||||||
"prettier": "^1.18.2",
|
"prettier": "^1.18.2",
|
||||||
"typescript": "^3.6.4"
|
"typescript": "^3.6.4"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
|
||||||
"extends": [
|
|
||||||
"oceanprotocol",
|
|
||||||
"oceanprotocol/react",
|
|
||||||
"prettier/react",
|
|
||||||
"prettier/standard",
|
|
||||||
"plugin:prettier/recommended"
|
|
||||||
],
|
|
||||||
"plugins": [
|
|
||||||
"prettier"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "10.x"
|
"node": "10.x"
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React from 'react'
|
import React, { ReactNode } from 'react'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import Footer from './components/Footer'
|
import Footer from './components/Footer'
|
||||||
import styles from './Layout.module.css'
|
import styles from './Layout.module.css'
|
||||||
@ -8,7 +8,7 @@ export default function Layout({
|
|||||||
children,
|
children,
|
||||||
pageTitle = title
|
pageTitle = title
|
||||||
}: {
|
}: {
|
||||||
children: any
|
children: ReactNode
|
||||||
pageTitle?: string
|
pageTitle?: string
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user