GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cloudinary_wordpress/eslint.config.js at master · cloudinary/cloudinary_wordpress Expand file tree/ Copy patheslint.config.jsMore file actions 74 lines (72 loc) · 1.93 KB / Copy patheslint.config.jsFile metadata and controls74 lines (72 loc) · 1.93 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 const globals = require( 'globals' ); const wpPlugin = require( '@wordpress/eslint-plugin' ); // eslint-import-resolver-typescript v4+ is incompatible with eslint-plugin-import // (throws "invalid interface loaded as resolver"), and this project has no TypeScript // anyway, so strip the typescript resolver that @wordpress/eslint-plugin configures. const recommended = wpPlugin.configs.recommended.map( ( config ) => { if ( ! config.settings || ! config.settings[ 'import/resolver' ] ) { return config; } const { typescript, ...resolver } = config.settings[ 'import/resolver' ]; return { ...config, settings: { ...config.settings, 'import/resolver': resolver, }, }; } ); module.exports = [ { ignores: [ '**/build/**', '**/built/**', '**/node_modules/**', '**/vendor/**', 'js/**', '**/*.min.js', // Vendored third-party library (https://github.com/kallookoo/wp-color-picker-alpha). 'src/js/wp-color-picker-alpha.js', ], }, ...recommended, { settings: { 'import/resolver': { node: true, }, }, languageOptions: { globals: { ...globals.browser, cloudinary: 'readonly', jQuery: 'readonly', $: 'readonly', CLDN: 'readonly', CLDLB: 'readonly', CLD_GLOBAL_TRANSFORMATIONS: 'readonly', samplePlayer: 'readonly', CLDCACHE: 'readonly', cldData: 'readonly', CLD_METADATA: 'readonly', CLDASSETS: 'readonly', }, }, rules: { 'no-alert': 'off', 'no-console': 'off', 'no-unused-vars': 'off', 'no-nested-ternary': 'off', 'jsx-a11y/click-events-have-key-events': 'off', 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', '@wordpress/no-global-event-listener': 'off', // CLD_Deactivate is a wp_localize_script object name (php/class-deactivation.php); // renaming it would require a matching PHP-side change. camelcase: [ 'error', { properties: 'never', allow: [ '^CLD_Deactivate$' ] }, ], }, }, ]; |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |