@aura-pulse/eslint-config 1.2.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.
@@ -0,0 +1,15 @@
1
+ {
2
+ "extends": "semantic-release-monorepo",
3
+ "plugins": [
4
+ "@semantic-release/commit-analyzer",
5
+ "@semantic-release/release-notes-generator",
6
+ [
7
+ "@semantic-release/npm",
8
+ {
9
+ "pkgRoot": ".",
10
+ "npmPublish": true
11
+ }
12
+ ],
13
+ "@semantic-release/github"
14
+ ]
15
+ }
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { Linter } from "eslint";
2
+
3
+ declare const config: Linter.Config[];
4
+ export default config;
package/index.js ADDED
@@ -0,0 +1,89 @@
1
+ import tsPlugin from "@typescript-eslint/eslint-plugin";
2
+ import tsParser from "@typescript-eslint/parser";
3
+ import unusedImports from "eslint-plugin-unused-imports";
4
+ import importPlugin from "eslint-plugin-import";
5
+ import prettierConfig from "eslint-config-prettier";
6
+
7
+ export default [
8
+ { ignores: ["**/dist/**", "**/node_modules/**", "build/**"] },
9
+ {
10
+ files: ["**/*.ts", "**/*.tsx"],
11
+ languageOptions: {
12
+ parser: tsParser,
13
+ parserOptions: { ecmaVersion: "latest", sourceType: "module" },
14
+ },
15
+ plugins: {
16
+ "@typescript-eslint": tsPlugin,
17
+ "unused-imports": unusedImports,
18
+ import: importPlugin,
19
+ },
20
+ rules: {
21
+ ...tsPlugin.configs.recommended.rules,
22
+ ...prettierConfig.rules,
23
+
24
+ "@typescript-eslint/no-explicit-any": "error",
25
+
26
+ "unused-imports/no-unused-imports": "error",
27
+
28
+ "@typescript-eslint/consistent-type-definitions": ["error", "type"],
29
+
30
+ "import/order": [
31
+ "error",
32
+ {
33
+ groups: [
34
+ "builtin",
35
+ "external",
36
+ "internal",
37
+ "parent",
38
+ "sibling",
39
+ "index",
40
+ ],
41
+ "newlines-between": "always",
42
+ alphabetize: { order: "asc", caseInsensitive: true },
43
+ pathGroups: [
44
+ {
45
+ pattern: "@nestjs/**",
46
+ group: "external",
47
+ position: "before",
48
+ },
49
+ {
50
+ pattern: "@aura-pulse/**",
51
+ group: "internal",
52
+ position: "before",
53
+ },
54
+ ],
55
+ pathGroupsExcludedImportTypes: ["builtin"],
56
+ },
57
+ ],
58
+
59
+ eqeqeq: ["error", "always"],
60
+
61
+ "@typescript-eslint/no-unused-vars": [
62
+ "error",
63
+ {
64
+ argsIgnorePattern: "^_",
65
+ varsIgnorePattern: "^_",
66
+ caughtErrorsIgnorePattern: "^_",
67
+ },
68
+ ],
69
+
70
+ "@typescript-eslint/member-ordering": [
71
+ "error",
72
+ {
73
+ default: [
74
+ "public-static-field",
75
+ "protected-static-field",
76
+ "private-static-field",
77
+ "public-instance-field",
78
+ "protected-instance-field",
79
+ "private-instance-field",
80
+ "constructor",
81
+ "public-instance-method",
82
+ "protected-instance-method",
83
+ "private-instance-method",
84
+ ],
85
+ },
86
+ ],
87
+ },
88
+ },
89
+ ];
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@aura-pulse/eslint-config",
3
+ "version": "1.2.0",
4
+ "main": "index.js",
5
+ "types": "index.d.ts",
6
+ "packageManager": "pnpm@10.29.3",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "peerDependencies": {
11
+ "eslint": ">=10.0.0"
12
+ },
13
+ "dependencies": {
14
+ "@typescript-eslint/eslint-plugin": "^8.56.1",
15
+ "@typescript-eslint/parser": "^8.56.1",
16
+ "eslint-config-prettier": "^10.1.8",
17
+ "eslint-plugin-import": "^2.32.0",
18
+ "eslint-plugin-unused-imports": "^4.4.1"
19
+ }
20
+ }