mirror of https://github.com/kern/filepizza
init eslint
parent
a21f20486b
commit
b830677033
@ -0,0 +1,27 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
extends: [
|
||||||
|
'@strv/typescript',
|
||||||
|
'@strv/typescript/optional',
|
||||||
|
'@strv/typescript/style'
|
||||||
|
],
|
||||||
|
plugins: [
|
||||||
|
"prettier"
|
||||||
|
],
|
||||||
|
rules: {
|
||||||
|
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
||||||
|
"@typescript-eslint/no-use-before-define": ["error", { "variables": false }],
|
||||||
|
"@typescript-eslint/no-parameter-properties": ["error", { "allows": ["private readonly"] }],
|
||||||
|
"@typescript-eslint/promise-function-async": "off",
|
||||||
|
"@typescript-eslint/require-await": "off",
|
||||||
|
"import/no-unused-modules": "off",
|
||||||
|
"import/group-exports": "off",
|
||||||
|
"import/no-extraneous-dependencies": "off",
|
||||||
|
"new-cap": "off",
|
||||||
|
"no-inline-comments": "off",
|
||||||
|
"no-shadow": "warn",
|
||||||
|
"no-use-before-define": ["error", { "variables": false }],
|
||||||
|
"prettier/prettier": "error",
|
||||||
|
}
|
||||||
|
};
|
||||||
@ -1,5 +1,18 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import ReactDOM from 'react-dom';
|
||||||
|
import { EventDispatcher } from "peer-data";
|
||||||
|
import { PeerDataProvider } from 'react-peer-data';
|
||||||
|
|
||||||
|
import App from './App';
|
||||||
|
|
||||||
const IndexPage = () => {
|
const IndexPage = () => {
|
||||||
return <div>Welcome to Next.js!</div>
|
return <PeerDataProvider
|
||||||
|
servers={{ iceServers: [{ url: "stun:stun.1.google.com:19302" }] }}
|
||||||
|
constraints={{ ordered: true }}
|
||||||
|
signaling={{ dispatcher: new EventDispatcher() }}
|
||||||
|
>
|
||||||
|
<App />
|
||||||
|
</PeerDataProvider>,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default IndexPage
|
export default IndexPage
|
||||||
|
|||||||
Loading…
Reference in New Issue