generated from JoshuaKGoldberg/create-typescript-app
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: updated all devDependencies to latest (December 2024)
- Loading branch information
Showing
11 changed files
with
327 additions
and
889 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 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,27 +1,19 @@ | ||
{ | ||
"dictionaries": ["typescript"], | ||
"ignorePaths": [ | ||
".github", | ||
"CHANGELOG.md", | ||
"coverage", | ||
"lib", | ||
"node_modules", | ||
"pnpm-lock.yaml" | ||
], | ||
"words": [ | ||
"Codecov", | ||
"codespace", | ||
"commitlint", | ||
"contributorsrc", | ||
"conventionalcommits", | ||
"allcontributors", | ||
"apexskier", | ||
"automerge", | ||
"knip", | ||
"lcov", | ||
"markdownlintignore", | ||
"npmpackagejsonlintrc", | ||
"outro", | ||
"packagejson", | ||
"quickstart", | ||
"tsup", | ||
"wontfix" | ||
"mtfoley", | ||
"tada", | ||
"tseslint" | ||
] | ||
} |
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,101 @@ | ||
const comments = require("@eslint-community/eslint-plugin-eslint-comments/configs"); | ||
const eslint = require("@eslint/js"); | ||
const vitest = require("@vitest/eslint-plugin"); | ||
const jsdoc = require("eslint-plugin-jsdoc"); | ||
const jsonc = require("eslint-plugin-jsonc"); | ||
const markdown = require("eslint-plugin-markdown"); | ||
const n = require("eslint-plugin-n"); | ||
const { | ||
default: packageJson, | ||
} = require("eslint-plugin-package-json/configs/recommended"); | ||
const perfectionist = require("eslint-plugin-perfectionist"); | ||
const regexp = require("eslint-plugin-regexp"); | ||
const yml = require("eslint-plugin-yml"); | ||
const tseslint = require("typescript-eslint"); | ||
|
||
module.exports = tseslint.config( | ||
{ | ||
ignores: ["**/*.snap", "coverage", "lib", "node_modules", "pnpm-lock.yaml"], | ||
}, | ||
{ linterOptions: { reportUnusedDisableDirectives: "error" } }, | ||
eslint.configs.recommended, | ||
comments.recommended, | ||
jsdoc.configs["flat/contents-typescript-error"], | ||
jsdoc.configs["flat/logical-typescript-error"], | ||
jsdoc.configs["flat/stylistic-typescript-error"], | ||
jsonc.configs["flat/recommended-with-json"], | ||
markdown.configs.recommended, | ||
n.configs["flat/recommended"], | ||
packageJson, | ||
perfectionist.configs["recommended-natural"], | ||
regexp.configs["flat/recommended"], | ||
{ | ||
extends: [ | ||
tseslint.configs.strictTypeChecked, | ||
tseslint.configs.stylisticTypeChecked, | ||
], | ||
files: ["**/*.js", "**/*.ts"], | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: { allowDefaultProject: ["*.config.*s"] }, | ||
tsconfigRootDir: __dirname, | ||
}, | ||
}, | ||
rules: { | ||
"@typescript-eslint/no-unnecessary-condition": [ | ||
"error", | ||
{ allowConstantLoopConditions: true }, | ||
], | ||
|
||
// Stylistic concerns that don't interfere with Prettier | ||
"logical-assignment-operators": [ | ||
"error", | ||
"always", | ||
{ enforceForIfStatements: true }, | ||
], | ||
"no-useless-rename": "error", | ||
"object-shorthand": "error", | ||
"operator-assignment": "error", | ||
}, | ||
settings: { perfectionist: { partitionByComment: true, type: "natural" } }, | ||
}, | ||
{ | ||
extends: [tseslint.configs.disableTypeChecked], | ||
files: ["**/*.js"], | ||
rules: { | ||
"@typescript-eslint/no-require-imports": "off", | ||
}, | ||
}, | ||
{ | ||
extends: [tseslint.configs.disableTypeChecked], | ||
files: ["**/*.md/*.ts"], | ||
rules: { | ||
"n/no-missing-import": [ | ||
"error", | ||
{ allowModules: ["cspell-populate-words"] }, | ||
], | ||
}, | ||
}, | ||
{ | ||
extends: [vitest.configs.recommended], | ||
files: ["**/*.test.*"], | ||
rules: { | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
}, | ||
}, | ||
{ | ||
extends: [yml.configs["flat/recommended"], yml.configs["flat/prettier"]], | ||
files: ["**/*.{yml,yaml}"], | ||
rules: { | ||
"yml/file-extension": ["error", { extension: "yml" }], | ||
"yml/sort-keys": [ | ||
"error", | ||
{ order: { type: "asc" }, pathPattern: "^.*$" }, | ||
], | ||
"yml/sort-sequence-values": [ | ||
"error", | ||
{ order: { type: "asc" }, pathPattern: "^.*$" }, | ||
], | ||
}, | ||
}, | ||
); |
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,7 +1,6 @@ | ||
{ | ||
"$schema": "https://unpkg.com/knip@latest/schema.json", | ||
"entry": ["src/index.ts!"], | ||
"ignoreDependencies": ["sentences-per-line"], | ||
"ignoreExportsUsedInFile": { "interface": true, "type": true }, | ||
"project": ["src/**/*.ts!"], | ||
"project": ["src/**/*.ts!"] | ||
} |
Oops, something went wrong.