mirror of
https://github.com/logos-messaging/js-rln.git
synced 2026-01-02 13:43:06 +00:00
chore: run lint
This commit is contained in:
parent
d87a9a198a
commit
bb41119667
50
.cspell.json
50
.cspell.json
@ -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"]
|
|
||||||
}
|
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,4 +52,4 @@ module.exports = function (config) {
|
|||||||
devtool: "inline-source-map",
|
devtool: "inline-source-map",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
export class RLN {
|
export class RLN {
|
||||||
constructor() {
|
constructor() {
|
||||||
alert("Hello world");
|
alert("Hello world");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"extends": "./tsconfig.dev",
|
"extends": "./tsconfig.dev",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"noEmit": false
|
"noEmit": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user