Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 428f284

Browse files
committed
Properly declare the member functions
Function declaration using an arrow function in the global scope is invalid, and the cleaner transpilation in Atom v1.16.0 breaks on this method.
1 parent 9c24e12 commit 428f284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ export default {
4444
},
4545
},
4646

47-
activate: () => {
47+
activate() {
4848
require('atom-package-deps').install('linter-clang');
4949
},
5050

51-
provideLinter: () => {
51+
provideLinter() {
5252
const helpers = require('atom-linter');
5353
const clangFlags = require('clang-flags');
5454
const regex = '(?<file>.+):(?<line>\\d+):(?<col>\\d+):({(?<lineStart>\\d+):(?<colStart>\\d+)-(?<lineEnd>\\d+):(?<colEnd>\\d+)}.*:)? (?<type>[\\w \\-]+): (?<message>.*)';

0 commit comments

Comments
 (0)