eslint-config-heck 4.0.2 → 4.0.4

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,5 +1,6 @@
1
- // biome-ignore lint/style/noDefaultExport: Required for ESLint
2
- export default [
1
+ "use strict";
2
+
3
+ module.exports = [
3
4
  {
4
5
  rules: {
5
6
  "max-depth": ["warn", 2],
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ const complexity = require("./complexity.cjs");
4
+ const groupImports = require("./groupImports.cjs");
5
+ const nodeWithBiome = require("./nodeWithBiome.cjs");
6
+
7
+ module.exports = [...nodeWithBiome, ...complexity, ...groupImports];
@@ -1,5 +1,6 @@
1
- // biome-ignore lint/style/noDefaultExport: Required for ESLint
2
- export default [
1
+ "use strict";
2
+
3
+ module.exports = [
3
4
  {
4
5
  rules: {
5
6
  "sort-imports": [
@@ -1,17 +1,17 @@
1
- import stylistic from "@stylistic/eslint-plugin";
2
- import react from "eslint-plugin-react";
3
- import reactHooks from "eslint-plugin-react-hooks";
4
- import unicorn from "eslint-plugin-unicorn";
5
- import importPlugin from "eslint-plugin-import";
6
- import globals from "globals";
7
- import typescriptEslint from "@typescript-eslint/eslint-plugin";
8
- import tsParser from "@typescript-eslint/parser";
9
- import jest from "eslint-plugin-jest";
10
- import testingLibrary from "eslint-plugin-testing-library";
1
+ "use strict";
11
2
 
12
- // biome-ignore lint/style/noDefaultExport: Required for ESLint
13
- export default [
14
- importPlugin.flatConfigs.typescript,
3
+ const stylistic = require("@stylistic/eslint-plugin");
4
+ const typescriptEslint = require("@typescript-eslint/eslint-plugin");
5
+ const tsParser = require("@typescript-eslint/parser");
6
+ const importPlugin = require("eslint-plugin-import");
7
+ const jest = require("eslint-plugin-jest");
8
+ const react = require("eslint-plugin-react");
9
+ const reactHooks = require("eslint-plugin-react-hooks");
10
+ const testingLibrary = require("eslint-plugin-testing-library");
11
+ const unicorn = require("eslint-plugin-unicorn");
12
+ const globals = require("globals");
13
+
14
+ module.exports = [
15
15
  {
16
16
  plugins: {
17
17
  "@stylistic": stylistic,
@@ -807,6 +807,10 @@ export default [
807
807
  "import/prefer-default-export": "off",
808
808
  },
809
809
  },
810
+ {
811
+ files: ["**/*.ts", "**/*.tsx"],
812
+ ...importPlugin.flatConfigs.typescript,
813
+ },
810
814
  {
811
815
  files: ["**/*.ts", "**/*.tsx"],
812
816
  plugins: {
@@ -817,7 +821,7 @@ export default [
817
821
  sourceType: "module",
818
822
  parserOptions: {
819
823
  projectService: true,
820
- tsconfigRootDir: import.meta.dirname,
824
+ tsconfigRootDir: __dirname,
821
825
  },
822
826
  },
823
827
  rules: {
@@ -1,17 +1,17 @@
1
- import stylistic from "@stylistic/eslint-plugin";
2
- import react from "eslint-plugin-react";
3
- import reactHooks from "eslint-plugin-react-hooks";
4
- import unicorn from "eslint-plugin-unicorn";
5
- import importPlugin from "eslint-plugin-import";
6
- import globals from "globals";
7
- import typescriptEslint from "@typescript-eslint/eslint-plugin";
8
- import tsParser from "@typescript-eslint/parser";
9
- import jest from "eslint-plugin-jest";
10
- import testingLibrary from "eslint-plugin-testing-library";
1
+ "use strict";
11
2
 
12
- // biome-ignore lint/style/noDefaultExport: Required for ESLint
13
- export default [
14
- importPlugin.flatConfigs.typescript,
3
+ const stylistic = require("@stylistic/eslint-plugin");
4
+ const typescriptEslint = require("@typescript-eslint/eslint-plugin");
5
+ const tsParser = require("@typescript-eslint/parser");
6
+ const importPlugin = require("eslint-plugin-import");
7
+ const jest = require("eslint-plugin-jest");
8
+ const react = require("eslint-plugin-react");
9
+ const reactHooks = require("eslint-plugin-react-hooks");
10
+ const testingLibrary = require("eslint-plugin-testing-library");
11
+ const unicorn = require("eslint-plugin-unicorn");
12
+ const globals = require("globals");
13
+
14
+ module.exports = [
15
15
  {
16
16
  plugins: {
17
17
  "@stylistic": stylistic,
@@ -722,6 +722,10 @@ export default [
722
722
  "import/prefer-default-export": "off",
723
723
  },
724
724
  },
725
+ {
726
+ files: ["**/*.ts", "**/*.tsx"],
727
+ ...importPlugin.flatConfigs.typescript,
728
+ },
725
729
  {
726
730
  files: ["**/*.ts", "**/*.tsx"],
727
731
  plugins: {
@@ -732,7 +736,7 @@ export default [
732
736
  sourceType: "module",
733
737
  parserOptions: {
734
738
  projectService: true,
735
- tsconfigRootDir: import.meta.dirname,
739
+ tsconfigRootDir: __dirname,
736
740
  },
737
741
  },
738
742
  rules: {
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "exports": {
8
8
  "./biome": "./biomeLinting.json",
9
- "./node": "./node.mjs",
10
- "./nodeWithBiome": "./nodeWithBiome.mjs",
11
- "./complexity": "./complexity.mjs",
12
- "./groupImports": "./groupImports.mjs",
13
- "./reactNative": "./reactNative.mjs"
9
+ "./node": "./node.cjs",
10
+ "./nodeWithBiome": "./nodeWithBiome.cjs",
11
+ "./complexity": "./complexity.cjs",
12
+ "./groupImports": "./groupImports.cjs",
13
+ "./reactNative": "./reactNative.cjs"
14
14
  },
15
15
  "scripts": {
16
16
  "update": "npx -y npm-check-updates -i --install always",
@@ -1,8 +1,9 @@
1
- import { fixupPluginRules } from "@eslint/compat";
2
- import reactNative from "eslint-plugin-react-native";
1
+ "use strict";
3
2
 
4
- // biome-ignore lint/style/noDefaultExport: Required for ESLint
5
- export default [
3
+ const { fixupPluginRules } = require("@eslint/compat");
4
+ const reactNative = require("eslint-plugin-react-native");
5
+
6
+ module.exports = [
6
7
  {
7
8
  plugins: {
8
9
  "react-native": fixupPluginRules(reactNative),