-
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.
Refactored to align with common development repository.
- Loading branch information
1 parent
8802b34
commit 5c7b92d
Showing
7 changed files
with
51 additions
and
187 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,114 +1,3 @@ | ||
import js from "@eslint/js"; | ||
import stylistic from "@stylistic/eslint-plugin"; | ||
import esLintConfigLove from "eslint-config-love"; | ||
import jsdoc from "eslint-plugin-jsdoc"; | ||
import tseslint from "typescript-eslint"; | ||
import { esLintConfigLegReq } from "@legreq/tsdev"; | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: ["eslint.config.js", "dist"] | ||
}, | ||
js.configs.recommended, | ||
...tseslint.configs.strictTypeChecked, | ||
stylistic.configs["recommended-flat"], | ||
jsdoc.configs["flat/recommended-typescript"], | ||
esLintConfigLove, | ||
{ | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: true | ||
} | ||
}, | ||
|
||
linterOptions: { | ||
reportUnusedDisableDirectives: "error" | ||
}, | ||
|
||
rules: { | ||
"complexity": "off", | ||
"max-depth": "off", | ||
"max-lines": "off", | ||
"no-console": "off", | ||
"no-dupe-class-members": "off", | ||
"no-redeclare": "off", | ||
"no-unused-vars": "off", | ||
|
||
"@typescript-eslint/class-literal-property-style": "off", | ||
"@typescript-eslint/class-methods-use-this": "off", | ||
"@typescript-eslint/init-declarations": "off", | ||
"@typescript-eslint/max-params": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-empty-object-type": "off", | ||
"@typescript-eslint/no-magic-numbers": "off", | ||
"@typescript-eslint/no-unnecessary-type-parameters": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
caughtErrorsIgnorePattern: "^_" | ||
} | ||
], | ||
"@typescript-eslint/prefer-destructuring": "off", | ||
"@typescript-eslint/unbound-method": ["error", { | ||
ignoreStatic: true | ||
}], | ||
|
||
"@stylistic/array-bracket-newline": ["error", "consistent"], | ||
"@stylistic/brace-style": ["error", "1tbs", { | ||
allowSingleLine: false | ||
}], | ||
"@stylistic/comma-dangle": ["error", "never"], | ||
"@stylistic/indent": ["error", 4], | ||
"@stylistic/member-delimiter-style": ["error", { | ||
multiline: { | ||
delimiter: "semi", | ||
requireLast: true | ||
}, | ||
singleline: { | ||
delimiter: "semi" | ||
} | ||
}], | ||
"@stylistic/no-trailing-spaces": ["off"], | ||
"@stylistic/operator-linebreak": ["error", "after"], | ||
"@stylistic/quotes": ["error", "double"], | ||
"@stylistic/semi": ["error", "always"], | ||
"@stylistic/object-curly-newline": ["error", { | ||
ObjectExpression: { | ||
multiline: true, | ||
minProperties: 1 | ||
}, | ||
ObjectPattern: { | ||
multiline: true, | ||
minProperties: 1 | ||
} | ||
}], | ||
"@stylistic/object-property-newline": "error", | ||
|
||
"jsdoc/require-description": ["warn", { | ||
contexts: ["ClassDeclaration", "ClassProperty", "FunctionDeclaration", "MethodDefinition", "TSEnumDeclaration", "TSInterfaceDeclaration", "TSModuleDeclaration", "TSTypeAliasDeclaration"] | ||
}], | ||
"jsdoc/require-jsdoc": ["warn", { | ||
contexts: ["ClassDeclaration", "ClassProperty", "FunctionDeclaration", "MethodDefinition", "TSEnumDeclaration", "TSInterfaceDeclaration", "TSModuleDeclaration", "TSTypeAliasDeclaration"] | ||
}], | ||
"jsdoc/require-returns": ["warn", { | ||
checkGetters: false | ||
}], | ||
"jsdoc/tag-lines": ["warn", "any", { | ||
count: 1, | ||
startLines: 1 | ||
}] | ||
} | ||
}, | ||
{ | ||
files: [ | ||
"test/**/*" | ||
], | ||
rules: { | ||
"max-nested-callbacks": "off", | ||
"jsdoc/require-jsdoc": "off", | ||
"@typescript-eslint/dot-notation": "off", | ||
"@typescript-eslint/no-unsafe-type-assertion": "off" | ||
} | ||
} | ||
); | ||
export default esLintConfigLegReq; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,3 @@ | ||
// https://aka.ms/tsconfig | ||
{ | ||
"compilerOptions": { | ||
// Type checking. | ||
"strict": true, | ||
"exactOptionalPropertyTypes": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitOverride": true, | ||
"noPropertyAccessFromIndexSignature": true, | ||
|
||
// Modules. | ||
"module": "nodenext", | ||
"resolveJsonModule": true, | ||
|
||
// Interop constraints. | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
|
||
// Language and environment. | ||
"target": "esnext", | ||
"useDefineForClassFields": true, | ||
|
||
// Completeness. | ||
"skipLibCheck": true | ||
} | ||
"extends": "@legreq/tsdev/tsconfig.json" | ||
} |