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