mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
tried to address linting issues
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
{
|
||||
"parser": "babel-eslint",
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 8,
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
},
|
||||
"sourceType": "module"
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es6": true
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
}
|
||||
},
|
||||
"plugins": [
|
||||
"react"
|
||||
],
|
||||
@@ -15,5 +18,8 @@
|
||||
"react": {
|
||||
"pragma": "h"
|
||||
}
|
||||
},
|
||||
"globals": {
|
||||
"require": true,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import { h } from 'preact';
|
||||
import { Link } from 'preact-router';
|
||||
|
||||
export default function () {
|
||||
export default function() {
|
||||
return (
|
||||
<header className="header">
|
||||
<h1>PDFer</h1>
|
||||
<h1>PDFer</h1>
|
||||
</header>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { h } from 'preact';
|
||||
import Header from './Header';
|
||||
|
||||
export default function (props) {
|
||||
export default function(props) {
|
||||
return (
|
||||
<div id="app">
|
||||
<Header />
|
||||
|
||||
@@ -4,25 +4,25 @@ import Input from './Input';
|
||||
import TextAreaInput from './TextAreaInput';
|
||||
import Select from './Select';
|
||||
|
||||
const EXAMPLE_ADDRESS="Max Mustermann\nMusterstr. 73\n12345 Musterstadt";
|
||||
const EXAMPLE_ADDRESS = 'Max Mustermann\nMusterstr. 73\n12345 Musterstadt';
|
||||
|
||||
export default function(props) {
|
||||
const templateTypeOptions = [
|
||||
{
|
||||
value: 'brief-fam',
|
||||
name: "Familie"
|
||||
name: 'Familie'
|
||||
},
|
||||
{
|
||||
value: 'brief-valerie',
|
||||
name: "Valerie"
|
||||
name: 'Valerie'
|
||||
},
|
||||
{
|
||||
value: 'brief-rain',
|
||||
name: "Rain Baumeister"
|
||||
name: 'Rain Baumeister'
|
||||
},
|
||||
{
|
||||
value: 'brief-thomas',
|
||||
name: "Thomas"
|
||||
name: 'Thomas'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, h } from 'preact';
|
||||
import { h } from 'preact';
|
||||
|
||||
export default props => {
|
||||
if (props.pdfIsLoading) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { h } from 'preact';
|
||||
|
||||
export default function (props) {
|
||||
export default function(props) {
|
||||
return (
|
||||
<div>
|
||||
<h2>No hope!</h2>
|
||||
|
||||
Reference in New Issue
Block a user