Path: blob/master/src/packages/static/eslint.config.js
5700 views
import tsParser from "@typescript-eslint/parser";1import reactHooks from "eslint-plugin-react-hooks";23export default [4{5ignores: [6"**/node_modules/**",7"**/dist/**",8"**/dist-ts/**",9"**/dist-measure/**",10"**/dist-prod/**",11"**/dist-prod-measure/**",12],13},14{15files: ["**/*.{js,jsx,ts,tsx}"],16languageOptions: {17ecmaVersion: "latest",18sourceType: "module",19parserOptions: {20ecmaFeatures: {21jsx: true,22},23},24},25plugins: {26"react-hooks": reactHooks,27},28rules: {29"react-hooks/rules-of-hooks": "error",30"react-hooks/exhaustive-deps": "error",31},32},33{34files: ["**/*.{ts,tsx}"],35languageOptions: {36parser: tsParser,37},38},39];404142