@rebeccastevens/eslint-config 1.6.6 → 1.6.8

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/dist/modern.cjs CHANGED
@@ -701,7 +701,12 @@ const settings$8 = {
701
701
  },
702
702
  },
703
703
  rules: {
704
- "functional/no-expression-statements": "error",
704
+ "functional/no-expression-statements": [
705
+ "error",
706
+ {
707
+ ignorePattern: "^assert",
708
+ },
709
+ ],
705
710
  "functional/immutable-data": [
706
711
  "error",
707
712
  {
@@ -901,7 +906,7 @@ const settings$7 = {
901
906
  },
902
907
  settings: {
903
908
  "import/external-module-folders": ["node_modules"],
904
- "import/internal-regex": "^(?:@|~)\\/.+",
909
+ "import/internal-regex": "^(?:#|(?:@|~)\\/).*",
905
910
  "import/resolver": {
906
911
  node: {
907
912
  extensions: jsExtensions,
package/dist/modern.mjs CHANGED
@@ -699,7 +699,12 @@ const settings$8 = {
699
699
  },
700
700
  },
701
701
  rules: {
702
- "functional/no-expression-statements": "error",
702
+ "functional/no-expression-statements": [
703
+ "error",
704
+ {
705
+ ignorePattern: "^assert",
706
+ },
707
+ ],
703
708
  "functional/immutable-data": [
704
709
  "error",
705
710
  {
@@ -899,7 +904,7 @@ const settings$7 = {
899
904
  },
900
905
  settings: {
901
906
  "import/external-module-folders": ["node_modules"],
902
- "import/internal-regex": "^(?:@|~)\\/.+",
907
+ "import/internal-regex": "^(?:#|(?:@|~)\\/).*",
903
908
  "import/resolver": {
904
909
  node: {
905
910
  extensions: jsExtensions,
@@ -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.8",
4
4
  "description": "My ESLint shareable config.",
5
5
  "keywords": [
6
6
  "eslint config"