@rebeccastevens/eslint-config 1.6.6 → 1.6.7

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.
@@ -6,7 +6,6 @@ const typescriptExtensions = [".ts", ".tsx", ".mts", ".cts"];
6
6
  const typescriptDeclarationExtensions = [".d.ts", ".d.mts", ".d.cts"];
7
7
  const jsExtensions = [".js", ".mjs", ".cjs"];
8
8
  const jsxExtensions = [".jsx", ".tsx"];
9
- const commonJsExtensions = [".cjs", ".cts"];
10
9
  const typescriptSupportedExtensions = [
11
10
  ...new Set([
12
11
  ...typescriptExtensions,
@@ -19,7 +18,6 @@ const typescriptSupportedExtensions = [
19
18
  const typescriptDeclarationFiles = [
20
19
  `**/*{${typescriptDeclarationExtensions.join(",")}}`,
21
20
  ];
22
- const commonJsFiles = [`**/*{${commonJsExtensions.join(",")}}`];
23
21
 
24
22
  /**
25
23
  * Merge multiple eslint configs into one.
@@ -355,12 +353,6 @@ const settings = {
355
353
  "@typescript-eslint/no-redeclare": "error",
356
354
  },
357
355
  overrides: [
358
- {
359
- files: commonJsFiles,
360
- rules: {
361
- "@typescript-eslint/no-var-requires": "off",
362
- },
363
- },
364
356
  {
365
357
  files: typescriptDeclarationFiles,
366
358
  rules: {
@@ -4,7 +4,6 @@ const typescriptExtensions = [".ts", ".tsx", ".mts", ".cts"];
4
4
  const typescriptDeclarationExtensions = [".d.ts", ".d.mts", ".d.cts"];
5
5
  const jsExtensions = [".js", ".mjs", ".cjs"];
6
6
  const jsxExtensions = [".jsx", ".tsx"];
7
- const commonJsExtensions = [".cjs", ".cts"];
8
7
  const typescriptSupportedExtensions = [
9
8
  ...new Set([
10
9
  ...typescriptExtensions,
@@ -17,7 +16,6 @@ const typescriptSupportedExtensions = [
17
16
  const typescriptDeclarationFiles = [
18
17
  `**/*{${typescriptDeclarationExtensions.join(",")}}`,
19
18
  ];
20
- const commonJsFiles = [`**/*{${commonJsExtensions.join(",")}}`];
21
19
 
22
20
  /**
23
21
  * Merge multiple eslint configs into one.
@@ -353,12 +351,6 @@ const settings = {
353
351
  "@typescript-eslint/no-redeclare": "error",
354
352
  },
355
353
  overrides: [
356
- {
357
- files: commonJsFiles,
358
- rules: {
359
- "@typescript-eslint/no-var-requires": "off",
360
- },
361
- },
362
354
  {
363
355
  files: typescriptDeclarationFiles,
364
356
  rules: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebeccastevens/eslint-config",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"