From bb411196671e23143e45f57fd2b6c7bc783e42ec Mon Sep 17 00:00:00 2001 From: "fryorcraken.eth" Date: Wed, 7 Sep 2022 12:22:54 +1000 Subject: [PATCH] chore: run lint --- .cspell.json | 50 ++++++++++++++++++++++----------------------- .mocharc.json | 20 +++++++++--------- karma.conf.cjs | 2 +- package.json | 4 ++-- src/index.ts | 6 +++--- tsconfig.karma.json | 10 ++++----- 6 files changed, 45 insertions(+), 47 deletions(-) diff --git a/.cspell.json b/.cspell.json index 89d91b0..9ac2164 100644 --- a/.cspell.json +++ b/.cspell.json @@ -1,27 +1,25 @@ { - "version": "0.1", - "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json", - "language": "en", - "words": [ - - ], - "flagWords": [], - "ignorePaths": [ - "package.json", - "package-lock.json", - "yarn.lock", - "tsconfig.json", - "node_modules/**", - "build", - "gen", - "proto", - "*.spec.ts" - ], - "patterns": [ - { - "name": "import", - "pattern": "/import .*/" - } - ], - "ignoreRegExpList": ["import"] - } \ No newline at end of file + "version": "0.1", + "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json", + "language": "en", + "words": [], + "flagWords": [], + "ignorePaths": [ + "package.json", + "package-lock.json", + "yarn.lock", + "tsconfig.json", + "node_modules/**", + "build", + "gen", + "proto", + "*.spec.ts" + ], + "patterns": [ + { + "name": "import", + "pattern": "/import .*/" + } + ], + "ignoreRegExpList": ["import"] +} diff --git a/.mocharc.json b/.mocharc.json index 7436def..db9dd73 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -1,11 +1,11 @@ { - "extension": ["ts"], - "spec": "src/**/*.spec.ts", - "require": ["ts-node/register", "isomorphic-fetch", "jsdom-global/register"], - "loader": "ts-node/esm", - "node-option": [ - "experimental-specifier-resolution=node", - "loader=ts-node/esm" - ], - "exit": true - } \ No newline at end of file + "extension": ["ts"], + "spec": "src/**/*.spec.ts", + "require": ["ts-node/register", "isomorphic-fetch", "jsdom-global/register"], + "loader": "ts-node/esm", + "node-option": [ + "experimental-specifier-resolution=node", + "loader=ts-node/esm" + ], + "exit": true +} diff --git a/karma.conf.cjs b/karma.conf.cjs index 97d9c7a..febf161 100644 --- a/karma.conf.cjs +++ b/karma.conf.cjs @@ -52,4 +52,4 @@ module.exports = function (config) { devtool: "inline-source-map", }, }); -}; \ No newline at end of file +}; diff --git a/package.json b/package.json index 2441fe8..aa3dcfc 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "test": "run-s test:*", "test:lint": "eslint src --ext .ts", "test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" \"*.*js\" \".github/**/*.yml\" --list-different", - "test:spelling": "cspell \"{README.md,.github/*.md,guides/*.md,src/**/*.ts}\"", + "test:spelling": "cspell \"{*.md,.github/*.md,src/**/*.ts}\"", "test:tsc": "tsc -p tsconfig.dev.json", "test:node": "TS_NODE_PROJECT=./tsconfig.dev.json mocha", "test:browser": "karma start karma.conf.cjs", @@ -119,7 +119,7 @@ "*.ts": [ "eslint --fix" ], - "*.{ts,json,conf*.*js}": [ + "*.{ts,md,json,conf*.*js}": [ "prettier --write" ] } diff --git a/src/index.ts b/src/index.ts index 10502d3..1862c7f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ export class RLN { - constructor() { - alert("Hello world"); - } + constructor() { + alert("Hello world"); + } } diff --git a/tsconfig.karma.json b/tsconfig.karma.json index 2632221..c540c78 100644 --- a/tsconfig.karma.json +++ b/tsconfig.karma.json @@ -1,6 +1,6 @@ { - "extends": "./tsconfig.dev", - "compilerOptions": { - "noEmit": false - } -} \ No newline at end of file + "extends": "./tsconfig.dev", + "compilerOptions": { + "noEmit": false + } +}