Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/eslint-plugin-react/lib/rules/jsx-fragments.js

    rd565449 r0c6b92a  
    2323
    2424const messages = {
    25   fragmentsNotSupported: 'Fragments are only supported starting from React v16.2. '
    26     + 'Please disable the `react/jsx-fragments` rule in `eslint` settings or upgrade your version of React.',
     25  fragmentsNotSupported: 'Fragments are only supported starting from React v16.2. Please disable the `react/jsx-fragments` rule in `eslint` settings or upgrade your version of React.',
    2726  preferPragma: 'Prefer {{react}}.{{fragment}} over fragment shorthand',
    2827  preferFragment: 'Prefer fragment shorthand over {{react}}.{{fragment}}',
    2928};
    3029
     30/** @type {import('eslint').Rule.RuleModule} */
    3131module.exports = {
    3232  meta: {
     
    171171        if (node.source && node.source.value === 'react') {
    172172          node.specifiers.forEach((spec) => {
    173             if (spec.imported && spec.imported.name === fragmentPragma) {
     173            if ('imported' in spec && spec.imported && spec.imported.name === fragmentPragma) {
    174174              if (spec.local) {
    175175                fragmentNames.add(spec.local.name);
Note: See TracChangeset for help on using the changeset viewer.