-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(evolver): ensure async methods work correctly when chained
modify chained methods so async/sync have different chaining names BREAKING CHANGE: .
- Loading branch information
Jake Lauer
authored and
Jake Lauer
committed
Jul 23, 2024
1 parent
3601bf6
commit 4040fbe
Showing
14 changed files
with
476 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,89 @@ | ||
module.exports = { | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: [ | ||
"./.examples/tic-tac-toe/tsconfig.json", | ||
"./tsconfig.tsup.json", | ||
"./tsconfig.base.json", | ||
"./packages/commitlint-config/tsconfig.json", | ||
"./packages/sandbox/tsconfig.tsup.json", | ||
"./packages/sandbox/tsconfig.json", | ||
"./packages/logger/tsconfig.json", | ||
"./packages/logger/tsconfig.tsup.json", | ||
"./packages/eslint-plugin-theseus/tsconfig.json", | ||
"./tsconfig.json" | ||
], | ||
ecmaVersion: 2018, | ||
sourceType: "module", | ||
tsconfigRootDir: "./", | ||
}, | ||
extends: [ | ||
"./.examples/tic-tac-toe/tsconfig.json", | ||
"./tsconfig.tsup.json", | ||
"./tsconfig.base.json", | ||
"./packages/commitlint-config/tsconfig.json", | ||
"./packages/sandbox/tsconfig.tsup.json", | ||
"./packages/sandbox/tsconfig.json", | ||
"./packages/logger/tsconfig.json", | ||
"./packages/logger/tsconfig.tsup.json", | ||
"./packages/eslint-plugin-theseus/tsconfig.json", | ||
"./tsconfig.json", | ||
], | ||
ecmaVersion: 2018, | ||
sourceType: "module", | ||
tsconfigRootDir: "./", | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
"plugin:theseus/recommended", | ||
"plugin:require-extensions/recommended" | ||
], | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
paths: ["eslint-rules"] | ||
} | ||
} | ||
}, | ||
plugins: ["unused-imports", "@stylistic", "require-extensions"], | ||
rules: { | ||
"indent": ["error", "tab", { "SwitchCase": 1 }], | ||
quotes: [2, "double", { avoidEscape: true }], | ||
"unused-imports/no-unused-imports": "error", | ||
"no-async-promise-executor": "off", | ||
"@stylistic/object-property-newline": ["error"], | ||
"@stylistic/object-curly-newline": ["error", { | ||
"ObjectExpression": { "multiline": true, "minProperties": 1 }, | ||
"ObjectPattern": { "multiline": true, "minProperties": 3 }, | ||
"ImportDeclaration": { "multiline": true, "minProperties": 3 }, | ||
"ExportDeclaration": { "multiline": true, "minProperties": 2 } | ||
}], | ||
"@typescript-eslint/no-floating-promises": ["error"], | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
args: "all", | ||
argsIgnorePattern: "^_", | ||
caughtErrors: "all", | ||
caughtErrorsIgnorePattern: "^_", | ||
destructuredArrayIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
ignoreRestSiblings: true, | ||
}, | ||
"plugin:theseus/recommended", | ||
"plugin:require-extensions/recommended", | ||
], | ||
settings: { | ||
"import/resolver": { | ||
node: { | ||
paths: ["eslint-rules"], | ||
}, | ||
}, | ||
}, | ||
plugins: ["unused-imports", "@stylistic", "require-extensions"], | ||
rules: { | ||
indent: ["error", "tab", { SwitchCase: 1 }], | ||
quotes: [2, "double", { avoidEscape: true }], | ||
"unused-imports/no-unused-imports": "error", | ||
"no-async-promise-executor": "off", | ||
"@stylistic/object-property-newline": ["error"], | ||
"@stylistic/object-curly-newline": [ | ||
"error", | ||
{ | ||
ObjectExpression: { multiline: true, minProperties: 1 }, | ||
ObjectPattern: { multiline: true, minProperties: 3 }, | ||
ImportDeclaration: { multiline: true, minProperties: 3 }, | ||
ExportDeclaration: { multiline: true, minProperties: 2 }, | ||
}, | ||
], | ||
"@typescript-eslint/no-floating-promises": [ | ||
"error", | ||
{ | ||
checkThenables: true, | ||
}, | ||
], | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
args: "all", | ||
argsIgnorePattern: "^_", | ||
caughtErrors: "all", | ||
caughtErrorsIgnorePattern: "^_", | ||
destructuredArrayIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
ignoreRestSiblings: true, | ||
}, | ||
], | ||
"semi": ["error", "always"], | ||
semi: ["error", "always"], | ||
"comma-dangle": ["error", "always-multiline"], | ||
"array-bracket-spacing": ["error", "never"], | ||
"object-curly-spacing": ["error", "always"], | ||
"max-len": ["error", { "code": 180, "ignoreUrls": true, "ignoreTemplateLiterals": true, "ignoreStrings": true }], | ||
"max-len": ["error", { code: 180, ignoreUrls: true, ignoreTemplateLiterals: true, ignoreStrings: true }], | ||
"arrow-parens": ["error", "always"], | ||
"no-tabs": "off", // Since you're using tabs | ||
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }], | ||
"keyword-spacing": ["error", { "before": true, "after": true }], | ||
"brace-style": ["error", "allman", { "allowSingleLine": true }], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["**/*.test.ts"], | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": ["off"], | ||
}, | ||
}, | ||
], | ||
"key-spacing": ["error", { beforeColon: false, afterColon: true }], | ||
"keyword-spacing": ["error", { before: true, after: true }], | ||
"brace-style": ["error", "allman", { allowSingleLine: true }], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ["**/*.test.ts"], | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": ["off"], | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.