Skip to content

Commit

Permalink
build: migrate to create-typescript-app@1
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Sep 5, 2023
1 parent ea38ac0 commit aa21b1d
Show file tree
Hide file tree
Showing 83 changed files with 11,186 additions and 12,419 deletions.
71 changes: 71 additions & 0 deletions .all-contributorsrc
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"
}
6 changes: 6 additions & 0 deletions .eslint-doc-generatorrc.cjs
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;
4 changes: 0 additions & 4 deletions .eslint-doc-generatorrc.js

This file was deleted.

5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
!.*
coverage
dist
lib
node_modules
pnpm-lock.yaml
148 changes: 148 additions & 0 deletions .eslintrc.cjs
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",
},
],
},
};
25 changes: 0 additions & 25 deletions .eslintrc.json

This file was deleted.

Loading

0 comments on commit aa21b1d

Please sign in to comment.