Skip to content

Commit

Permalink
Switch to v2 (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
timostamm authored Nov 4, 2024
1 parent 0ec081d commit 70bc94b
Show file tree
Hide file tree
Showing 117 changed files with 5,865 additions and 5,778 deletions.
33 changes: 5 additions & 28 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ const config = {
parserOptions: {
project: true,
},
plugins: [
"@typescript-eslint",
"jsdoc",
"import",
"simple-import-sort",
"vitest",
],
plugins: ["@typescript-eslint", "import", "simple-import-sort", "vitest"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/all",
Expand All @@ -43,15 +37,12 @@ const config = {
"prettier",
],
settings: {
jsdoc: {
mode: "typescript",
noDefaultExampleRules: false,
checkProperties: true,
minLines: 1,
},
"import/resolver": {
typescript: {},
},
vitest: {
typecheck: true,
},
},
rules: {
...vitest.configs.recommended.rules,
Expand All @@ -69,7 +60,6 @@ const config = {
"@typescript-eslint/prefer-readonly-parameter-types": "off", // not realistic
"@typescript-eslint/explicit-module-boundary-types": "off", // inference and conformance testing cover this well
"@typescript-eslint/explicit-function-return-type": "off", // inference and conformance testing cover this well
"@typescript-eslint/no-unused-expressions": "off", // necessary component of some exports, e.g. DisableQuery
"@typescript-eslint/no-type-alias": "off", // this rule turns off things that are absolutely required by this project such as conditional types and literals
"@typescript-eslint/no-throw-literal": "off", // unfortunately this rule doesn't understand returns from `unreachableCase`
"@typescript-eslint/no-magic-numbers": "off", // literal values are used in CSS-in-JS, tests, and library constants
Expand All @@ -79,18 +69,6 @@ const config = {
{ "ts-expect-error": { descriptionFormat: "^\\(\\d+\\) .+$" } },
],

"jsdoc/require-jsdoc": [
"error",
{
contexts: [
"TSTypeAliasDeclaration",
{ context: "TSPropertySignature", inlineCommentBlock: true },
],
publicOnly: true,
require: { ArrowFunctionExpression: true },
},
],

"simple-import-sort/imports": "error",
},
overrides: [
Expand All @@ -115,14 +93,13 @@ const config = {
"error",
{
vars: "all",
varsIgnorePattern: "ExpectType_.*", // necessary for TypeScript type tests
argsIgnorePattern: "_",
},
],
},
},
{
files: ["**/eliza/*", "**/gen/**", "**/snapshots/**"], // generated code
files: ["**/eliza/*", "gen/**", "**/gen/**", "**/snapshots/**"], // generated code
rules: {
"eslint-comments/no-unused-enable": "off",
"eslint-comments/no-unused-disable": "off",
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"git.enableCommitSigning": true,
"git.alwaysSignOff": true,
"typescript.tsdk": "node_modules/typescript/lib"
}
Loading

0 comments on commit 70bc94b

Please sign in to comment.