-
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.
chore: update devDependencies to latest (#22)
## PR Checklist - [x] Addresses an existing open issue: fixes #21 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/emojipedia/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/emojipedia/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Updates only `devDependencies`, not `dependencies`. 💖
- Loading branch information
1 parent
a9e4c53
commit 7abfd2b
Showing
7 changed files
with
5,186 additions
and
5,697 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
npx lint-staged |
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
"packagejson", | ||
"Shortcode", | ||
"shortcodes", | ||
"tseslint", | ||
"tsup" | ||
] | ||
} |
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,139 @@ | ||
import eslint from "@eslint/js"; | ||
import comments from "@eslint-community/eslint-plugin-eslint-comments/configs"; | ||
import vitest from "@vitest/eslint-plugin"; | ||
import jsdoc from "eslint-plugin-jsdoc"; | ||
import jsonc from "eslint-plugin-jsonc"; | ||
import markdown from "eslint-plugin-markdown"; | ||
import n from "eslint-plugin-n"; | ||
import packageJson from "eslint-plugin-package-json/configs/recommended"; | ||
import perfectionist from "eslint-plugin-perfectionist"; | ||
import * as regexp from "eslint-plugin-regexp"; | ||
import yml from "eslint-plugin-yml"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: ["coverage", "lib", "node_modules", "pnpm-lock.yaml", "**/*.snap"], | ||
}, | ||
{ | ||
linterOptions: { | ||
reportUnusedDisableDirectives: "error", | ||
}, | ||
}, | ||
eslint.configs.recommended, | ||
...jsonc.configs["flat/recommended-with-json"], | ||
...markdown.configs.recommended, | ||
...yml.configs["flat/recommended"], | ||
...yml.configs["flat/prettier"], | ||
comments.recommended, | ||
jsdoc.configs["flat/recommended-typescript-error"], | ||
n.configs["flat/recommended"], | ||
packageJson, | ||
perfectionist.configs["recommended-natural"], | ||
regexp.configs["flat/recommended"], | ||
...tseslint.config({ | ||
extends: [ | ||
...tseslint.configs.strictTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
], | ||
files: ["**/*.js", "**/*.ts"], | ||
languageOptions: { | ||
parserOptions: { | ||
projectService: { | ||
allowDefaultProject: ["*.config.*"], | ||
}, | ||
tsconfigRootDir: import.meta.dirname, | ||
}, | ||
}, | ||
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", | ||
"no-constant-condition": "off", | ||
|
||
// These on-by-default rules work well for this repo if configured | ||
"@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "all" }], | ||
"@typescript-eslint/prefer-nullish-coalescing": [ | ||
"error", | ||
{ | ||
ignorePrimitives: { string: true }, | ||
}, | ||
], | ||
"perfectionist/sort-objects": [ | ||
"error", | ||
{ | ||
order: "asc", | ||
partitionByComment: true, | ||
type: "natural", | ||
}, | ||
], | ||
|
||
// Stylistic concerns that don't interfere with Prettier | ||
"no-useless-rename": "error", | ||
"object-shorthand": "error", | ||
}, | ||
}), | ||
{ | ||
files: ["*.jsonc"], | ||
rules: { | ||
"jsonc/comma-dangle": "off", | ||
"jsonc/no-comments": "off", | ||
"jsonc/sort-keys": "error", | ||
}, | ||
}, | ||
{ | ||
extends: [tseslint.configs.disableTypeChecked], | ||
files: ["**/*.md/*.ts"], | ||
rules: { | ||
"n/no-missing-import": [ | ||
"error", | ||
{ allowModules: ["get-github-auth-token"] }, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.test.*"], | ||
languageOptions: { | ||
globals: vitest.environments.env.globals, | ||
}, | ||
plugins: { vitest }, | ||
rules: { | ||
...vitest.configs.recommended.rules, | ||
|
||
// These on-by-default rules aren't useful in test files. | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
}, | ||
}, | ||
{ | ||
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: "^.*$", | ||
}, | ||
], | ||
}, | ||
}, | ||
); |
Oops, something went wrong.