lint tweaks

This commit is contained in:
Matthias Kretschmann 2019-10-17 12:35:28 +02:00
parent f7895c5359
commit da0a24193b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 6 additions and 19 deletions

View File

@ -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"
}
}
}

View File

@ -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"
}

View File

@ -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 (