Skip to content

Commit 13e9109

Browse files
refactor: simplify paths
1 parent c2f1cf4 commit 13e9109

File tree

125 files changed

+348
-492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+348
-492
lines changed

cz-adapter/engine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import chalk from "chalk";
22
import wrap from "word-wrap";
33

4-
import { rules } from "#eslint-plugin-functional/rules";
4+
import { rules } from "#/rules";
55

66
import { type Options } from "./options";
77

rollup.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const classicCJS = {
3131
...resolvedConfig,
3232
paths: {
3333
...resolvedConfig.paths,
34-
"#eslint-plugin-functional/conditional-imports/*": [
34+
"#/conditional-imports/*": [
3535
"src/utils/conditional-imports/cjs/*",
3636
],
3737
},
@@ -65,7 +65,7 @@ const classicESM = {
6565
...resolvedConfig,
6666
paths: {
6767
...resolvedConfig.paths,
68-
"#eslint-plugin-functional/conditional-imports/*": [
68+
"#/conditional-imports/*": [
6969
"src/utils/conditional-imports/esm/*",
7070
],
7171
},
@@ -99,7 +99,7 @@ const flatCJS = {
9999
...resolvedConfig,
100100
paths: {
101101
...resolvedConfig.paths,
102-
"#eslint-plugin-functional/conditional-imports/*": [
102+
"#/conditional-imports/*": [
103103
"src/utils/conditional-imports/cjs/*",
104104
],
105105
},
@@ -133,7 +133,7 @@ const flatESM = {
133133
...resolvedConfig,
134134
paths: {
135135
...resolvedConfig.paths,
136-
"#eslint-plugin-functional/conditional-imports/*": [
136+
"#/conditional-imports/*": [
137137
"src/utils/conditional-imports/esm/*",
138138
],
139139
},

src/classic.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import { type Linter } from "@typescript-eslint/utils/ts-eslint";
22

3-
import all from "#eslint-plugin-functional/configs/all";
4-
import currying from "#eslint-plugin-functional/configs/currying";
5-
import disableTypeChecked from "#eslint-plugin-functional/configs/disable-type-checked";
6-
import externalTypeScriptRecommended from "#eslint-plugin-functional/configs/external-typescript-recommended";
7-
import externalVanillaRecommended from "#eslint-plugin-functional/configs/external-vanilla-recommended";
8-
import lite from "#eslint-plugin-functional/configs/lite";
9-
import noExceptions from "#eslint-plugin-functional/configs/no-exceptions";
10-
import noMutations from "#eslint-plugin-functional/configs/no-mutations";
11-
import noOtherParadigms from "#eslint-plugin-functional/configs/no-other-paradigms";
12-
import noStatements from "#eslint-plugin-functional/configs/no-statements";
13-
import off from "#eslint-plugin-functional/configs/off";
14-
import recommended from "#eslint-plugin-functional/configs/recommended";
15-
import strict from "#eslint-plugin-functional/configs/strict";
16-
import stylistic from "#eslint-plugin-functional/configs/stylistic";
17-
import { rules } from "#eslint-plugin-functional/rules";
18-
import { ruleNameScope } from "#eslint-plugin-functional/utils/misc";
3+
import all from "#/configs/all";
4+
import currying from "#/configs/currying";
5+
import disableTypeChecked from "#/configs/disable-type-checked";
6+
import externalTypeScriptRecommended from "#/configs/external-typescript-recommended";
7+
import externalVanillaRecommended from "#/configs/external-vanilla-recommended";
8+
import lite from "#/configs/lite";
9+
import noExceptions from "#/configs/no-exceptions";
10+
import noMutations from "#/configs/no-mutations";
11+
import noOtherParadigms from "#/configs/no-other-paradigms";
12+
import noStatements from "#/configs/no-statements";
13+
import off from "#/configs/off";
14+
import recommended from "#/configs/recommended";
15+
import strict from "#/configs/strict";
16+
import stylistic from "#/configs/stylistic";
17+
import { rules } from "#/rules";
18+
import { ruleNameScope } from "#/utils/misc";
1919

2020
export default {
2121
rules,

src/configs/all.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint";
22

3-
import { rules } from "#eslint-plugin-functional/rules";
4-
import { ruleNameScope } from "#eslint-plugin-functional/utils/misc";
3+
import { rules } from "#/rules";
4+
import { ruleNameScope } from "#/utils/misc";
55

66
export default {
77
...Object.fromEntries(

src/configs/currying.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint";
22

3-
import { rules } from "#eslint-plugin-functional/rules";
4-
import { ruleNameScope } from "#eslint-plugin-functional/utils/misc";
3+
import { rules } from "#/rules";
4+
import { ruleNameScope } from "#/utils/misc";
55

66
export default Object.fromEntries(
77
Object.entries(rules)

src/configs/disable-type-checked.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint";
22

3-
import { rules } from "#eslint-plugin-functional/rules";
4-
import { ruleNameScope } from "#eslint-plugin-functional/utils/misc";
3+
import { rules } from "#/rules";
4+
import { ruleNameScope } from "#/utils/misc";
55

66
export default Object.fromEntries(
77
Object.entries(rules)

src/configs/external-typescript-recommended.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint";
22

3-
import externalVanillaRecommended from "#eslint-plugin-functional/configs/external-vanilla-recommended";
3+
import externalVanillaRecommended from "#/configs/external-vanilla-recommended";
44

55
const tsConfig = {
66
"@typescript-eslint/prefer-readonly": "error",

src/configs/lite.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint";
22

3-
import * as functionalParameters from "#eslint-plugin-functional/rules/functional-parameters";
4-
import * as immutableData from "#eslint-plugin-functional/rules/immutable-data";
5-
import * as noConditionalStatements from "#eslint-plugin-functional/rules/no-conditional-statements";
6-
import * as noExpressionStatements from "#eslint-plugin-functional/rules/no-expression-statements";
7-
import * as preferImmutableTypes from "#eslint-plugin-functional/rules/prefer-immutable-types";
3+
import * as functionalParameters from "#/rules/functional-parameters";
4+
import * as immutableData from "#/rules/immutable-data";
5+
import * as noConditionalStatements from "#/rules/no-conditional-statements";
6+
import * as noExpressionStatements from "#/rules/no-expression-statements";
7+
import * as preferImmutableTypes from "#/rules/prefer-immutable-types";
88

99
import recommended from "./recommended";
1010

src/configs/no-exceptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint";
22

3-
import { rules } from "#eslint-plugin-functional/rules";
4-
import { ruleNameScope } from "#eslint-plugin-functional/utils/misc";
3+
import { rules } from "#/rules";
4+
import { ruleNameScope } from "#/utils/misc";
55

66
export default Object.fromEntries(
77
Object.entries(rules)

src/configs/no-mutations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type FlatConfig } from "@typescript-eslint/utils/ts-eslint";
22

3-
import { rules } from "#eslint-plugin-functional/rules";
4-
import { ruleNameScope } from "#eslint-plugin-functional/utils/misc";
3+
import { rules } from "#/rules";
4+
import { ruleNameScope } from "#/utils/misc";
55

66
export default Object.fromEntries(
77
Object.entries(rules)

0 commit comments

Comments
 (0)