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.
- 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} +18 -14
- package/{nodeWithBiome.mjs → nodeWithBiome.cjs} +18 -14
- package/package.json +6 -6
- package/{reactNative.mjs → reactNative.cjs} +5 -4
package/{node.mjs → node.cjs}
RENAMED
|
@@ -1,17 +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
|
-
|
|
14
|
-
|
|
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:
|
|
824
|
+
tsconfigRootDir: __dirname,
|
|
821
825
|
},
|
|
822
826
|
},
|
|
823
827
|
rules: {
|
|
@@ -1,17 +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
|
-
|
|
14
|
-
|
|
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:
|
|
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.
|
|
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.
|
|
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",
|
|
@@ -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),
|