@bfra.me/eslint-config 0.39.1 → 0.40.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.
package/lib/index.js CHANGED
@@ -105,7 +105,7 @@ var GLOB_EXCLUDE = [
105
105
  import { fileURLToPath } from "url";
106
106
 
107
107
  // package.json
108
- var version = "0.39.1";
108
+ var version = "0.40.0";
109
109
 
110
110
  // src/parsers/any-parser.ts
111
111
  var lineBreakPattern = /\r\n|[\n\r\u2028\u2029]/u;
@@ -164,7 +164,7 @@ async function interopDefault(m) {
164
164
 
165
165
  // src/configs/fallback.ts
166
166
  async function fallback(missingList = [], options) {
167
- const rules = await interopDefault(import("./missing-module-for-config-DNGJUDHU.js"));
167
+ const rules = await interopDefault(import("./missing-module-for-config-QFYTX2KG.js"));
168
168
  const pluginName = `@bfra.me${missingList.length > 0 ? `/missing-modules-${missingList.map((m) => m.replaceAll(/[^a-z0-9]/gi, "-").toLowerCase()).join("-")}` : ""}`;
169
169
  return [
170
170
  {
@@ -126,11 +126,11 @@ function create(context) {
126
126
  for (const module of modules) {
127
127
  let output = "";
128
128
  if (shouldFix) {
129
- const result = tryInstall(module, context.filename || context.getFilename()) ?? "";
129
+ const result = tryInstall(module, context.filename) ?? "";
130
130
  output = result ? `
131
131
  ${result}` : "";
132
132
  }
133
- const command = getPackageInstallCommand(module, context.filename || context.getFilename()) ?? "";
133
+ const command = getPackageInstallCommand(module, context.filename) ?? "";
134
134
  context.report({
135
135
  loc: { column: 0, line: 1 },
136
136
  message: `Missing module for config: ${module}. Run: \`${command || `npm i -D ${module}`}\`${output}`
@@ -142,4 +142,4 @@ export {
142
142
  create,
143
143
  meta
144
144
  };
145
- //# sourceMappingURL=missing-module-for-config-DNGJUDHU.js.map
145
+ //# sourceMappingURL=missing-module-for-config-QFYTX2KG.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfra.me/eslint-config",
3
- "version": "0.39.1",
3
+ "version": "0.40.0",
4
4
  "description": "Shared ESLint configuration for bfra.me",
5
5
  "keywords": [
6
6
  "bfra.me",
@@ -66,7 +66,7 @@
66
66
  "devDependencies": {
67
67
  "@eslint-react/eslint-plugin": "2.3.5",
68
68
  "@eslint/config-inspector": "1.3.0",
69
- "@eslint/core": "0.17.0",
69
+ "@eslint/core": "1.0.0",
70
70
  "@next/eslint-plugin-next": "16.0.3",
71
71
  "@types/eslint-config-prettier": "6.11.3",
72
72
  "@typescript-eslint/types": "8.46.4",
@@ -82,10 +82,7 @@
82
82
  "eslint-plugin-react-hooks": "7.0.1",
83
83
  "eslint-plugin-react-refresh": "0.4.24",
84
84
  "eslint-typegen": "2.3.0",
85
- "tsx": "4.20.6",
86
- "@bfra.me/eslint-config": "0.39.1",
87
- "@bfra.me/prettier-config": "0.16.2",
88
- "@bfra.me/tsconfig": "0.12.0",
85
+ "@bfra.me/prettier-config": "0.16.3",
89
86
  "@bfra.me/works": "0.0.0-development"
90
87
  },
91
88
  "peerDependencies": {
@@ -40,11 +40,10 @@ export function create(context: RuleContext) {
40
40
  for (const module of modules) {
41
41
  let output = ''
42
42
  if (shouldFix) {
43
- const result = tryInstall(module, context.filename || context.getFilename()) ?? ''
43
+ const result = tryInstall(module, context.filename) ?? ''
44
44
  output = result ? `\n${result}` : ''
45
45
  }
46
- const command =
47
- getPackageInstallCommand(module, context.filename || context.getFilename()) ?? ''
46
+ const command = getPackageInstallCommand(module, context.filename) ?? ''
48
47
  context.report({
49
48
  loc: {column: 0, line: 1},
50
49
  message: `Missing module for config: ${module}. Run: \`${command || `npm i -D ${module}`}\`${output}`,