@lightbase/eslint-config
Advanced tools
@@ -206,3 +206,3 @@ import type { FlatConfig } from "@typescript-eslint/utils/ts-eslint"; | ||
}) | undefined)?], import("@typescript-eslint/utils/ts-eslint").RuleListener>; | ||
"dynamic-import-chunkname": import("@typescript-eslint/utils/ts-eslint").RuleModule<"leadingComment" | "blockComment" | "paddedSpaces" | "webpackComment" | "chunknameFormat", [({ | ||
"dynamic-import-chunkname": import("@typescript-eslint/utils/ts-eslint").RuleModule<"leadingComment" | "blockComment" | "paddedSpaces" | "webpackComment" | "chunknameFormat" | "webpackEagerModeNoChunkName" | "webpackRemoveEagerMode" | "webpackRemoveChunkName", [({ | ||
allowEmpty?: boolean | undefined; | ||
@@ -209,0 +209,0 @@ importFunctions?: readonly string[] | undefined; |
@@ -15,4 +15,4 @@ import type { FlatConfig } from "@typescript-eslint/utils/ts-eslint"; | ||
*/ | ||
export declare function defineConfig(opts: LightbaseEslintConfigOptions, ...userConfigs: Array<FlatConfig.Config>): Promise<Array<FlatConfig.Config>>; | ||
export declare function defineConfig(opts?: LightbaseEslintConfigOptions, ...userConfigs: Array<FlatConfig.Config>): Promise<Array<FlatConfig.Config>>; | ||
export {}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -16,2 +16,3 @@ import gitignore from "eslint-config-flat-gitignore"; | ||
globUseFromUserConfig(...userConfigs); | ||
opts ??= {}; | ||
opts.typescript = typescriptResolveConfig(opts.typescript); | ||
@@ -18,0 +19,0 @@ // Only load React + related plugins if necessary. This adds quite the startup penalty otherwise. |
@@ -52,4 +52,3 @@ // @ts-expect-error no type defs | ||
"react/prop-types": "off", | ||
...pluginJSXA11y.configs?.recommended?.rules, | ||
"jsx-a11y/anchor-is-valid": "off", | ||
...pluginJSXA11y.configs?.strict?.rules, | ||
"react-hooks/rules-of-hooks": "error", | ||
@@ -56,0 +55,0 @@ "react-hooks/exhaustive-deps": "error", |
import type { FlatConfig } from "@typescript-eslint/utils/ts-eslint"; | ||
export type TypeScriptConfig = boolean | { | ||
projectService?: boolean; | ||
/** | ||
* Compatibility path; we will over-time ignore this option to slowly migrate projects to use | ||
* all recommended type-checked rules. | ||
*/ | ||
disableTypeCheckedRules?: boolean; | ||
@@ -5,0 +9,0 @@ }; |
{ | ||
"name": "@lightbase/eslint-config", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "ESLint based linting and formatting configuration", | ||
@@ -12,3 +12,3 @@ "type": "module", | ||
"type": "git", | ||
"url": "https://github.com/lightbasenl/platforms", | ||
"url": "git+https://github.com/lightbasenl/platforms.git", | ||
"directory": "packages/eslint-config" | ||
@@ -28,4 +28,3 @@ }, | ||
"lint:ci": "eslint .", | ||
"pretest": "npm run build", | ||
"test": "node --test", | ||
"test": "vitest", | ||
"clean": "rm -rf ./.cache ./dist" | ||
@@ -35,3 +34,3 @@ }, | ||
"@eslint/js": "8.57.0", | ||
"@typescript-eslint/utils": "7.14.1", | ||
"@typescript-eslint/utils": "7.15.0", | ||
"diff-match-patch": "1.0.5", | ||
@@ -44,10 +43,10 @@ "eslint": "8.57.0", | ||
"eslint-plugin-file-progress": "1.4.0", | ||
"eslint-plugin-import-x": "0.5.2", | ||
"eslint-plugin-jsdoc": "48.4.0", | ||
"eslint-plugin-import-x": "0.5.3", | ||
"eslint-plugin-jsdoc": "48.5.0", | ||
"eslint-plugin-markdown": "5.0.0", | ||
"eslint-plugin-unused-imports": "3.2.0", | ||
"globals": "15.6.0", | ||
"globals": "15.8.0", | ||
"prettier": "3.3.2", | ||
"synckit": "0.9.0", | ||
"typescript-eslint": "7.14.1" | ||
"typescript-eslint": "7.15.0" | ||
}, | ||
@@ -85,3 +84,3 @@ "peerDependencies": { | ||
"eslint-plugin-jsx-a11y": "6.9.0", | ||
"eslint-plugin-no-relative-import-paths": "1.5.4", | ||
"eslint-plugin-no-relative-import-paths": "1.5.5", | ||
"eslint-plugin-react": "7.34.3", | ||
@@ -88,0 +87,0 @@ "eslint-plugin-react-hooks": "4.6.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
137274
0.14%2035
0.2%