UNPKG

@flizpay-de/eslint

Version:

Shared ESLint flat-config for FlizPay projects

34 lines (30 loc) 950 B
import base from "./base.js"; import { FlatCompat } from "@eslint/eslintrc"; const compat = new FlatCompat(); const reactNativeOverlay = [ ...compat.extends( "plugin:react/recommended", "plugin:react-hooks/recommended", "plugin:react-native/all" ), ...compat.config({ plugins: ["react", "react-hooks", "react-native"], env: { "react-native/react-native": true }, settings: { react: { version: "detect" } }, }), { rules: { "react/react-in-jsx-scope": "off", "react/jsx-uses-react": "off", "react-native/sort-styles": "off", "react-native/no-color-literals": "off", "react-native/no-inline-styles": "off", "react-hooks/exhaustive-deps": "off", "react-native/no-raw-text": [ "error", { skip: ["Typography"] }, // ⬅️ mark custom text components ], }, }, ]; export default [...base, ...reactNativeOverlay];