@caspeco/eslint-config-ts 5.2.1 → 5.4.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAMA,sDAAsD;AACtD,0BADW,OAAO,mBAAmB,EAAE,WAAW,CAiDhD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAOA,sDAAsD;AACtD,0BADW,OAAO,mBAAmB,EAAE,WAAW,CAmDhD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caspeco/eslint-config-ts",
3
- "version": "5.2.1",
3
+ "version": "5.4.0",
4
4
  "description": "Caspeco ESLint configuration for TypeScript projects",
5
5
  "keywords": [
6
6
  "eslint",
@@ -40,6 +40,7 @@
40
40
  "@eslint/js": "^9.39.4",
41
41
  "eslint": "^9.39.4",
42
42
  "eslint-config-prettier": "^10.1.8",
43
+ "eslint-plugin-baseline-js": "^0.7.0",
43
44
  "eslint-plugin-check-file": "^3.3.1",
44
45
  "eslint-plugin-no-barrel-files": "^1.3.1",
45
46
  "typescript-eslint": "^8.59.1"
@@ -48,6 +49,7 @@
48
49
  "@eslint/js": "^9.39.4",
49
50
  "eslint": "^9.39.4",
50
51
  "eslint-config-prettier": "^10.1.8",
52
+ "eslint-plugin-baseline-js": "^0.7.0",
51
53
  "eslint-plugin-check-file": "^3.3.1",
52
54
  "eslint-plugin-no-barrel-files": "^1.2.2",
53
55
  "typescript-eslint": "^8.57.2"
package/src/index.js CHANGED
@@ -3,11 +3,13 @@ import js from "@eslint/js";
3
3
  import checkFile from "eslint-plugin-check-file";
4
4
  import eslintConfigPrettier from "eslint-config-prettier";
5
5
  import noBarrelFilesPlugin from "eslint-plugin-no-barrel-files";
6
+ import baselineJs from "eslint-plugin-baseline-js";
6
7
 
7
8
  /** @type {import('typescript-eslint').ConfigArray} */
8
9
  const flatConfig = [
9
10
  js.configs.recommended,
10
11
  ...typescriptEslintConfig.recommendedTypeChecked,
12
+ { ...baselineJs.configs["recommended-ts"]({ available: "widely", level: "warn" }) },
11
13
  {
12
14
  languageOptions: {
13
15
  parserOptions: {
@@ -31,6 +33,7 @@ const flatConfig = [
31
33
  "@typescript-eslint": plugin,
32
34
  "check-file": checkFile,
33
35
  "no-barrel-files": noBarrelFilesPlugin,
36
+ "baseline-js": baselineJs,
34
37
  },
35
38
  rules: {
36
39
  eqeqeq: ["error", "always"],