eslint-config-heck 4.4.0 → 5.0.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/{complexity.cjs → complexity.js} +2 -3
- package/eslint.config.js +6 -0
- package/{groupImports.cjs → groupImports.js} +2 -3
- package/{node.cjs → node.js} +14 -15
- package/{nodeWithBiome.cjs → nodeWithBiome.js} +14 -15
- package/package.json +6 -6
- package/{reactNative.cjs → reactNative.js} +3 -4
- package/eslint.config.cjs +0 -7
package/eslint.config.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import complexity from "./complexity.js";
|
|
2
|
+
import groupImports from "./groupImports.js";
|
|
3
|
+
import nodeWithBiome from "./nodeWithBiome.js";
|
|
4
|
+
|
|
5
|
+
// biome-ignore lint/style/noDefaultExport: Required for ESLint configuration
|
|
6
|
+
export default [...nodeWithBiome, ...complexity, ...groupImports];
|
package/{node.cjs → node.js}
RENAMED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import stylistic from "@stylistic/eslint-plugin";
|
|
2
|
+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
|
3
|
+
import tsParser from "@typescript-eslint/parser";
|
|
4
|
+
import importPlugin, { flatConfigs } from "eslint-plugin-import";
|
|
5
|
+
import jest from "eslint-plugin-jest";
|
|
6
|
+
import react from "eslint-plugin-react";
|
|
7
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
8
|
+
import testingLibrary from "eslint-plugin-testing-library";
|
|
9
|
+
import unicorn from "eslint-plugin-unicorn";
|
|
10
|
+
import globals from "globals";
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
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 = [
|
|
12
|
+
// biome-ignore lint/style/noDefaultExport: Required for ESLint configuration
|
|
13
|
+
export default [
|
|
15
14
|
{
|
|
16
15
|
plugins: {
|
|
17
16
|
"@stylistic": stylistic,
|
|
@@ -815,7 +814,7 @@ module.exports = [
|
|
|
815
814
|
},
|
|
816
815
|
{
|
|
817
816
|
files: ["**/*.ts", "**/*.tsx"],
|
|
818
|
-
...
|
|
817
|
+
...flatConfigs.typescript,
|
|
819
818
|
},
|
|
820
819
|
{
|
|
821
820
|
files: ["**/*.ts", "**/*.tsx"],
|
|
@@ -827,7 +826,7 @@ module.exports = [
|
|
|
827
826
|
sourceType: "module",
|
|
828
827
|
parserOptions: {
|
|
829
828
|
projectService: true,
|
|
830
|
-
tsconfigRootDir:
|
|
829
|
+
tsconfigRootDir: import.meta.dirname,
|
|
831
830
|
},
|
|
832
831
|
},
|
|
833
832
|
rules: {
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import stylistic from "@stylistic/eslint-plugin";
|
|
2
|
+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
|
3
|
+
import tsParser from "@typescript-eslint/parser";
|
|
4
|
+
import importPlugin, { flatConfigs } from "eslint-plugin-import";
|
|
5
|
+
import jest from "eslint-plugin-jest";
|
|
6
|
+
import react from "eslint-plugin-react";
|
|
7
|
+
import reactHooks from "eslint-plugin-react-hooks";
|
|
8
|
+
import testingLibrary from "eslint-plugin-testing-library";
|
|
9
|
+
import unicorn from "eslint-plugin-unicorn";
|
|
10
|
+
import globals from "globals";
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
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 = [
|
|
12
|
+
// biome-ignore lint/style/noDefaultExport: Required for ESLint configuration
|
|
13
|
+
export default [
|
|
15
14
|
{
|
|
16
15
|
plugins: {
|
|
17
16
|
"@stylistic": stylistic,
|
|
@@ -731,7 +730,7 @@ module.exports = [
|
|
|
731
730
|
},
|
|
732
731
|
{
|
|
733
732
|
files: ["**/*.ts", "**/*.tsx"],
|
|
734
|
-
...
|
|
733
|
+
...flatConfigs.typescript,
|
|
735
734
|
},
|
|
736
735
|
{
|
|
737
736
|
files: ["**/*.ts", "**/*.tsx"],
|
|
@@ -743,7 +742,7 @@ module.exports = [
|
|
|
743
742
|
sourceType: "module",
|
|
744
743
|
parserOptions: {
|
|
745
744
|
projectService: true,
|
|
746
|
-
tsconfigRootDir:
|
|
745
|
+
tsconfigRootDir: import.meta.dirname,
|
|
747
746
|
},
|
|
748
747
|
},
|
|
749
748
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-heck",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
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.
|
|
10
|
-
"./nodeWithBiome": "./nodeWithBiome.
|
|
11
|
-
"./complexity": "./complexity.
|
|
12
|
-
"./groupImports": "./groupImports.
|
|
13
|
-
"./reactNative": "./reactNative.
|
|
9
|
+
"./node": "./node.js",
|
|
10
|
+
"./nodeWithBiome": "./nodeWithBiome.js",
|
|
11
|
+
"./complexity": "./complexity.js",
|
|
12
|
+
"./groupImports": "./groupImports.js",
|
|
13
|
+
"./reactNative": "./reactNative.js"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"update": "npx -y npm-check-updates -i --install never && npx -y npm-check-updates -i --target minor --install never && npx -y npm-check-updates -i --target patch --install never && npm update --force",
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import reactNative from "eslint-plugin-react-native";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
module.exports = [
|
|
3
|
+
// biome-ignore lint/style/noDefaultExport: Required for ESLint configuration
|
|
4
|
+
export default [
|
|
6
5
|
{
|
|
7
6
|
plugins: {
|
|
8
7
|
"react-native": reactNative,
|
package/eslint.config.cjs
DELETED