eslint-config-cityssm 33.2.0 → 33.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/eslint.config.js CHANGED
@@ -67,7 +67,7 @@ const htmlEslintRulesConfig = {
67
67
  * ESLint Configuration for Web Applications
68
68
  */
69
69
  export const config = defineConfig(packageConfig, {
70
- files: ['**/*.ts', '**/*.js'],
70
+ files: ['**/*.ts'],
71
71
  ignores: ['**/*.d.ts'],
72
72
  plugins: {
73
73
  html: eslintHtml,
package/eslint.config.ts CHANGED
@@ -80,7 +80,7 @@ const htmlEslintRulesConfig: Partial<RulesConfig> = {
80
80
  export const config: ConfigObject[] = defineConfig(
81
81
  packageConfig,
82
82
  {
83
- files: ['**/*.ts', '**/*.js'],
83
+ files: ['**/*.ts'],
84
84
  ignores: ['**/*.d.ts'],
85
85
  plugins: {
86
86
  html: eslintHtml,
@@ -41,14 +41,15 @@ export const config = defineConfig({
41
41
  eslintPluginUnicorn.configs.recommended,
42
42
  eslintConfigLove
43
43
  ],
44
- files: ['**/*.ts', '**/*.js'],
44
+ files: ['**/*.ts'],
45
45
  ignores: ['**/*.d.ts'],
46
46
  languageOptions: {
47
47
  parserOptions: {
48
48
  ecmaFeatures: { modules: true },
49
49
  ecmaVersion: 2022,
50
- project: true,
51
- sourceType: 'module'
50
+ sourceType: 'module',
51
+ projectService: true,
52
+ tsconfigRootDir: import.meta.dirname
52
53
  }
53
54
  },
54
55
  plugins: {
@@ -65,7 +66,7 @@ export const config = defineConfig({
65
66
  {
66
67
  cspell: {
67
68
  flagWords: cspellFlagWords,
68
- language: 'en-CA,en-US,en-GB',
69
+ language: 'en-CA',
69
70
  words: cspellWords
70
71
  }
71
72
  }
@@ -49,14 +49,16 @@ export const config: ConfigObject[] = defineConfig(
49
49
  eslintPluginUnicorn.configs.recommended,
50
50
  eslintConfigLove
51
51
  ],
52
- files: ['**/*.ts', '**/*.js'],
52
+ files: ['**/*.ts'],
53
53
  ignores: ['**/*.d.ts'],
54
54
  languageOptions: {
55
55
  parserOptions: {
56
56
  ecmaFeatures: { modules: true },
57
57
  ecmaVersion: 2022,
58
- project: true,
59
- sourceType: 'module'
58
+ sourceType: 'module',
59
+
60
+ projectService: true,
61
+ tsconfigRootDir: import.meta.dirname
60
62
  }
61
63
  },
62
64
 
@@ -75,7 +77,7 @@ export const config: ConfigObject[] = defineConfig(
75
77
  {
76
78
  cspell: {
77
79
  flagWords: cspellFlagWords,
78
- language: 'en-CA,en-US,en-GB',
80
+ language: 'en-CA',
79
81
  words: cspellWords
80
82
  }
81
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-cityssm",
3
- "version": "33.2.0",
3
+ "version": "33.2.1",
4
4
  "description": "ESLint rules used in the City of Sault Ste. Marie's TypeScript projects.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -48,6 +48,7 @@
48
48
  "main": "eslint.config.js",
49
49
  "scripts": {
50
50
  "coverage": "c8 node ./test/runEslint.js",
51
+ "performance": "cross-env TIMING=20 eslint samples",
51
52
  "test": "node ./test/runEslint.js"
52
53
  },
53
54
  "dependencies": {
@@ -78,7 +79,7 @@
78
79
  "typescript-eslint": "^8.46.1"
79
80
  },
80
81
  "devDependencies": {
81
- "@types/node": "^24.7.2",
82
+ "@types/node": "^24.8.0",
82
83
  "prettier-config-cityssm": "^1.0.0"
83
84
  }
84
85
  }