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:
@@ -4,7 +4,6 @@
|
|||||||
"es6": true
|
"es6": true
|
||||||
},
|
},
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 6,
|
|
||||||
"sourceType": "module"
|
"sourceType": "module"
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
@@ -40,7 +39,7 @@
|
|||||||
"max-len": [2, 140],
|
"max-len": [2, 140],
|
||||||
"max-params": [1, 4],
|
"max-params": [1, 4],
|
||||||
"max-statements": [2, 20],
|
"max-statements": [2, 20],
|
||||||
"new-cap": [2, { "capIsNewExceptions": ["Q"] }],
|
"new-cap": 2,
|
||||||
"no-eval": 2,
|
"no-eval": 2,
|
||||||
"no-bitwise": 2,
|
"no-bitwise": 2,
|
||||||
"no-caller": 2,
|
"no-caller": 2,
|
||||||
@@ -49,7 +48,6 @@
|
|||||||
"no-dupe-class-members": 2,
|
"no-dupe-class-members": 2,
|
||||||
"no-empty": 2,
|
"no-empty": 2,
|
||||||
"no-mixed-spaces-and-tabs": 2,
|
"no-mixed-spaces-and-tabs": 2,
|
||||||
"no-multi-spaces": 2,
|
|
||||||
"no-multi-str": 2,
|
"no-multi-str": 2,
|
||||||
"no-new": 2,
|
"no-new": 2,
|
||||||
"no-this-before-super": 2,
|
"no-this-before-super": 2,
|
||||||
@@ -67,7 +65,6 @@
|
|||||||
"prefer-template": 0,
|
"prefer-template": 0,
|
||||||
"quotes": [2, "single", "avoid-escape"],
|
"quotes": [2, "single", "avoid-escape"],
|
||||||
"require-yield": 0,
|
"require-yield": 0,
|
||||||
"semi": 2,
|
|
||||||
"space-before-function-paren": [2, "never"],
|
"space-before-function-paren": [2, "never"],
|
||||||
"space-unary-ops": [2, {"words": false, "nonwords": false}],
|
"space-unary-ops": [2, {"words": false, "nonwords": false}],
|
||||||
"space-infix-ops": 2,
|
"space-infix-ops": 2,
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
"babel-preset-react": "^6.23.0",
|
"babel-preset-react": "^6.23.0",
|
||||||
"clean-webpack-plugin": "^0.1.15",
|
"clean-webpack-plugin": "^0.1.15",
|
||||||
"copy-webpack-plugin": "^4.0.1",
|
"copy-webpack-plugin": "^4.0.1",
|
||||||
"eslint": "^3.15.0",
|
"eslint": "^3.16.0",
|
||||||
"html-webpack-plugin": "^2.28.0",
|
"html-webpack-plugin": "^2.28.0",
|
||||||
"nodemon": "^1.11.0",
|
"nodemon": "^1.11.0",
|
||||||
"react-collapsible": "^1.2.1",
|
"react-collapsible": "^1.2.1",
|
||||||
|
|||||||
@@ -1,13 +1,16 @@
|
|||||||
{
|
{
|
||||||
|
"parser": "babel-eslint",
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 8,
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"jsx": true
|
||||||
|
},
|
||||||
|
"sourceType": "module"
|
||||||
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"es6": true
|
"es6": true
|
||||||
},
|
},
|
||||||
"parserOptions": {
|
|
||||||
"ecmaFeatures": {
|
|
||||||
"jsx": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"react"
|
"react"
|
||||||
],
|
],
|
||||||
@@ -15,5 +18,8 @@
|
|||||||
"react": {
|
"react": {
|
||||||
"pragma": "h"
|
"pragma": "h"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"require": true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
import { h } from 'preact';
|
import { h } from 'preact';
|
||||||
import { Link } from 'preact-router';
|
|
||||||
|
|
||||||
export default function () {
|
export default function() {
|
||||||
return (
|
return (
|
||||||
<header className="header">
|
<header className="header">
|
||||||
<h1>PDFer</h1>
|
<h1>PDFer</h1>
|
||||||
</header>
|
</header>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { h } from 'preact';
|
import { h } from 'preact';
|
||||||
import Header from './Header';
|
import Header from './Header';
|
||||||
|
|
||||||
export default function (props) {
|
export default function(props) {
|
||||||
return (
|
return (
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<Header />
|
<Header />
|
||||||
|
|||||||
@@ -4,25 +4,25 @@ import Input from './Input';
|
|||||||
import TextAreaInput from './TextAreaInput';
|
import TextAreaInput from './TextAreaInput';
|
||||||
import Select from './Select';
|
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) {
|
export default function(props) {
|
||||||
const templateTypeOptions = [
|
const templateTypeOptions = [
|
||||||
{
|
{
|
||||||
value: 'brief-fam',
|
value: 'brief-fam',
|
||||||
name: "Familie"
|
name: 'Familie'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'brief-valerie',
|
value: 'brief-valerie',
|
||||||
name: "Valerie"
|
name: 'Valerie'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'brief-rain',
|
value: 'brief-rain',
|
||||||
name: "Rain Baumeister"
|
name: 'Rain Baumeister'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'brief-thomas',
|
value: 'brief-thomas',
|
||||||
name: "Thomas"
|
name: 'Thomas'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, h } from 'preact';
|
import { h } from 'preact';
|
||||||
|
|
||||||
export default props => {
|
export default props => {
|
||||||
if (props.pdfIsLoading) {
|
if (props.pdfIsLoading) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { h } from 'preact';
|
import { h } from 'preact';
|
||||||
|
|
||||||
export default function (props) {
|
export default function(props) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<h2>No hope!</h2>
|
<h2>No hope!</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user