Skip to content

Commit c6dea3a

Browse files
committed
chore: clean up eslint rules and add ngx global declaration
1 parent 7c17176 commit c6dea3a

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

eslint.config.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const vueTsGeneratedConfigs = defineConfigWithVueTs(pluginVue.configs["flat/reco
2424

2525
// --- WARN rules ---
2626
"@typescript-eslint/no-duplicate-enum-values": "warn",
27-
"vue/no-dupe-keys": "warn",
2827

2928
// --- ERROR rules ---
3029
"vue/multi-word-component-names": "error",
@@ -92,17 +91,16 @@ export default [
9291

9392
// --- WARN rules ---
9493
"prettier/prettier": "warn",
95-
"simple-import-sort/imports": "warn",
9694
"prefer-spread": "warn",
9795
"@typescript-eslint/no-restricted-types": [
9896
"warn",
9997
{
10098
types: {
101-
Function: "Use specific function types instead.",
102-
Object: "Use `Record<string, unknown>` or specific object types instead.",
103-
String: "Use `string` instead.",
104-
Number: "Use `number` instead.",
105-
Boolean: "Use `boolean` instead.",
99+
"Function": "Use specific function types instead.",
100+
"Object": "Use `Record<string, unknown>` or specific object types instead.",
101+
"String": "Use `string` instead.",
102+
"Number": "Use `number` instead.",
103+
"Boolean": "Use `boolean` instead.",
106104
},
107105
},
108106
],

packages/stats/nginx/njs/stats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import cache from "./cache.js";
2-
2+
/* global ngx */
33
const RETRIES = 3;
44
const cache_path = "/tmp/statsSummary.json";
55
let URLS = [

0 commit comments

Comments
 (0)