@aryaemami59/eslint-config 0.0.3
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 +21 -0
- package/README.md +133 -0
- package/dist/index.cjs +256 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1476 -0
- package/dist/index.d.ts +1476 -0
- package/dist/index.js +216 -0
- package/dist/index.js.map +1 -0
- package/package.json +97 -0
- package/src/index.ts +379 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import js from "@eslint/js";
|
|
3
|
+
import prettierConfig from "eslint-config-prettier";
|
|
4
|
+
import globalIdentifiers from "globals";
|
|
5
|
+
import { config, configs, parser } from "typescript-eslint";
|
|
6
|
+
var { browser, node, nodeBuiltin } = globalIdentifiers;
|
|
7
|
+
var globalIgnores = {
|
|
8
|
+
name: "@aryaemami59/global-ignores",
|
|
9
|
+
ignores: [
|
|
10
|
+
"**/dist/",
|
|
11
|
+
"**/.yalc/",
|
|
12
|
+
"**/build/",
|
|
13
|
+
"**/lib/",
|
|
14
|
+
"**/temp/",
|
|
15
|
+
"**/.yarn/",
|
|
16
|
+
"**/coverage/"
|
|
17
|
+
]
|
|
18
|
+
};
|
|
19
|
+
var vitestGlobals = {
|
|
20
|
+
suite: "writable",
|
|
21
|
+
test: "writable",
|
|
22
|
+
describe: "writable",
|
|
23
|
+
it: "writable",
|
|
24
|
+
expectTypeOf: "writable",
|
|
25
|
+
assertType: "writable",
|
|
26
|
+
expect: "writable",
|
|
27
|
+
assert: "writable",
|
|
28
|
+
vitest: "writable",
|
|
29
|
+
vi: "writable",
|
|
30
|
+
beforeAll: "writable",
|
|
31
|
+
afterAll: "writable",
|
|
32
|
+
beforeEach: "writable",
|
|
33
|
+
afterEach: "writable",
|
|
34
|
+
onTestFailed: "writable",
|
|
35
|
+
onTestFinished: "writable"
|
|
36
|
+
};
|
|
37
|
+
var globals = /* @__PURE__ */ Object.assign(
|
|
38
|
+
vitestGlobals,
|
|
39
|
+
browser,
|
|
40
|
+
node,
|
|
41
|
+
nodeBuiltin
|
|
42
|
+
);
|
|
43
|
+
var rulesToDisable = {
|
|
44
|
+
"no-undef": [0],
|
|
45
|
+
"@typescript-eslint/no-unused-vars": [
|
|
46
|
+
0,
|
|
47
|
+
{
|
|
48
|
+
vars: "all",
|
|
49
|
+
args: "after-used",
|
|
50
|
+
caughtErrors: "all",
|
|
51
|
+
ignoreRestSiblings: false,
|
|
52
|
+
reportUsedIgnorePattern: false
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"@typescript-eslint/ban-ts-comment": [
|
|
56
|
+
0,
|
|
57
|
+
[
|
|
58
|
+
{
|
|
59
|
+
"ts-expect-error": "allow-with-description",
|
|
60
|
+
"ts-ignore": true,
|
|
61
|
+
"ts-nocheck": true,
|
|
62
|
+
"ts-check": false,
|
|
63
|
+
minimumDescriptionLength: 3
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
]
|
|
67
|
+
};
|
|
68
|
+
var flatESLintConfig = /* @__PURE__ */ config(
|
|
69
|
+
// `ignores` must be first.
|
|
70
|
+
// config with just `ignores` is the replacement for `.eslintignore`
|
|
71
|
+
globalIgnores,
|
|
72
|
+
{ name: "@aryaemami59/javascript", ...js.configs.recommended },
|
|
73
|
+
...configs.recommended,
|
|
74
|
+
...configs.stylistic,
|
|
75
|
+
{ name: "@aryaemami59/prettier-config", ...prettierConfig },
|
|
76
|
+
{
|
|
77
|
+
name: "@aryaemami59/main",
|
|
78
|
+
languageOptions: {
|
|
79
|
+
globals,
|
|
80
|
+
parser,
|
|
81
|
+
parserOptions: {
|
|
82
|
+
projectService: {
|
|
83
|
+
allowDefaultProject: [".*.js", ".*.mjs", ".*.cjs"],
|
|
84
|
+
defaultProject: "./tsconfig.json"
|
|
85
|
+
},
|
|
86
|
+
ecmaVersion: "latest"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
rules: {
|
|
90
|
+
"@typescript-eslint/consistent-type-imports": [
|
|
91
|
+
2,
|
|
92
|
+
{
|
|
93
|
+
prefer: "type-imports",
|
|
94
|
+
fixStyle: "separate-type-imports",
|
|
95
|
+
disallowTypeAnnotations: true
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"@typescript-eslint/consistent-type-exports": [
|
|
99
|
+
2,
|
|
100
|
+
{ fixMixedExportsWithInlineTypeSpecifier: false }
|
|
101
|
+
],
|
|
102
|
+
"@typescript-eslint/no-explicit-any": [
|
|
103
|
+
2,
|
|
104
|
+
{ fixToUnknown: false, ignoreRestArgs: false }
|
|
105
|
+
],
|
|
106
|
+
"@typescript-eslint/no-empty-object-type": [
|
|
107
|
+
2,
|
|
108
|
+
{ allowInterfaces: "never", allowObjectTypes: "never" }
|
|
109
|
+
],
|
|
110
|
+
"@typescript-eslint/no-restricted-types": [
|
|
111
|
+
2,
|
|
112
|
+
{
|
|
113
|
+
types: {
|
|
114
|
+
"{}": {
|
|
115
|
+
message: `
|
|
116
|
+
- If you want to represent an empty object, use \`type EmptyObject = Record<string, never>\`.
|
|
117
|
+
- If you want to represent an object literal, use either \`type AnyObject = Record<string, any>\` or \`object\`.
|
|
118
|
+
- If you want to represent any non-nullish value, use \`type AnyNonNullishValue = NonNullable<unknown>\`.`,
|
|
119
|
+
suggest: [
|
|
120
|
+
"AnyNonNullishValue",
|
|
121
|
+
"EmptyObject",
|
|
122
|
+
"AnyObject",
|
|
123
|
+
"object",
|
|
124
|
+
"Record<string, never>",
|
|
125
|
+
"Record<string, any>",
|
|
126
|
+
"NonNullable<unknown>"
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"@typescript-eslint/no-namespace": [
|
|
133
|
+
2,
|
|
134
|
+
{ allowDeclarations: false, allowDefinitionFiles: true }
|
|
135
|
+
],
|
|
136
|
+
"@typescript-eslint/consistent-type-definitions": [2, "type"],
|
|
137
|
+
"sort-imports": [
|
|
138
|
+
2,
|
|
139
|
+
{
|
|
140
|
+
ignoreCase: false,
|
|
141
|
+
ignoreDeclarationSort: true,
|
|
142
|
+
ignoreMemberSort: false,
|
|
143
|
+
memberSyntaxSortOrder: ["none", "all", "multiple", "single"],
|
|
144
|
+
allowSeparatedGroups: true
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"@typescript-eslint/unified-signatures": [2],
|
|
148
|
+
"@typescript-eslint/dot-notation": [
|
|
149
|
+
2,
|
|
150
|
+
{
|
|
151
|
+
// Related issue: https://github.com/typescript-eslint/typescript-eslint/issues/10338
|
|
152
|
+
// Base ESLint default options
|
|
153
|
+
allowKeywords: true,
|
|
154
|
+
allowPattern: "",
|
|
155
|
+
// TypeScript ESLint default options
|
|
156
|
+
allowPrivateClassPropertyAccess: false,
|
|
157
|
+
allowProtectedClassPropertyAccess: false,
|
|
158
|
+
allowIndexSignaturePropertyAccess: false
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"@typescript-eslint/no-unnecessary-type-parameters": [2],
|
|
162
|
+
"@typescript-eslint/no-invalid-void-type": [2],
|
|
163
|
+
"@typescript-eslint/no-confusing-void-expression": [2],
|
|
164
|
+
"@typescript-eslint/no-duplicate-type-constituents": [2],
|
|
165
|
+
"@typescript-eslint/require-await": [2],
|
|
166
|
+
"@typescript-eslint/no-redundant-type-constituents": [2],
|
|
167
|
+
"@typescript-eslint/no-unnecessary-type-arguments": [2],
|
|
168
|
+
"@typescript-eslint/no-unnecessary-type-assertion": [2],
|
|
169
|
+
"@typescript-eslint/prefer-nullish-coalescing": [2],
|
|
170
|
+
"@typescript-eslint/no-inferrable-types": [2],
|
|
171
|
+
"@typescript-eslint/no-empty-function": [
|
|
172
|
+
2,
|
|
173
|
+
{
|
|
174
|
+
// Related issue: https://github.com/typescript-eslint/typescript-eslint/issues/10338
|
|
175
|
+
// Base ESLint default options
|
|
176
|
+
allow: []
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"@typescript-eslint/no-unused-expressions": [
|
|
180
|
+
2,
|
|
181
|
+
{
|
|
182
|
+
// Related issue: https://github.com/typescript-eslint/typescript-eslint/issues/10338
|
|
183
|
+
// Base ESLint default options
|
|
184
|
+
allowShortCircuit: false,
|
|
185
|
+
allowTernary: false,
|
|
186
|
+
allowTaggedTemplates: false,
|
|
187
|
+
enforceForJSX: false
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"object-shorthand": [2],
|
|
191
|
+
...rulesToDisable
|
|
192
|
+
},
|
|
193
|
+
linterOptions: { reportUnusedDisableDirectives: 2 }
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: "@aryaemami59/commonjs",
|
|
197
|
+
files: ["**/*.c[jt]s"],
|
|
198
|
+
languageOptions: { sourceType: "commonjs" },
|
|
199
|
+
rules: {
|
|
200
|
+
"@typescript-eslint/no-require-imports": [
|
|
201
|
+
0,
|
|
202
|
+
[{ allow: [], allowAsImport: false }]
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
);
|
|
207
|
+
var createESLintConfig = (additionalOverrides = []) => /* @__PURE__ */ config(...flatESLintConfig, ...additionalOverrides);
|
|
208
|
+
export {
|
|
209
|
+
createESLintConfig,
|
|
210
|
+
flatESLintConfig,
|
|
211
|
+
globalIgnores,
|
|
212
|
+
globals,
|
|
213
|
+
rulesToDisable,
|
|
214
|
+
vitestGlobals
|
|
215
|
+
};
|
|
216
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["import js from '@eslint/js'\nimport type { TSESLint } from '@typescript-eslint/utils'\nimport type { Linter } from 'eslint'\nimport prettierConfig from 'eslint-config-prettier'\nimport globalIdentifiers from 'globals'\nimport type { ConfigWithExtends } from 'typescript-eslint'\nimport { config, configs, parser } from 'typescript-eslint'\n\nconst { browser, node, nodeBuiltin } = globalIdentifiers\n\n/**\n * An object representing\n * {@link https://eslint.org/docs/latest/use/configure/ignore#ignoring-files | **global ignore patterns**}\n * for ESLint configuration.\n *\n * @since 0.0.3\n * @public\n */\nexport const globalIgnores = {\n name: '@aryaemami59/global-ignores',\n ignores: [\n '**/dist/',\n '**/.yalc/',\n '**/build/',\n '**/lib/',\n '**/temp/',\n '**/.yarn/',\n '**/coverage/',\n ],\n} as const satisfies Linter.Config\n\n/**\n * An object representing the\n * {@link https://vitest.dev/config/#globals | globals} provided by\n * {@link https://vitest.dev | **Vitest**} for use in testing.\n *\n * @since 0.0.3\n * @public\n */\nexport const vitestGlobals = {\n suite: 'writable',\n test: 'writable',\n describe: 'writable',\n it: 'writable',\n expectTypeOf: 'writable',\n assertType: 'writable',\n expect: 'writable',\n assert: 'writable',\n vitest: 'writable',\n vi: 'writable',\n beforeAll: 'writable',\n afterAll: 'writable',\n beforeEach: 'writable',\n afterEach: 'writable',\n onTestFailed: 'writable',\n onTestFinished: 'writable',\n} as const satisfies Linter.Globals\n\n/**\n * An object that specifies which global\n * variables are available during linting.\n *\n * @since 0.0.3\n * @public\n */\nexport const globals: typeof vitestGlobals &\n typeof browser &\n typeof node &\n typeof nodeBuiltin = /* @__PURE__ */ Object.assign(\n vitestGlobals,\n browser,\n node,\n nodeBuiltin,\n) satisfies Linter.Globals\n\n/**\n * An object comprised of ESLint rules to disable.\n * These rules are disabled in {@linkcode flatESLintConfig}.\n *\n * @since 0.0.3\n * @public\n */\nexport const rulesToDisable = {\n 'no-undef': [0],\n '@typescript-eslint/no-unused-vars': [\n 0,\n {\n vars: 'all',\n args: 'after-used',\n caughtErrors: 'all',\n ignoreRestSiblings: false,\n reportUsedIgnorePattern: false,\n },\n ],\n '@typescript-eslint/ban-ts-comment': [\n 0,\n [\n {\n 'ts-expect-error': 'allow-with-description',\n 'ts-ignore': true,\n 'ts-nocheck': true,\n 'ts-check': false,\n minimumDescriptionLength: 3,\n },\n ],\n ],\n} as const satisfies Linter.RulesRecord\n\n/**\n * Flat ESLint configuration tailored for projects using TypeScript.\n *\n * @example\n * <caption>#### __ECMAScript Modules (ESM) usage inside a file like `eslint.config.mts` or `eslint.config.mjs`__</caption>\n *\n * ```ts\n * import { flatESLintConfig } from '@aryaemami59/eslint-config'\n *\n * export default flatESLintConfig\n * ```\n *\n * @example\n * <caption>#### __CommonJS (CJS) usage inside a file like `eslint.config.cts` or `eslint.config.cjs` (using `require`)__</caption>\n *\n * ```ts\n * const { flatESLintConfig } = require('@aryaemami59/eslint-config')\n *\n * module.exports = flatESLintConfig\n * ```\n *\n * @example\n * <caption>#### __CommonJS (CJS) usage inside a file like `eslint.config.cjs` or `eslint.config.cts` (using dynamic import)__</caption>\n *\n * ```ts\n * module.exports = (async () =>\n * (await import('@aryaemami59/eslint-config')).flatESLintConfig)()\n * ```\n *\n * @example\n * <caption>#### __CommonJS (CJS) usage inside a file like `eslint.config.cts` (using import and export assignment)__</caption>\n *\n * ```ts\n * import eslintConfigModule = require('@aryaemami59/eslint-config')\n * import flatESLintConfig = eslintConfigModule.flatESLintConfig\n *\n * export = flatESLintConfig\n * ```\n *\n * @since 0.0.3\n * @public\n */\nexport const flatESLintConfig: TSESLint.FlatConfig.Config[] =\n /* @__PURE__ */ config(\n // `ignores` must be first.\n // config with just `ignores` is the replacement for `.eslintignore`\n globalIgnores,\n { name: '@aryaemami59/javascript', ...js.configs.recommended },\n ...configs.recommended,\n ...configs.stylistic,\n { name: '@aryaemami59/prettier-config', ...prettierConfig },\n {\n name: '@aryaemami59/main',\n languageOptions: {\n globals,\n parser,\n parserOptions: {\n projectService: {\n allowDefaultProject: ['.*.js', '.*.mjs', '.*.cjs'],\n defaultProject: './tsconfig.json',\n },\n ecmaVersion: 'latest',\n },\n },\n rules: {\n '@typescript-eslint/consistent-type-imports': [\n 2,\n {\n prefer: 'type-imports',\n fixStyle: 'separate-type-imports',\n disallowTypeAnnotations: true,\n },\n ],\n '@typescript-eslint/consistent-type-exports': [\n 2,\n { fixMixedExportsWithInlineTypeSpecifier: false },\n ],\n '@typescript-eslint/no-explicit-any': [\n 2,\n { fixToUnknown: false, ignoreRestArgs: false },\n ],\n '@typescript-eslint/no-empty-object-type': [\n 2,\n { allowInterfaces: 'never', allowObjectTypes: 'never' },\n ],\n '@typescript-eslint/no-restricted-types': [\n 2,\n {\n types: {\n '{}': {\n message: `\n- If you want to represent an empty object, use \\`type EmptyObject = Record<string, never>\\`.\n- If you want to represent an object literal, use either \\`type AnyObject = Record<string, any>\\` or \\`object\\`.\n- If you want to represent any non-nullish value, use \\`type AnyNonNullishValue = NonNullable<unknown>\\`.`,\n suggest: [\n 'AnyNonNullishValue',\n 'EmptyObject',\n 'AnyObject',\n 'object',\n 'Record<string, never>',\n 'Record<string, any>',\n 'NonNullable<unknown>',\n ],\n },\n },\n },\n ],\n '@typescript-eslint/no-namespace': [\n 2,\n { allowDeclarations: false, allowDefinitionFiles: true },\n ],\n '@typescript-eslint/consistent-type-definitions': [2, 'type'],\n 'sort-imports': [\n 2,\n {\n ignoreCase: false,\n ignoreDeclarationSort: true,\n ignoreMemberSort: false,\n memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],\n allowSeparatedGroups: true,\n },\n ],\n '@typescript-eslint/unified-signatures': [2],\n '@typescript-eslint/dot-notation': [\n 2,\n {\n // Related issue: https://github.com/typescript-eslint/typescript-eslint/issues/10338\n // Base ESLint default options\n allowKeywords: true,\n allowPattern: '',\n // TypeScript ESLint default options\n allowPrivateClassPropertyAccess: false,\n allowProtectedClassPropertyAccess: false,\n allowIndexSignaturePropertyAccess: false,\n },\n ],\n '@typescript-eslint/no-unnecessary-type-parameters': [2],\n '@typescript-eslint/no-invalid-void-type': [2],\n '@typescript-eslint/no-confusing-void-expression': [2],\n '@typescript-eslint/no-duplicate-type-constituents': [2],\n '@typescript-eslint/require-await': [2],\n '@typescript-eslint/no-redundant-type-constituents': [2],\n '@typescript-eslint/no-unnecessary-type-arguments': [2],\n '@typescript-eslint/no-unnecessary-type-assertion': [2],\n '@typescript-eslint/prefer-nullish-coalescing': [2],\n '@typescript-eslint/no-inferrable-types': [2],\n '@typescript-eslint/no-empty-function': [\n 2,\n {\n // Related issue: https://github.com/typescript-eslint/typescript-eslint/issues/10338\n // Base ESLint default options\n allow: [],\n },\n ],\n '@typescript-eslint/no-unused-expressions': [\n 2,\n {\n // Related issue: https://github.com/typescript-eslint/typescript-eslint/issues/10338\n // Base ESLint default options\n allowShortCircuit: false,\n allowTernary: false,\n allowTaggedTemplates: false,\n enforceForJSX: false,\n },\n ],\n 'object-shorthand': [2],\n ...rulesToDisable,\n },\n linterOptions: { reportUnusedDisableDirectives: 2 },\n },\n {\n name: '@aryaemami59/commonjs',\n files: ['**/*.c[jt]s'],\n languageOptions: { sourceType: 'commonjs' },\n rules: {\n '@typescript-eslint/no-require-imports': [\n 0,\n [{ allow: [], allowAsImport: false }],\n ],\n },\n },\n )\n\n/**\n * A function that returns {@linkcode flatESLintConfig}\n * along with optional additional overrides.\n * It's made mainly to provide intellisense and eliminate\n * the need for manual type annotations using JSDoc comments.\n *\n * @param additionalOverrides - **Optional** additional overrides to apply to the configuration.\n * @returns An augmented version of the default {@linkcode flatESLintConfig}, incorporating any provided overrides.\n *\n * @example\n * <caption>#### __ECMAScript Modules (ESM) usage inside a file like `eslint.config.mts` or `eslint.config.mjs`__</caption>\n *\n * ```ts\n * import { createESLintConfig } from '@aryaemami59/eslint-config'\n *\n * export default createESLintConfig([\n * {\n * rules: {\n * 'no-console': [0],\n * },\n * },\n * {\n * // ...Other additional overrides\n * },\n * ])\n * ```\n *\n * @example\n * <caption>#### __CommonJS (CJS) usage inside a file like `eslint.config.cts` or `eslint.config.cjs` (using `require`)__</caption>\n *\n * ```ts\n * const { createESLintConfig } = require('@aryaemami59/eslint-config')\n *\n * module.exports = createESLintConfig([\n * {\n * rules: {\n * 'no-console': [0],\n * },\n * },\n * {\n * // ...Other additional overrides\n * },\n * ])\n * ```\n *\n * @example\n * <caption>#### __CommonJS (CJS) usage inside a file like `eslint.config.cts` or `eslint.config.cjs` (using dynamic import)__</caption>\n *\n * ```ts\n * module.exports = (async () =>\n * (await import('@aryaemami59/eslint-config')).createESLintConfig([\n * {\n * rules: {\n * 'no-console': [0],\n * },\n * },\n * {\n * // ...Other additional overrides\n * },\n * ]))()\n * ```\n *\n * @example\n * <caption>#### __CommonJS (CJS) usage inside a file like `eslint.config.cts` (using import and export assignment)__</caption>\n *\n * ```ts\n * import eslintConfigModule = require('@aryaemami59/eslint-config')\n * import createESLintConfig = eslintConfigModule.createESLintConfig\n *\n * export = createESLintConfig([\n * {\n * rules: {\n * 'no-console': [0],\n * },\n * },\n * {\n * // ...Other additional overrides\n * },\n * ])\n * ```\n *\n * @since 0.0.3\n * @public\n */\nexport const createESLintConfig = (\n additionalOverrides: ConfigWithExtends[] = [],\n): TSESLint.FlatConfig.Config[] =>\n /* @__PURE__ */ config(...flatESLintConfig, ...additionalOverrides)\n"],"mappings":";AAAA,OAAO,QAAQ;AAGf,OAAO,oBAAoB;AAC3B,OAAO,uBAAuB;AAE9B,SAAS,QAAQ,SAAS,cAAc;AAExC,IAAM,EAAE,SAAS,MAAM,YAAY,IAAI;AAUhC,IAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,SAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAUO,IAAM,gBAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU;AAAA,EACV,IAAI;AAAA,EACJ,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,IAAI;AAAA,EACJ,WAAW;AAAA,EACX,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,cAAc;AAAA,EACd,gBAAgB;AAClB;AASO,IAAM,UAG0B,uBAAO;AAAA,EAC5C;AAAA,EACA;AAAA,E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CAA4C;AAAA,QAC1C;AAAA,QACA;AAAA;AAAA;AAAA,UAGE,mBAAmB;AAAA,UACnB,cAAc;AAAA,UACd,sBAAsB;AAAA,UACtB,eAAe;AAAA,QACjB;AAAA,MACF;AAAA,MACA,oBAAoB,CAAC,CAAC;AAAA,MACtB,GAAG;AAAA,IACL;AAAA,IACA,eAAe,EAAE,+BAA+B,EAAE;AAAA,EACpD;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,OAAO,CAAC,aAAa;AAAA,IACrB,iBAAiB,EAAE,YAAY,WAAW;AAAA,IAC1C,OAAO;AAAA,MACL,yCAAyC;AAAA,QACvC;AAAA,QACA,CAAC,EAAE,OAAO,CAAC,GAAG,eAAe,MAAM,CAAC;AAAA,MACtC;AAAA,IACF;AAAA,EACF;AACF;AAsFK,IAAM,qBAAqB,CAChC,sBAA2C,CAAC,MAE5B,uBAAO,GAAG,kBAAkB,GAAG,mBAAmB;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aryaemami59/eslint-config",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "ESLint configuration for TypeScript projects",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"eslint",
|
|
7
|
+
"config",
|
|
8
|
+
"eslint-config",
|
|
9
|
+
"configuration"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/aryaemami59/configs/tree/master/packages/eslint#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/aryaemami59/configs/issues"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/aryaemami59/configs.git",
|
|
18
|
+
"directory": "packages/eslint"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"author": "Arya Emami <aryaemami59@yahoo.com> (https://github.com/aryaemami59)",
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"type": "module",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"bun": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"default": "./src/index.ts"
|
|
29
|
+
},
|
|
30
|
+
"module-sync": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"module": {
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"default": "./dist/index.js"
|
|
37
|
+
},
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"default": "./dist/index.js"
|
|
41
|
+
},
|
|
42
|
+
"default": {
|
|
43
|
+
"types": "./dist/index.d.cts",
|
|
44
|
+
"default": "./dist/index.cjs"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"./package.json": "./package.json"
|
|
48
|
+
},
|
|
49
|
+
"main": "./dist/index.js",
|
|
50
|
+
"module": "./dist/index.js",
|
|
51
|
+
"source": "./src/index.ts",
|
|
52
|
+
"types": "./dist/index.d.ts",
|
|
53
|
+
"files": [
|
|
54
|
+
"dist",
|
|
55
|
+
"src"
|
|
56
|
+
],
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "yarn clean && tsup",
|
|
59
|
+
"check-exports": "attw --pack",
|
|
60
|
+
"check-package-json": "publint --strict .",
|
|
61
|
+
"clean": "rimraf dist",
|
|
62
|
+
"prepack": "yarn build"
|
|
63
|
+
},
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"@eslint/js": "^9.15.0",
|
|
66
|
+
"@typescript-eslint/utils": "^8.14.0",
|
|
67
|
+
"eslint-config-prettier": "^9.1.0",
|
|
68
|
+
"globals": "^15.12.0",
|
|
69
|
+
"typescript-eslint": "^8.14.0"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@arethetypeswrong/cli": "^0.17.0",
|
|
73
|
+
"@aryaemami59/tsconfig": "^0.0.3",
|
|
74
|
+
"@types/eslint-config-prettier": "^6.11.3",
|
|
75
|
+
"eslint": "^9.15.0",
|
|
76
|
+
"publint": "^0.2.12",
|
|
77
|
+
"rimraf": "^6.0.1",
|
|
78
|
+
"tsup": "^8.3.5",
|
|
79
|
+
"typescript": "^5.6.3"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"eslint": ">=8.56.0",
|
|
83
|
+
"typescript": "*"
|
|
84
|
+
},
|
|
85
|
+
"peerDependenciesMeta": {
|
|
86
|
+
"eslint": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"typescript": {
|
|
90
|
+
"optional": true
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"publishConfig": {
|
|
94
|
+
"access": "public",
|
|
95
|
+
"provenance": true
|
|
96
|
+
}
|
|
97
|
+
}
|