Update rules

This commit is contained in:
Alex
2024-08-25 16:28:34 -04:00
parent b0cc4a1525
commit 0138cabb27
18 changed files with 325 additions and 236 deletions

4
dist/index.d.ts vendored
View File

@ -42,6 +42,8 @@ export interface LocalRuleOptions {
}>;
/** Ban assignment of empty object literals `{}` and replace them with `Object.create(null)` */
"custom/no-empty-object-literal": RuleEntry<unknown>;
/** Ban useless import alias */
"custom/no-useless-import-alias": RuleEntry<unknown>;
}
export type RuleOptions = Rules & Partial<LocalRuleOptions>;
export interface CustomRule {
@ -64,6 +66,8 @@ export type InputConfig = Omit<ESLintConfig, "rules"> & {
* Glob pattern to find paths to custom rule files in JavaScript or TypeScript.
* Note this must be a string literal or an array of string literals since
* this is statically analyzed.
*
* Rules are prefixed with `custom/` and the file name is used as the rule name.
*/
customRuleFiles?: string | string[];
/**

30
dist/package.json vendored
View File

@ -1,6 +1,6 @@
{
"name": "@aet/eslint-rules",
"version": "1.0.1-beta.28",
"version": "1.0.1-beta.42",
"license": "UNLICENSED",
"bin": {
"eslint-install": "install.js",
@ -10,19 +10,21 @@
"eslint": "^8.57.0",
"typescript": "^5.4.4"
},
"optionalDependencies": {
"@tanstack/eslint-plugin-query": "^5.52.0"
},
"dependencies": {
"@antfu/install-pkg": "^0.3.4",
"@antfu/install-pkg": "^0.4.0",
"@nolyfill/is-core-module": "^1.0.39",
"@aet/eslint-define-config": "^0.1.0-beta.22",
"@aet/eslint-define-config": "^0.1.0-beta.24",
"@eslint-community/eslint-utils": "^4.4.0",
"@tanstack/eslint-plugin-query": "^5.51.15",
"@types/eslint": "^9.6.0",
"@typescript-eslint/eslint-plugin": "^8.1.0",
"@typescript-eslint/parser": "^8.1.0",
"@typescript-eslint/type-utils": "^8.1.0",
"@typescript-eslint/utils": "^8.1.0",
"@eslint-react/eslint-plugin": "1.10.0",
"@stylistic/eslint-plugin": "^2.6.2",
"@typescript-eslint/eslint-plugin": "^8.2.0",
"@typescript-eslint/parser": "^8.2.0",
"@typescript-eslint/type-utils": "^8.2.0",
"@typescript-eslint/utils": "^8.2.0",
"@eslint-react/eslint-plugin": "1.12.1",
"@stylistic/eslint-plugin": "^2.6.4",
"aria-query": "^5.3.0",
"axe-core": "^4.10.0",
"axobject-query": "4.1.0",
@ -36,16 +38,16 @@
"eslint-module-utils": "^2.8.1",
"eslint-plugin-es-x": "^8.0.0",
"eslint-plugin-import-x": "^3.1.0",
"eslint-plugin-jsdoc": "^50.0.1",
"eslint-plugin-react-refresh": "^0.4.9",
"eslint-plugin-jsdoc": "^50.2.2",
"eslint-plugin-react-refresh": "^0.4.11",
"eslint-plugin-unicorn": "^55.0.0",
"esprima": "^4.0.1",
"esquery": "^1.6.0",
"estraverse": "^5.3.0",
"fast-glob": "^3.3.2",
"get-tsconfig": "^4.7.6",
"is-bun-module": "^1.0.2",
"ignore": "^5.3.1",
"is-bun-module": "^1.1.0",
"ignore": "^5.3.2",
"is-glob": "^4.0.3",
"language-tags": "^1.0.9",
"lodash": "^4.17.21",