chore: run lint

This commit is contained in:
fryorcraken.eth 2022-09-07 12:22:54 +10:00 committed by Richard Ramos
parent d87a9a198a
commit bb41119667
6 changed files with 45 additions and 47 deletions

View File

@ -1,27 +1,25 @@
{ {
"version": "0.1", "version": "0.1",
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json", "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/master/cspell.schema.json",
"language": "en", "language": "en",
"words": [ "words": [],
"flagWords": [],
], "ignorePaths": [
"flagWords": [], "package.json",
"ignorePaths": [ "package-lock.json",
"package.json", "yarn.lock",
"package-lock.json", "tsconfig.json",
"yarn.lock", "node_modules/**",
"tsconfig.json", "build",
"node_modules/**", "gen",
"build", "proto",
"gen", "*.spec.ts"
"proto", ],
"*.spec.ts" "patterns": [
], {
"patterns": [ "name": "import",
{ "pattern": "/import .*/"
"name": "import", }
"pattern": "/import .*/" ],
} "ignoreRegExpList": ["import"]
], }
"ignoreRegExpList": ["import"]
}

View File

@ -1,11 +1,11 @@
{ {
"extension": ["ts"], "extension": ["ts"],
"spec": "src/**/*.spec.ts", "spec": "src/**/*.spec.ts",
"require": ["ts-node/register", "isomorphic-fetch", "jsdom-global/register"], "require": ["ts-node/register", "isomorphic-fetch", "jsdom-global/register"],
"loader": "ts-node/esm", "loader": "ts-node/esm",
"node-option": [ "node-option": [
"experimental-specifier-resolution=node", "experimental-specifier-resolution=node",
"loader=ts-node/esm" "loader=ts-node/esm"
], ],
"exit": true "exit": true
} }

View File

@ -52,4 +52,4 @@ module.exports = function (config) {
devtool: "inline-source-map", devtool: "inline-source-map",
}, },
}); });
}; };

View File

@ -40,7 +40,7 @@
"test": "run-s test:*", "test": "run-s test:*",
"test:lint": "eslint src --ext .ts", "test:lint": "eslint src --ext .ts",
"test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" \"*.*js\" \".github/**/*.yml\" --list-different", "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:tsc": "tsc -p tsconfig.dev.json",
"test:node": "TS_NODE_PROJECT=./tsconfig.dev.json mocha", "test:node": "TS_NODE_PROJECT=./tsconfig.dev.json mocha",
"test:browser": "karma start karma.conf.cjs", "test:browser": "karma start karma.conf.cjs",
@ -119,7 +119,7 @@
"*.ts": [ "*.ts": [
"eslint --fix" "eslint --fix"
], ],
"*.{ts,json,conf*.*js}": [ "*.{ts,md,json,conf*.*js}": [
"prettier --write" "prettier --write"
] ]
} }

View File

@ -1,5 +1,5 @@
export class RLN { export class RLN {
constructor() { constructor() {
alert("Hello world"); alert("Hello world");
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"extends": "./tsconfig.dev", "extends": "./tsconfig.dev",
"compilerOptions": { "compilerOptions": {
"noEmit": false "noEmit": false
} }
} }