|
| 1 | +--- |
| 2 | +source: crates/oxc_linter/src/tester.rs |
| 3 | +--- |
| 4 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 5 | + ╭─[no_named_export.tsx:1:1] |
| 6 | + 1 │ export const foo = 'foo'; |
| 7 | + · ───────────────────────── |
| 8 | + ╰──── |
| 9 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 10 | + |
| 11 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 12 | + ╭─[no_named_export.tsx:2:13] |
| 13 | + 1 │ |
| 14 | + 2 │ export const foo = 'foo'; |
| 15 | + · ───────────────────────── |
| 16 | + 3 │ export default bar; |
| 17 | + ╰──── |
| 18 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 19 | + |
| 20 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 21 | + ╭─[no_named_export.tsx:2:13] |
| 22 | + 1 │ |
| 23 | + 2 │ export const foo = 'foo'; |
| 24 | + · ───────────────────────── |
| 25 | + 3 │ export function bar() {}; |
| 26 | + ╰──── |
| 27 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 28 | + |
| 29 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 30 | + ╭─[no_named_export.tsx:3:13] |
| 31 | + 2 │ export const foo = 'foo'; |
| 32 | + 3 │ export function bar() {}; |
| 33 | + · ──────────────────────── |
| 34 | + 4 │ |
| 35 | + ╰──── |
| 36 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 37 | + |
| 38 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 39 | + ╭─[no_named_export.tsx:1:1] |
| 40 | + 1 │ export const foo = 'foo'; |
| 41 | + · ───────────────────────── |
| 42 | + ╰──── |
| 43 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 44 | + |
| 45 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 46 | + ╭─[no_named_export.tsx:3:13] |
| 47 | + 2 │ const foo = 'foo'; |
| 48 | + 3 │ export { foo }; |
| 49 | + · ─────────────── |
| 50 | + 4 │ |
| 51 | + ╰──── |
| 52 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 53 | + |
| 54 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 55 | + ╭─[no_named_export.tsx:1:15] |
| 56 | + 1 │ let foo, bar; export { foo, bar } |
| 57 | + · ─────────────────── |
| 58 | + ╰──── |
| 59 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 60 | + |
| 61 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 62 | + ╭─[no_named_export.tsx:1:1] |
| 63 | + 1 │ export const { foo, bar } = item; |
| 64 | + · ───────────────────────────────── |
| 65 | + ╰──── |
| 66 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 67 | + |
| 68 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 69 | + ╭─[no_named_export.tsx:1:1] |
| 70 | + 1 │ export const { foo, bar: baz } = item; |
| 71 | + · ────────────────────────────────────── |
| 72 | + ╰──── |
| 73 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 74 | + |
| 75 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 76 | + ╭─[no_named_export.tsx:1:1] |
| 77 | + 1 │ export const { foo: { bar, baz } } = item; |
| 78 | + · ────────────────────────────────────────── |
| 79 | + ╰──── |
| 80 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 81 | + |
| 82 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 83 | + ╭─[no_named_export.tsx:3:13] |
| 84 | + 2 │ let item; |
| 85 | + 3 │ export const foo = item; |
| 86 | + · ──────────────────────── |
| 87 | + 4 │ export { item }; |
| 88 | + ╰──── |
| 89 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 90 | + |
| 91 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 92 | + ╭─[no_named_export.tsx:4:13] |
| 93 | + 3 │ export const foo = item; |
| 94 | + 4 │ export { item }; |
| 95 | + · ──────────────── |
| 96 | + 5 │ |
| 97 | + ╰──── |
| 98 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 99 | + |
| 100 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 101 | + ╭─[no_named_export.tsx:1:1] |
| 102 | + 1 │ export * from './foo'; |
| 103 | + · ────────────────────── |
| 104 | + ╰──── |
| 105 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 106 | + |
| 107 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 108 | + ╭─[no_named_export.tsx:1:1] |
| 109 | + 1 │ export const { foo } = { foo: 'bar' }; |
| 110 | + · ────────────────────────────────────── |
| 111 | + ╰──── |
| 112 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 113 | + |
| 114 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 115 | + ╭─[no_named_export.tsx:1:1] |
| 116 | + 1 │ export const { foo: { bar } } = { foo: { bar: 'baz' } }; |
| 117 | + · ──────────────────────────────────────────────────────── |
| 118 | + ╰──── |
| 119 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 120 | + |
| 121 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 122 | + ╭─[no_named_export.tsx:1:1] |
| 123 | + 1 │ export { a, b } from 'foo.js' |
| 124 | + · ───────────────────────────── |
| 125 | + ╰──── |
| 126 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 127 | + |
| 128 | + ⚠ eslint-plugin-import(no-named-export): Named exports are not allowed. |
| 129 | + ╭─[no_named_export.tsx:1:1] |
| 130 | + 1 │ export type UserId = number; |
| 131 | + · ──────────────────────────── |
| 132 | + ╰──── |
| 133 | + help: Replace named exports with a single export default to ensure a consistent module entry point. |
| 134 | + |
| 135 | + × Unexpected token |
| 136 | + ╭─[no_named_export.tsx:1:8] |
| 137 | + 1 │ export foo from 'foo.js' |
| 138 | + · ─── |
| 139 | + ╰──── |
| 140 | + |
| 141 | + × Unexpected token |
| 142 | + ╭─[no_named_export.tsx:1:8] |
| 143 | + 1 │ export Memory, { MemoryValue } from './Memory' |
| 144 | + · ────── |
| 145 | + ╰──── |
0 commit comments