{
"extends": [
- "eslint-config-hapi"
+ "@hapi/eslint-config-hapi"
],
"rules": {
"indent": [
import Forum from './forum.svelte';
+/* global document */
+
const forum = new Forum({
target: document.body,
props: {
export const forums = writable(internals.forums);
-export function addForum() {
+export const addForum = function addForum() {
+
const id = Math.random();
- forums.update((forums) => ([...forums,
+ forums.update((originalForums) => ([...originalForums,
{
id,
glyph: 'の',
const internals = {
kSplitterRegex: /.{1,8}/g,
kGlyphs: [
- "☽",
- "☆",
- "♢",
- "♡",
- "╱",
- "╲",
- "╳",
- "〰",
- "▷",
- "⏊",
- "〒",
- "▢",
- "◯",
- "⏃",
- "⏀",
- "⏆"
+ '☽',
+ '☆',
+ '♢',
+ '♡',
+ '╱',
+ '╲',
+ '╳',
+ '〰',
+ '▷',
+ '⏊',
+ '〒',
+ '▢',
+ '◯',
+ '⏃',
+ '⏀',
+ '⏆'
]
};
console.log(' ^+---------+');
console.log(' (.) ');
}
-};
+}
"scripts": {
"build": "parcel build --no-source-maps ./app/index.html",
"document": "jsdoc2md > doc/README.md",
- "lint": "eslint lib app bin",
+ "lint": "eslint lib app bin/forum",
"linthtml": "htmlhint",
"setup-hooks": "ln -s ../../scripts/git-hooks/pre-commit .git/hooks/pre-commit",
"test": "lab -r lab-markdown-reporter -o doc/COVERAGE.md -r console -o stdout -c --coverage-path lib -L -t 100 test",