-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: migrate to create-typescript-app@1
- Loading branch information
1 parent
ea38ac0
commit aa21b1d
Showing
83 changed files
with
11,186 additions
and
12,419 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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"badgeTemplate": "<img alt=\"All Contributors: <%= contributors.length %>\" src=\"https://img.shields.io/badge/all_contributors-<%= contributors.length %>-21bb42.svg\" />", | ||
"commit": false, | ||
"commitConvention": "angular", | ||
"contributors": [ | ||
{ | ||
"login": "BatuhanW", | ||
"name": "Batuhan Wilhelm", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/16444991?v=4", | ||
"profile": "https://github.com/BatuhanW", | ||
"contributions": ["bug", "code"] | ||
}, | ||
{ | ||
"login": "colinking", | ||
"name": "Colin", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/2907397?v=4", | ||
"profile": "https://colinking.co/", | ||
"contributions": ["bug"] | ||
}, | ||
{ | ||
"login": "danvk", | ||
"name": "Dan Vanderkam", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/98301?v=4", | ||
"profile": "https://effectivetypescript.com/", | ||
"contributions": ["code", "maintenance"] | ||
}, | ||
{ | ||
"login": "ibezkrovnyi", | ||
"name": "Igor Bezkrovnyi", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/1188919?v=4", | ||
"profile": "https://github.com/ibezkrovnyi", | ||
"contributions": ["code", "maintenance"] | ||
}, | ||
{ | ||
"login": "JoshuaKGoldberg", | ||
"name": "Josh Goldberg ✨", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/3335181?v=4", | ||
"profile": "http://www.joshuakgoldberg.com/", | ||
"contributions": ["bug", "code", "doc", "maintenance"] | ||
}, | ||
{ | ||
"login": "nirtamir2", | ||
"name": "nirtamir2", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/16452789?v=4", | ||
"profile": "https://nirtamir.com/", | ||
"contributions": ["doc"] | ||
}, | ||
{ | ||
"login": "russelldavis", | ||
"name": "Russell Davis", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/551404?v=4", | ||
"profile": "https://twitter.com/_RussellDavis", | ||
"contributions": ["code"] | ||
}, | ||
{ | ||
"login": "TkDodo", | ||
"name": "Dominik Dorfmeister", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/1021430?v=4", | ||
"profile": "https://github.com/TkDodo", | ||
"contributions": ["doc"] | ||
} | ||
], | ||
"contributorsPerLine": 7, | ||
"contributorsSortAlphabetically": true, | ||
"files": ["README.md"], | ||
"imageSize": 100, | ||
"projectName": "eslint-plugin-expect-type", | ||
"projectOwner": "JoshuaKGoldberg", | ||
"repoHost": "https://github.com", | ||
"repoType": "github" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** @type {import('eslint-doc-generator').GenerateOptions} */ | ||
const config = { | ||
ruleDocTitleFormat: "prefix-name", | ||
}; | ||
|
||
module.exports = config; |
This file was deleted.
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,2 +1,5 @@ | ||
!.* | ||
coverage | ||
dist | ||
lib | ||
node_modules | ||
pnpm-lock.yaml |
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 |
---|---|---|
@@ -0,0 +1,148 @@ | ||
/** @type {import("@types/eslint").Linter.Config} */ | ||
module.exports = { | ||
env: { | ||
es2022: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:eslint-comments/recommended", | ||
"plugin:n/recommended", | ||
"plugin:perfectionist/recommended-natural", | ||
"plugin:regexp/recommended", | ||
"prettier", | ||
], | ||
overrides: [ | ||
{ | ||
extends: ["plugin:markdown/recommended"], | ||
files: ["**/*.md"], | ||
processor: "markdown/markdown", | ||
}, | ||
{ | ||
extends: [ | ||
"plugin:jsdoc/recommended-typescript-error", | ||
"plugin:@typescript-eslint/strict", | ||
"plugin:@typescript-eslint/stylistic", | ||
], | ||
files: ["**/*.ts"], | ||
parser: "@typescript-eslint/parser", | ||
rules: { | ||
// These off-by-default rules work well for this repo and we like them on. | ||
"jsdoc/informative-docs": "error", | ||
"logical-assignment-operators": [ | ||
"error", | ||
"always", | ||
{ enforceForIfStatements: true }, | ||
], | ||
"operator-assignment": "error", | ||
|
||
// These on-by-default rules don't work well for this repo and we like them off. | ||
"jsdoc/require-jsdoc": "off", | ||
"jsdoc/require-param": "off", | ||
"jsdoc/require-property": "off", | ||
"jsdoc/require-returns": "off", | ||
}, | ||
}, | ||
{ | ||
excludedFiles: ["**/*.md/*.ts"], | ||
extends: [ | ||
"plugin:@typescript-eslint/strict-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
], | ||
files: ["**/*.ts"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
project: "./tsconfig.eslint.json", | ||
}, | ||
rules: { | ||
// These off-by-default rules work well for this repo and we like them on. | ||
"deprecation/deprecation": "error", | ||
}, | ||
}, | ||
{ | ||
excludedFiles: ["package.json"], | ||
extends: ["plugin:jsonc/recommended-with-json"], | ||
files: ["*.json", "*.jsonc"], | ||
parser: "jsonc-eslint-parser", | ||
rules: { | ||
"jsonc/sort-keys": "error", | ||
}, | ||
}, | ||
{ | ||
files: ["*.jsonc", "tsconfig.json"], | ||
rules: { | ||
"jsonc/no-comments": "off", | ||
}, | ||
}, | ||
{ | ||
files: "**/*.test.ts", | ||
rules: { | ||
// These on-by-default rules aren't useful in test files. | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
}, | ||
}, | ||
|
||
{ | ||
extends: ["plugin:yml/standard", "plugin:yml/prettier"], | ||
files: ["**/*.{yml,yaml}"], | ||
parser: "yaml-eslint-parser", | ||
rules: { | ||
"yml/file-extension": ["error", { extension: "yml" }], | ||
"yml/sort-keys": [ | ||
"error", | ||
{ | ||
order: { type: "asc" }, | ||
pathPattern: "^.*$", | ||
}, | ||
], | ||
"yml/sort-sequence-values": [ | ||
"error", | ||
{ | ||
order: { type: "asc" }, | ||
pathPattern: "^.*$", | ||
}, | ||
], | ||
}, | ||
}, | ||
], | ||
parser: "@typescript-eslint/parser", | ||
plugins: [ | ||
"@typescript-eslint", | ||
"deprecation", | ||
"import", | ||
"jsdoc", | ||
"no-only-tests", | ||
"perfectionist", | ||
"regexp", | ||
"vitest", | ||
], | ||
reportUnusedDisableDirectives: true, | ||
root: true, | ||
rules: { | ||
// These off/less-strict-by-default rules work well for this repo and we like them on. | ||
"@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "all" }], | ||
"import/extensions": ["error", "ignorePackages"], | ||
"no-only-tests/no-only-tests": "error", | ||
|
||
// These on-by-default rules don't work well for this repo and we like them off. | ||
"n/no-missing-import": "off", | ||
"no-case-declarations": "off", | ||
"no-constant-condition": "off", | ||
"no-inner-declarations": "off", | ||
|
||
// Stylistic concerns that don't interfere with Prettier | ||
"@typescript-eslint/padding-line-between-statements": [ | ||
"error", | ||
{ blankLine: "always", next: "*", prev: "block-like" }, | ||
], | ||
"perfectionist/sort-objects": [ | ||
"error", | ||
{ | ||
order: "asc", | ||
"partition-by-comment": true, | ||
type: "natural", | ||
}, | ||
], | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.