eslint-config-heck 4.0.3 → 4.0.5
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.mjs → complexity.cjs} +3 -2
- package/eslint.config.cjs +7 -0
- package/{groupImports.mjs → groupImports.cjs} +3 -2
- package/{node.mjs → node.cjs} +14 -13
- package/{nodeWithBiome.mjs → nodeWithBiome.cjs} +14 -13
- package/package.json +12 -12
- package/{reactNative.mjs → reactNative.cjs} +5 -4
package/{node.mjs → node.cjs}
RENAMED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
13
|
-
|
|
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 = [
|
|
14
15
|
{
|
|
15
16
|
plugins: {
|
|
16
17
|
"@stylistic": stylistic,
|
|
@@ -820,7 +821,7 @@ export default [
|
|
|
820
821
|
sourceType: "module",
|
|
821
822
|
parserOptions: {
|
|
822
823
|
projectService: true,
|
|
823
|
-
tsconfigRootDir:
|
|
824
|
+
tsconfigRootDir: __dirname,
|
|
824
825
|
},
|
|
825
826
|
},
|
|
826
827
|
rules: {
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
13
|
-
|
|
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 = [
|
|
14
15
|
{
|
|
15
16
|
plugins: {
|
|
16
17
|
"@stylistic": stylistic,
|
|
@@ -735,7 +736,7 @@ export default [
|
|
|
735
736
|
sourceType: "module",
|
|
736
737
|
parserOptions: {
|
|
737
738
|
projectService: true,
|
|
738
|
-
tsconfigRootDir:
|
|
739
|
+
tsconfigRootDir: __dirname,
|
|
739
740
|
},
|
|
740
741
|
},
|
|
741
742
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-heck",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
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.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",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@eslint/compat": "1.2.2",
|
|
30
|
-
"@stylistic/eslint-plugin": "2.10.
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
32
|
-
"@typescript-eslint/parser": "8.
|
|
33
|
-
"eslint": "9.
|
|
30
|
+
"@stylistic/eslint-plugin": "2.10.1",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "8.13.0",
|
|
32
|
+
"@typescript-eslint/parser": "8.13.0",
|
|
33
|
+
"eslint": "9.14.0",
|
|
34
34
|
"eslint-plugin-import": "2.31.0",
|
|
35
|
-
"eslint-plugin-jest": "28.
|
|
35
|
+
"eslint-plugin-jest": "28.9.0",
|
|
36
36
|
"eslint-plugin-react": "7.37.2",
|
|
37
37
|
"eslint-plugin-react-hooks": "5.0.0",
|
|
38
38
|
"eslint-plugin-react-native": "4.1.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@testing-library/react": "16.0.1",
|
|
47
47
|
"@types/jest": "29.5.14",
|
|
48
48
|
"@types/react": "18.3.12",
|
|
49
|
-
"globals": "15.
|
|
49
|
+
"globals": "15.12.0",
|
|
50
50
|
"jest": "29.7.0",
|
|
51
51
|
"react": "18.3.1",
|
|
52
52
|
"semantic-release": "24.2.0"
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import reactNative from "eslint-plugin-react-native";
|
|
1
|
+
"use strict";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
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),
|