@eienjs/eslint-config 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ # The MIT License
2
+
3
+ Copyright (c) 2025 - EienJS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # @eienjs/eslint-config
2
+
3
+ [![Source Code][badge-source]][source]
4
+ [![Npm Node Version Support][badge-node-version]][node-version]
5
+ [![Latest Version][badge-release]][release]
6
+ [![Software License][badge-license]][license]
7
+ [![Total Downloads][badge-downloads]][downloads]
8
+
9
+ > EienJS ESLint config preset
10
+
11
+ ## Introduction
12
+
13
+ Eslint config preset for EienJS projects and packages, it's a fork from [@antfu/eslint-config](https://github.com/antfu/eslint-config).
14
+
15
+ ## Documentation
16
+
17
+ The documentation is available on [EienJS](https://eienjs.com/packages/eslint-config/getting-started/).
18
+
19
+ ## Contributing
20
+
21
+ Contributions are welcome. Please read [CONTRIBUTING][] for more details and remember to check the [CHANGELOG][] file.
22
+
23
+ ## Copyright and License
24
+
25
+ The `@eienjs/eslint-config` library is licensed for use under the MIT License (MIT). Please see [LICENSE][] for more information.
26
+
27
+ [contributing]: https://github.com/eienjs/.github/blob/main/docs/CONTRIBUTING.md
28
+ [changelog]: https://github.com/eienjs/eslint-config/blob/main/CHANGELOG.md
29
+ [source]: https://github.com/eienjs/eslint-config
30
+ [node-version]: https://www.npmjs.com/package/@eienjs/eslint-config
31
+ [release]: https://www.npmjs.com/package/@eienjs/eslint-config
32
+ [license]: https://github.com/eienjs/eslint-config/blob/main/LICENSE.md
33
+ [downloads]: https://www.npmjs.com/package/@eienjs/eslint-config
34
+ [badge-source]: https://img.shields.io/badge/source-eienjs/eslint--config-blue.svg?logo=github
35
+ [badge-node-version]: https://img.shields.io/node/v/@eienjs/eslint-config.svg?logo=nodedotjs
36
+ [badge-release]: https://img.shields.io/npm/v/@eienjs/eslint-config.svg?logo=npm
37
+ [badge-license]: https://img.shields.io/github/license/eienjs/eslint-config?logo=open-source-initiative
38
+ [badge-downloads]: https://img.shields.io/npm/dm/@eienjs/eslint-config.svg?logo=npm
@@ -0,0 +1,90 @@
1
+ import { OptionsComponentExts, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsVue, StylisticConfig, TypedFlatConfigItem } from "../types-BDuTVdZ8.js";
2
+
3
+ //#region src/configs/astro.d.ts
4
+ declare function astro(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
5
+ //#endregion
6
+ //#region src/configs/command.d.ts
7
+ declare function command(): Promise<TypedFlatConfigItem[]>;
8
+ //#endregion
9
+ //#region src/configs/comments.d.ts
10
+ declare function comments(): Promise<TypedFlatConfigItem[]>;
11
+ //#endregion
12
+ //#region src/configs/disables.d.ts
13
+ declare function disables(): Promise<TypedFlatConfigItem[]>;
14
+ //#endregion
15
+ //#region src/configs/formatters.d.ts
16
+ declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
17
+ //#endregion
18
+ //#region src/configs/ignores.d.ts
19
+ declare function ignores(userIgnores?: string[]): Promise<TypedFlatConfigItem[]>;
20
+ //#endregion
21
+ //#region src/configs/imports.d.ts
22
+ declare function imports(options?: OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
23
+ //#endregion
24
+ //#region src/configs/javascript.d.ts
25
+ declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
26
+ //#endregion
27
+ //#region src/configs/jsdoc.d.ts
28
+ declare function jsdoc(options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
29
+ //#endregion
30
+ //#region src/configs/jsonc.d.ts
31
+ declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
32
+ //#endregion
33
+ //#region src/configs/markdown.d.ts
34
+ declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
35
+ //#endregion
36
+ //#region src/configs/node.d.ts
37
+ declare function node(): Promise<TypedFlatConfigItem[]>;
38
+ //#endregion
39
+ //#region src/configs/perfectionist.d.ts
40
+ /**
41
+ * Perfectionist plugin for props and items sorting.
42
+ *
43
+ * @see https://github.com/azat-io/eslint-plugin-perfectionist
44
+ */
45
+ declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
46
+ //#endregion
47
+ //#region src/configs/pnpm.d.ts
48
+ declare function pnpm(): Promise<TypedFlatConfigItem[]>;
49
+ //#endregion
50
+ //#region src/configs/regexp.d.ts
51
+ declare function regexp(options?: OptionsRegExp & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
52
+ //#endregion
53
+ //#region src/configs/sort.d.ts
54
+ /**
55
+ * Sort package.json
56
+ *
57
+ * Requires `jsonc` config
58
+ */
59
+ declare function sortPackageJson(): Promise<TypedFlatConfigItem[]>;
60
+ /**
61
+ * Sort tsconfig.json
62
+ *
63
+ * Requires `jsonc` config
64
+ */
65
+ declare function sortTsconfig(): TypedFlatConfigItem[];
66
+ //#endregion
67
+ //#region src/configs/stylistic.d.ts
68
+ declare const StylisticConfigDefaults: StylisticConfig;
69
+ interface StylisticOptions extends StylisticConfig, OptionsOverrides {}
70
+ declare function stylistic(options?: StylisticOptions): Promise<TypedFlatConfigItem[]>;
71
+ //#endregion
72
+ //#region src/configs/test.d.ts
73
+ declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
74
+ //#endregion
75
+ //#region src/configs/toml.d.ts
76
+ declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
77
+ //#endregion
78
+ //#region src/configs/typescript.d.ts
79
+ declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions): Promise<TypedFlatConfigItem[]>;
80
+ //#endregion
81
+ //#region src/configs/unicorn.d.ts
82
+ declare function unicorn(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
83
+ //#endregion
84
+ //#region src/configs/vue.d.ts
85
+ declare function vue(options?: OptionsVue & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
86
+ //#endregion
87
+ //#region src/configs/yaml.d.ts
88
+ declare function yaml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
89
+ //#endregion
90
+ export { StylisticConfigDefaults, StylisticOptions, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml };
@@ -0,0 +1,3 @@
1
+ import { StylisticConfigDefaults, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml } from "../configs-B_fhQhgr.js";
2
+
3
+ export { StylisticConfigDefaults, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml };