• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

visgl / luma.gl / 4865098754

pending completion
4865098754

push

github

GitHub
feat: Switch to ES modules (#1745)

2486 of 3230 branches covered (76.97%)

Branch coverage included in aggregate %.

460 of 460 new or added lines in 139 files covered. (100.0%)

37485 of 49681 relevant lines covered (75.45%)

17.71 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

52.27
/dev-modules/eslint-plugin-luma-gl-custom-rules/check-log-call.js
1
const logFunctions = new Set([
1✔
2
  'warn',
1✔
3
  'error',
1✔
4
  'deprecated',
1✔
5
  'removed',
1✔
6
  'probe',
1✔
7
  'log',
1✔
8
  'info',
1✔
9
  'once',
1✔
10
  'table',
1✔
11
  'image',
1✔
12
  'time',
1✔
13
  'timeEnd',
1✔
14
  'timeStamp',
1✔
15
  'group',
1✔
16
  'groupCollapsed',
1✔
17
  'groupEnd',
1✔
18
  'withGroup'
1✔
19
]);
1✔
20

1✔
21
module.exports = {
1✔
22
  create: (context) => {
1✔
23
    return {
×
24
      CallExpression: (node) => {
×
25
        if (
×
26
          node.callee &&
×
27
          node.callee.object &&
×
28
          node.callee.object.name === 'log' &&
×
29
          logFunctions.has(node.callee.property.name) &&
×
30
          node.parent &&
×
31
          node.parent.type !== 'CallExpression'
×
32
        ) {
×
33
          context.report({
×
34
            node,
×
35
            message: `Use log.${node.callee.property.name}(...)()`,
×
36
            fix: (fixer) => {
×
37
              return fixer.insertTextAfter(node, '()');
×
38
            }
×
39
          });
×
40
        }
×
41
      }
×
42
    };
×
43
  }
×
44
};
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc