chore: add shared ESLint and Prettier configuration
Closes #615 - Add @probo/eslint-config package with ESLint 9.x flat config - Enhance @probo/prettier with aligned stylistic rules - Migrate console, trust, and UI packages to shared config - Remove duplicate ESLint dependencies from individual packages Signed-off-by: Yash Gupta <yash3144@gmail.com>
This commit is contained in:
@@ -1,27 +1,6 @@
|
||||
// @ts-check
|
||||
import { browser } from "@probo/eslint-config";
|
||||
|
||||
import js from "@eslint/js";
|
||||
import globals from "globals";
|
||||
import reactHooks from "eslint-plugin-react-hooks";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
export default tseslint.config(
|
||||
{ ignores: ["dist"] },
|
||||
{
|
||||
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
||||
files: ["**/*.{ts,tsx}"],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2020,
|
||||
globals: globals.browser,
|
||||
parserOptions: {
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
plugins: {
|
||||
"react-hooks": reactHooks,
|
||||
},
|
||||
rules: {
|
||||
...reactHooks.configs.recommended.rules,
|
||||
},
|
||||
}
|
||||
);
|
||||
export default [
|
||||
{ ignores: ["dist", "eslint.config.mjs", "*.config.{js,mjs,ts}"] },
|
||||
...browser(["./tsconfig.app.json", "./tsconfig.node.json"], import.meta.dirname),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user