updates eslint and prettier configs
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
dist
|
||||
helm
|
||||
node_modules
|
||||
output
|
||||
public
|
||||
schemas/spec/*.ts
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"trailingComma": "none",
|
||||
"tabWidth": 2,
|
||||
"semi": false,
|
||||
"endOfLine": "auto",
|
||||
"bracketSpacing": true,
|
||||
"vueIndentScriptAndStyle": false,
|
||||
"htmlWhitespaceSensitivity": "ignore",
|
||||
"printWidth": 88,
|
||||
"singleQuote": true
|
||||
}
|
||||
@@ -1,2 +1,3 @@
|
||||
# prom-client-fine-grained-metrics
|
||||
|
||||
Prom client default metrics sampled at higher frequency and returned as histograms
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import globals from 'globals'
|
||||
import pluginJs from '@eslint/js'
|
||||
import tseslint from 'typescript-eslint'
|
||||
|
||||
export default [
|
||||
{ files: ['**/*.{js,ts}'] },
|
||||
{ languageOptions: { globals: globals.browser } },
|
||||
pluginJs.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
{ ignores: ['node_modules', 'dist', '**/*.cjs'] }
|
||||
]
|
||||
+12
-4
@@ -2,19 +2,22 @@
|
||||
"author": "Speckle Systems",
|
||||
"description": "Default metrics for prom-client with higher frequency collection to histogram",
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^9.6.0",
|
||||
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
||||
"@typescript-eslint/parser": "^7.14.1",
|
||||
"eslint": "^9.6.0",
|
||||
"eslint": "9.x",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-config-standard-with-typescript": "^43.0.1",
|
||||
"eslint-import-resolver-typescript": "^3.6.1",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-n": "^17.9.0",
|
||||
"eslint-plugin-promise": "^6.4.0",
|
||||
"globals": "^15.7.0",
|
||||
"lockfile-lint": "^4.14.0",
|
||||
"prettier": "^3.3.2",
|
||||
"prettier-plugin-organize-imports": "^3.2.4",
|
||||
"typescript": "^5.5.2"
|
||||
"typescript": "^5.5.2",
|
||||
"typescript-eslint": "^7.14.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "18"
|
||||
@@ -23,9 +26,14 @@
|
||||
"name": "prom-client-fine-grained-metrics",
|
||||
"packageManager": "yarn@4.2.2",
|
||||
"repository": "https://github.com/specklesystems/prom-client-fine-grained-metrics",
|
||||
"peerDependencies": {
|
||||
"prom-client": ">= 10 <= 15"
|
||||
},
|
||||
"scripts": {
|
||||
"lint:eslint": "eslint --ext \".js,.ts,.vue\" .",
|
||||
"build": "yarn run build",
|
||||
"lint:eslint": "eslint .",
|
||||
"lint:tsc": "tsc --noEmit",
|
||||
"lint": "yarn run lint:eslint && yarn run lint:tsc",
|
||||
"build": "tsc -p ./tsconfig.build.json",
|
||||
"precommit:prettier": "yarn prettier --check",
|
||||
"precommit:eslint": "yarn eslint --max-warnings=0",
|
||||
"precommit:lockfilelint": "yarn lockfile-lint --path yarn.lock --allowed-hosts registry.yarnpkg.com --allowed-schemes \"https:\" \"npm:\" \"workspace:\" \"patch:\"",
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export default function () {
|
||||
console.log('hello world!')
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"exclude": ["**/*.spec.js", "**/*.spec.ts", "test/**/*"]
|
||||
}
|
||||
+3
-3
@@ -26,7 +26,7 @@
|
||||
/* Modules */
|
||||
"module": "NodeNext" /* Specify what module code is generated. */,
|
||||
// "rootDir": "./", /* Specify the root folder within your source files. */
|
||||
"moduleResolution": "Bundler" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
||||
"moduleResolution": "NodeNext" /* Specify how TypeScript looks up a file from a given module specifier. */,
|
||||
"baseUrl": "." /* Specify the base directory to resolve non-relative module names. */,
|
||||
"paths": {
|
||||
"@/*": ["./*"]
|
||||
@@ -104,6 +104,6 @@
|
||||
"ts-node": {
|
||||
"swc": true
|
||||
},
|
||||
"include": [".*.cjs", "eslint.config.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
"include": ["src/**/*.ts", "eslint.config.mjs"],
|
||||
"exclude": ["node_modules", "dist/**/*"]
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@eslint/js@npm:9.6.0":
|
||||
"@eslint/js@npm:9.6.0, @eslint/js@npm:^9.6.0":
|
||||
version: 9.6.0
|
||||
resolution: "@eslint/js@npm:9.6.0"
|
||||
checksum: 10c0/83967a7e59f2e958c9bbb3acd0929cad00d59d927ad786ed8e0d30b07f983c6bea3af6f4ad32da32145db40b7a741a816ba339bdd8960fc7fc8231716d943b7f
|
||||
@@ -142,7 +142,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/eslint-plugin@npm:^7.14.1":
|
||||
"@typescript-eslint/eslint-plugin@npm:7.14.1, @typescript-eslint/eslint-plugin@npm:^7.14.1":
|
||||
version: 7.14.1
|
||||
resolution: "@typescript-eslint/eslint-plugin@npm:7.14.1"
|
||||
dependencies:
|
||||
@@ -165,6 +165,24 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/parser@npm:7.14.1, @typescript-eslint/parser@npm:^7.14.1":
|
||||
version: 7.14.1
|
||||
resolution: "@typescript-eslint/parser@npm:7.14.1"
|
||||
dependencies:
|
||||
"@typescript-eslint/scope-manager": "npm:7.14.1"
|
||||
"@typescript-eslint/types": "npm:7.14.1"
|
||||
"@typescript-eslint/typescript-estree": "npm:7.14.1"
|
||||
"@typescript-eslint/visitor-keys": "npm:7.14.1"
|
||||
debug: "npm:^4.3.4"
|
||||
peerDependencies:
|
||||
eslint: ^8.56.0
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: 10c0/db3169d4852685cfb27db741c557f58a3e52104bfacc7621beb7c94ec36ac2a08d4e410ac86745db52f482fbfc87e99fa0a26c1d7a10d37a215cce85e1661f0e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/parser@npm:^6.4.0":
|
||||
version: 6.21.0
|
||||
resolution: "@typescript-eslint/parser@npm:6.21.0"
|
||||
@@ -183,24 +201,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/parser@npm:^7.14.1":
|
||||
version: 7.14.1
|
||||
resolution: "@typescript-eslint/parser@npm:7.14.1"
|
||||
dependencies:
|
||||
"@typescript-eslint/scope-manager": "npm:7.14.1"
|
||||
"@typescript-eslint/types": "npm:7.14.1"
|
||||
"@typescript-eslint/typescript-estree": "npm:7.14.1"
|
||||
"@typescript-eslint/visitor-keys": "npm:7.14.1"
|
||||
debug: "npm:^4.3.4"
|
||||
peerDependencies:
|
||||
eslint: ^8.56.0
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: 10c0/db3169d4852685cfb27db741c557f58a3e52104bfacc7621beb7c94ec36ac2a08d4e410ac86745db52f482fbfc87e99fa0a26c1d7a10d37a215cce85e1661f0e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@typescript-eslint/scope-manager@npm:6.21.0":
|
||||
version: 6.21.0
|
||||
resolution: "@typescript-eslint/scope-manager@npm:6.21.0"
|
||||
@@ -1101,7 +1101,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"eslint@npm:^9.6.0":
|
||||
"eslint@npm:9.x":
|
||||
version: 9.6.0
|
||||
resolution: "eslint@npm:9.6.0"
|
||||
dependencies:
|
||||
@@ -1386,7 +1386,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"globals@npm:^15.0.0":
|
||||
"globals@npm:^15.0.0, globals@npm:^15.7.0":
|
||||
version: 15.7.0
|
||||
resolution: "globals@npm:15.7.0"
|
||||
checksum: 10c0/5294e3e521a1957e9930843cfd9ff6f70090f21c2c13f0df2f857787fb4f00af36d30411aa4b3cd654ec274e4b9205ee16ce347ad95b9519427bd3146c80e7aa
|
||||
@@ -2144,19 +2144,24 @@ __metadata:
|
||||
version: 0.0.0-use.local
|
||||
resolution: "prom-client-fine-grained-metrics@workspace:."
|
||||
dependencies:
|
||||
"@eslint/js": "npm:^9.6.0"
|
||||
"@typescript-eslint/eslint-plugin": "npm:^7.14.1"
|
||||
"@typescript-eslint/parser": "npm:^7.14.1"
|
||||
eslint: "npm:^9.6.0"
|
||||
eslint: "npm:9.x"
|
||||
eslint-config-prettier: "npm:^9.1.0"
|
||||
eslint-config-standard-with-typescript: "npm:^43.0.1"
|
||||
eslint-import-resolver-typescript: "npm:^3.6.1"
|
||||
eslint-plugin-import: "npm:^2.29.1"
|
||||
eslint-plugin-n: "npm:^17.9.0"
|
||||
eslint-plugin-promise: "npm:^6.4.0"
|
||||
globals: "npm:^15.7.0"
|
||||
lockfile-lint: "npm:^4.14.0"
|
||||
prettier: "npm:^3.3.2"
|
||||
prettier-plugin-organize-imports: "npm:^3.2.4"
|
||||
typescript: "npm:^5.5.2"
|
||||
typescript-eslint: "npm:^7.14.1"
|
||||
peerDependencies:
|
||||
prom-client: ">= 10 <= 15"
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
@@ -2563,6 +2568,22 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript-eslint@npm:^7.14.1":
|
||||
version: 7.14.1
|
||||
resolution: "typescript-eslint@npm:7.14.1"
|
||||
dependencies:
|
||||
"@typescript-eslint/eslint-plugin": "npm:7.14.1"
|
||||
"@typescript-eslint/parser": "npm:7.14.1"
|
||||
"@typescript-eslint/utils": "npm:7.14.1"
|
||||
peerDependencies:
|
||||
eslint: ^8.56.0
|
||||
peerDependenciesMeta:
|
||||
typescript:
|
||||
optional: true
|
||||
checksum: 10c0/93439aa50a814a2d7e117c7d9b54982292986e3c090950961d13dcb07b804ae31e43300e094fd5d27d1208c1647ebbb95fda4bc89163b1c0b2e36e8a777a6800
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"typescript@npm:^5.5.2":
|
||||
version: 5.5.2
|
||||
resolution: "typescript@npm:5.5.2"
|
||||
|
||||
Reference in New Issue
Block a user