eslint-config-typed 1.2.2 → 1.2.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/dist/configs/plugins.d.mts.map +1 -1
- package/dist/configs/plugins.mjs +0 -1
- package/dist/configs/plugins.mjs.map +1 -1
- package/dist/entry-point.d.mts +2 -0
- package/dist/entry-point.d.mts.map +1 -0
- package/dist/entry-point.mjs +58 -0
- package/dist/entry-point.mjs.map +1 -0
- package/dist/types.d.mts +1 -1
- package/package.json +38 -27
- package/src/configs/plugins.mts +1 -2
- package/src/entry-point.mts +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.mts","sourceRoot":"","sources":["../../src/configs/plugins.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugins.d.mts","sourceRoot":"","sources":["../../src/configs/plugins.mts"],"names":[],"mappings":"AAyDA,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,oBAAoB,CAAC;AAExE,eAAO,MAAM,OAAO,EAAE,MAAM,CACxB,oBAAoB,GACpB,YAAY,GACZ,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,UAAU,GACV,wBAAwB,GACxB,SAAS,GACT,OAAO,GACP,aAAa,GACb,eAAe,GACf,YAAY,GACZ,UAAU,GACV,qBAAqB,GACrB,iBAAiB,GACjB,iBAAiB,GACjB,SAAS,GACT,eAAe,GACf,eAAe,GACf,QAAQ,EACV,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAoCW,CAAC"}
|
package/dist/configs/plugins.mjs
CHANGED
|
@@ -71,7 +71,6 @@ const plugins = {
|
|
|
71
71
|
'total-functions': eslintPluginTotalFunctions,
|
|
72
72
|
unicorn: eslintPluginUnicorn,
|
|
73
73
|
'tree-shakable': eslintPluginTreeShakable,
|
|
74
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
75
74
|
'eslint-plugin': eslintPluginEslintPlugin,
|
|
76
75
|
custom: eslintPluginCustom,
|
|
77
76
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.mjs","sources":["../../src/configs/plugins.mts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"plugins.mjs","sources":["../../src/configs/plugins.mts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DO,MAAM,OAAO,GAyBhB;AACF,IAAA,oBAAoB,EAAE,gBAAgB;;AAEtC,IAAA,YAAY,EAAE,qBAAqB;;AAEnC,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,UAAU,EAAE,sBAAsB;AAClC,IAAA,UAAU,EAAE,sBAAsB;AAClC,IAAA,MAAM,EAAE,kBAAkB;AAC1B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,MAAM,EAAE,kBAAkB;;AAE1B,IAAA,UAAU,EAAE,mBAAmB;AAC/B,IAAA,wBAAwB,EAAE,gCAAgC;;AAE1D,IAAA,OAAO,EAAE,mBAAmB;;AAE5B,IAAA,KAAK,EAAE,iBAA4C;;AAEnD,IAAA,aAAa,EAAE,sBAAsB;;AAErC,IAAA,eAAe,EAAE,wBAAmD;;AAEpE,IAAA,YAAY,EAAE,qBAAqB;;AAEnC,IAAA,QAAQ,EAAE,oBAAoB;;AAE9B,IAAA,qBAAqB,EAAE,8BAA8B;AACrD,IAAA,iBAAiB,EAAE,0BAA0B;AAC7C,IAAA,iBAAiB,EAAE,0BAA0B;AAC7C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,eAAe,EAAE,wBAAwB;AAEzC,IAAA,eAAe,EAAE,wBAAwB;AACzC,IAAA,MAAM,EAAE,kBAAkB;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry-point.d.mts","sourceRoot":"","sources":["../src/entry-point.mts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export { eslintFlatConfigForCypress } from './configs/cypress.mjs';
|
|
2
|
+
export { eslintFlatConfigForJest } from './configs/jest.mjs';
|
|
3
|
+
export { eslintFlatConfigForPlaywright } from './configs/playwright.mjs';
|
|
4
|
+
export { plugins } from './configs/plugins.mjs';
|
|
5
|
+
export { eslintFlatConfigForPreact } from './configs/preact.mjs';
|
|
6
|
+
export { eslintFlatConfigForReactBase } from './configs/react-base.mjs';
|
|
7
|
+
export { eslintFlatConfigForReact } from './configs/react.mjs';
|
|
8
|
+
export { eslintFlatConfigForTestingLibrary } from './configs/testing-library.mjs';
|
|
9
|
+
export { eslintFlatConfigForTypeScriptWithoutRules } from './configs/typescript-without-rules.mjs';
|
|
10
|
+
export { eslintFlatConfigForTypeScript } from './configs/typescript.mjs';
|
|
11
|
+
export { eslintFlatConfigForVitest } from './configs/vitest.mjs';
|
|
12
|
+
export { eslintPluginCustom } from './custom-rules/custom.mjs';
|
|
13
|
+
export { noRestrictedSyntax } from './custom-rules/no-restricted-syntax2.mjs';
|
|
14
|
+
export { eslintPluginTotalFunctions } from './plugins/total-functions/plugin.mjs';
|
|
15
|
+
export { assignableTypePairs, createRule, isLiteral, typeSymbolName } from './plugins/total-functions/rules/common.mjs';
|
|
16
|
+
export { effects, fpTsEffectType } from './plugins/total-functions/rules/fp-ts.mjs';
|
|
17
|
+
export { noEnums } from './plugins/total-functions/rules/no-enums.mjs';
|
|
18
|
+
export { noHiddenTypeAssertions } from './plugins/total-functions/rules/no-hidden-type-assertions.mjs';
|
|
19
|
+
export { noNestedFpTsEffects } from './plugins/total-functions/rules/no-nested-fp-ts-effects.mjs';
|
|
20
|
+
export { noPartialArrayReduce } from './plugins/total-functions/rules/no-partial-array-reduce.mjs';
|
|
21
|
+
export { noPartialDivision } from './plugins/total-functions/rules/no-partial-division.mjs';
|
|
22
|
+
export { noPartialStringNormalize } from './plugins/total-functions/rules/no-partial-string-normalize.mjs';
|
|
23
|
+
export { noPartialUrlConstructor } from './plugins/total-functions/rules/no-partial-url-constructor.mjs';
|
|
24
|
+
export { noPrematureFpTsEffects } from './plugins/total-functions/rules/no-premature-fp-ts-effects.mjs';
|
|
25
|
+
export { noUnsafeEnumAssignment } from './plugins/total-functions/rules/no-unsafe-enum-assignment.mjs';
|
|
26
|
+
export { noUnsafeMutableReadonlyAssignment } from './plugins/total-functions/rules/no-unsafe-mutable-readonly-assignment.mjs';
|
|
27
|
+
export { noUnsafeOptionalPropertyAssignment } from './plugins/total-functions/rules/no-unsafe-optional-property-assignment.mjs';
|
|
28
|
+
export { noUnsafeReadonlyMutableAssignment } from './plugins/total-functions/rules/no-unsafe-readonly-mutable-assignment.mjs';
|
|
29
|
+
export { noUnsafeTypeAssertion } from './plugins/total-functions/rules/no-unsafe-type-assertion.mjs';
|
|
30
|
+
export { requireStrictMode } from './plugins/total-functions/rules/require-strict-mode.mjs';
|
|
31
|
+
export { totalFunctionsRules } from './plugins/total-functions/rules/rules.mjs';
|
|
32
|
+
export { createNoUnsafeAssignmentRule } from './plugins/total-functions/rules/unsafe-assignment-rule.mjs';
|
|
33
|
+
export { eslintPluginTreeShakable } from './plugins/tree-shakable/plugin.mjs';
|
|
34
|
+
export { importStarRule } from './plugins/tree-shakable/rules/import-star.mjs';
|
|
35
|
+
export { treeShakableRules } from './plugins/tree-shakable/rules/rules.mjs';
|
|
36
|
+
export { eslintArrayFuncRules } from './rules/eslint-array-func-rules.mjs';
|
|
37
|
+
export { eslintCypressRules } from './rules/eslint-cypress-rules.mjs';
|
|
38
|
+
export { eslintFunctionalRules, ignoredMutablePattern, immutableDataOptions, noLetOptions } from './rules/eslint-functional-rules.mjs';
|
|
39
|
+
export { eslintImportsRules } from './rules/eslint-import-rules.mjs';
|
|
40
|
+
export { eslintJestRules } from './rules/eslint-jest-rules.mjs';
|
|
41
|
+
export { eslintJsxA11yRules } from './rules/eslint-jsx-a11y-rules.mjs';
|
|
42
|
+
export { eslintPlaywrightRules } from './rules/eslint-playwright-rules.mjs';
|
|
43
|
+
export { eslintPluginRules } from './rules/eslint-plugin-rules.mjs';
|
|
44
|
+
export { eslintPreferArrowFunctionRules } from './rules/eslint-prefer-arrow-functions-rules.mjs';
|
|
45
|
+
export { eslintPromiseRules } from './rules/eslint-promise-rules.mjs';
|
|
46
|
+
export { eslintReactHooksRules } from './rules/eslint-react-hooks-rules.mjs';
|
|
47
|
+
export { eslintReactPerfRules } from './rules/eslint-react-perf-rules.mjs';
|
|
48
|
+
export { eslintReactRefreshRules } from './rules/eslint-react-refresh-rules.mjs';
|
|
49
|
+
export { eslintReactRules } from './rules/eslint-react-rules.mjs';
|
|
50
|
+
export { eslintRules, restrictedGlobals, restrictedGlobalsForFrontend, restrictedSyntax } from './rules/eslint-rules.mjs';
|
|
51
|
+
export { eslintSecurityRules } from './rules/eslint-security-rules.mjs';
|
|
52
|
+
export { eslintTestingLibraryRules } from './rules/eslint-testing-library-rules.mjs';
|
|
53
|
+
export { eslintTotalFunctionsRules } from './rules/eslint-total-functions-rules.mjs';
|
|
54
|
+
export { eslintTreeShakableRules } from './rules/eslint-tree-shakable-rules.mjs';
|
|
55
|
+
export { eslintUnicornRules } from './rules/eslint-unicorn-rules.mjs';
|
|
56
|
+
export { eslintVitestRules } from './rules/eslint-vitest-rules.mjs';
|
|
57
|
+
export { banTypes, restrictedImportsOption, typescriptEslintRules } from './rules/typescript-eslint-rules.mjs';
|
|
58
|
+
//# sourceMappingURL=entry-point.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry-point.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './globals.d.mts';
|
|
2
|
-
export * from './
|
|
2
|
+
export * from './entry-point.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-typed",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript"
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
".": {
|
|
18
18
|
"import": {
|
|
19
19
|
"types": "./dist/types.d.mts",
|
|
20
|
-
"default": "./dist/
|
|
20
|
+
"default": "./dist/entry-point.mjs"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"module": "./dist/
|
|
24
|
+
"module": "./dist/entry-point.mjs",
|
|
25
25
|
"types": "./dist/types.d.mts",
|
|
26
26
|
"files": [
|
|
27
27
|
"src",
|
|
@@ -30,15 +30,26 @@
|
|
|
30
30
|
"LICENSE"
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
|
-
"build": "tsx ./scripts/cmd/build.
|
|
34
|
-
"check-all": "tsx ./scripts/cmd/check-all.
|
|
35
|
-
"check:ext": "tsx ./scripts/cmd/check-ext.
|
|
33
|
+
"build": "tsx ./scripts/cmd/build.mts",
|
|
34
|
+
"check-all": "tsx ./scripts/cmd/check-all.mts",
|
|
35
|
+
"check:ext": "tsx ./scripts/cmd/check-ext.mts",
|
|
36
36
|
"cspell": "cspell \"**\" --gitignore --gitignore-root ./ --no-progress",
|
|
37
|
-
"doc": "tsx ./scripts/cmd/gen-docs.
|
|
38
|
-
"
|
|
37
|
+
"doc": "tsx ./scripts/cmd/gen-docs.mts",
|
|
38
|
+
"doc:embed": "tsx ./scripts/cmd/embed-samples.mts",
|
|
39
|
+
"fmt": "format-uncommitted",
|
|
40
|
+
"fmt:diff": "format-diff-from origin/main",
|
|
39
41
|
"fmt:full": "prettier --write .",
|
|
40
|
-
"gen-rules-type": "tsx ./scripts/
|
|
41
|
-
"
|
|
42
|
+
"gen-rules-type": "tsx ./scripts/gen-eslint-rules/main.mts",
|
|
43
|
+
"gh:apply-all": "run-s gh:apply-variables gh:apply-rulesets gh:apply-repository-settings",
|
|
44
|
+
"gh:apply-repository-settings": "tsx --env-file=.env scripts/github/repository/apply.mts",
|
|
45
|
+
"gh:apply-rulesets": "tsx --env-file=.env scripts/github/ruleset/apply.mts",
|
|
46
|
+
"gh:apply-variables": "tsx --env-file=.env scripts/github/variables/apply.mts",
|
|
47
|
+
"gh:backup-all": "run-s gh:backup-rulesets gh:backup-repository-settings",
|
|
48
|
+
"gh:backup-repository-settings": "tsx --env-file=.env scripts/github/repository/backup.mts",
|
|
49
|
+
"gh:backup-rulesets": "tsx --env-file=.env scripts/github/ruleset/backup.mts",
|
|
50
|
+
"gi": "run-s gi:scripts gi:src fmt",
|
|
51
|
+
"gi:scripts": "gen-index-ts ./scripts/github --index-ext .mts --export-ext .mjs --target-ext .mts --exclude cmd --exclude apply.mts --exclude octokit.mts",
|
|
52
|
+
"gi:src": "gen-index-ts ./src --index-ext .mts --export-ext .mjs --target-ext .mts --target-ext .tsx --exclude entry-point.mts",
|
|
42
53
|
"lint": "eslint .",
|
|
43
54
|
"lint:fix": "eslint . --fix",
|
|
44
55
|
"md": "markdownlint-cli2",
|
|
@@ -60,11 +71,11 @@
|
|
|
60
71
|
"@typescript-eslint/parser": "8.43.0",
|
|
61
72
|
"@typescript-eslint/type-utils": "8.43.0",
|
|
62
73
|
"@typescript-eslint/utils": "8.43.0",
|
|
63
|
-
"eslint": "9.
|
|
74
|
+
"eslint": "9.36.0",
|
|
64
75
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
65
76
|
"eslint-plugin-array-func": "5.0.2",
|
|
66
77
|
"eslint-plugin-cypress": "5.1.1",
|
|
67
|
-
"eslint-plugin-eslint-plugin": "
|
|
78
|
+
"eslint-plugin-eslint-plugin": "7.0.0",
|
|
68
79
|
"eslint-plugin-functional": "7.1.0",
|
|
69
80
|
"eslint-plugin-import": "2.32.0",
|
|
70
81
|
"eslint-plugin-jest": "28.11.0",
|
|
@@ -87,6 +98,7 @@
|
|
|
87
98
|
"typescript-eslint": "^8.39.1"
|
|
88
99
|
},
|
|
89
100
|
"devDependencies": {
|
|
101
|
+
"@octokit/core": "^7.0.3",
|
|
90
102
|
"@rollup/plugin-replace": "^6.0.2",
|
|
91
103
|
"@rollup/plugin-strip": "^3.0.4",
|
|
92
104
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
@@ -94,10 +106,10 @@
|
|
|
94
106
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
95
107
|
"@semantic-release/exec": "^7.1.0",
|
|
96
108
|
"@semantic-release/git": "^10.0.1",
|
|
97
|
-
"@semantic-release/github": "^11.0.
|
|
109
|
+
"@semantic-release/github": "^11.0.6",
|
|
98
110
|
"@semantic-release/npm": "^12.0.2",
|
|
99
|
-
"@semantic-release/release-notes-generator": "^14.0
|
|
100
|
-
"@types/node": "^24.3.
|
|
111
|
+
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
112
|
+
"@types/node": "^24.3.3",
|
|
101
113
|
"@typescript-eslint/rule-tester": "8.43.0",
|
|
102
114
|
"@vitest/coverage-v8": "^3.2.4",
|
|
103
115
|
"@vitest/ui": "^3.2.4",
|
|
@@ -107,23 +119,22 @@
|
|
|
107
119
|
"fast-glob": "^3.3.3",
|
|
108
120
|
"json-schema-to-typescript": "^15.0.4",
|
|
109
121
|
"markdownlint-cli2": "^0.18.1",
|
|
122
|
+
"npm-run-all2": "^8.0.4",
|
|
123
|
+
"octokit-safe-types": "^1.0.0",
|
|
110
124
|
"prettier": "^3.6.2",
|
|
111
|
-
"prettier-plugin-jsdoc": "^1.3.3",
|
|
112
125
|
"prettier-plugin-organize-imports": "^4.2.0",
|
|
113
126
|
"prettier-plugin-packagejson": "^2.5.19",
|
|
114
|
-
"rollup": "^4.
|
|
127
|
+
"rollup": "^4.50.1",
|
|
115
128
|
"semantic-release": "^24.2.8",
|
|
116
|
-
"ts-data-forge": "^3.0
|
|
117
|
-
"ts-
|
|
118
|
-
"ts-
|
|
129
|
+
"ts-data-forge": "^3.2.0",
|
|
130
|
+
"ts-fortress": "^4.3.0",
|
|
131
|
+
"ts-repo-utils": "^7.5.0",
|
|
132
|
+
"ts-type-forge": "^2.2.0",
|
|
119
133
|
"tslib": "^2.8.1",
|
|
120
|
-
"tsx": "^4.20.
|
|
121
|
-
"typedoc": "^0.28.
|
|
122
|
-
"typedoc-plugin-markdown": "^4.8.
|
|
123
|
-
"typescript": "^5.
|
|
134
|
+
"tsx": "^4.20.5",
|
|
135
|
+
"typedoc": "^0.28.13",
|
|
136
|
+
"typedoc-plugin-markdown": "^4.8.1",
|
|
137
|
+
"typescript": "^5.9.2",
|
|
124
138
|
"vitest": "^3.2.4"
|
|
125
|
-
},
|
|
126
|
-
"engines": {
|
|
127
|
-
"node": ">=20.11.0"
|
|
128
139
|
}
|
|
129
140
|
}
|
package/src/configs/plugins.mts
CHANGED
|
@@ -44,7 +44,6 @@ import eslintPluginReactPerf from 'eslint-plugin-react-perf';
|
|
|
44
44
|
// @ts-expect-error no type definition
|
|
45
45
|
import eslintPluginJsxA11y from 'eslint-plugin-jsx-a11y';
|
|
46
46
|
|
|
47
|
-
// @ts-expect-error no type definition
|
|
48
47
|
import eslintPluginEslintPlugin from 'eslint-plugin-eslint-plugin';
|
|
49
48
|
|
|
50
49
|
// import eslintPluginTotalFunctions from 'eslint-plugin-total-functions';
|
|
@@ -115,7 +114,7 @@ export const plugins: Record<
|
|
|
115
114
|
'total-functions': eslintPluginTotalFunctions,
|
|
116
115
|
unicorn: eslintPluginUnicorn,
|
|
117
116
|
'tree-shakable': eslintPluginTreeShakable,
|
|
118
|
-
|
|
117
|
+
|
|
119
118
|
'eslint-plugin': eslintPluginEslintPlugin,
|
|
120
119
|
custom: eslintPluginCustom,
|
|
121
120
|
} as const satisfies FlatConfig['plugins'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index.mjs';
|