UXP Toolkit
    Preparing search index...

    Module @bubblydoo/eslint-plugin-uxp - v0.0.3

    @bubblydoo/eslint-plugin-uxp

    Custom ESLint plugin for UXP development with Photoshop.

    pnpm add -D @bubblydoo/eslint-plugin-uxp
    
    import uxpPlugin from '@bubblydoo/eslint-plugin-uxp';

    export default [
    {
    plugins: {
    uxp: uxpPlugin,
    },
    rules: {
    'uxp/no-constants-import': 'error',
    },
    },
    // Or use the recommended config
    uxpPlugin.configs.recommended,
    ];
    {
    "plugins": ["@bubblydoo/uxp"],
    "rules": {
    "@bubblydoo/uxp/no-constants-import": "error"
    }
    }

    Disallows importing from "photoshop/dom/Constants".

    ❌ Incorrect:

    import { BlendMode } from 'photoshop/dom/Constants';
    
    const { BlendMode } = require('photoshop/dom/Constants');
    

    ✅ Correct:

    import { constants } from 'photoshop';

    const { BlendMode } = constants;
    const { constants } = require('photoshop');

    const { BlendMode } = constants;

    MIT

    Variables

    default