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

Commit b3a79d9

Browse files
authored
Merge pull request #98 from AtomLinter/renovate/eslint-config-airbnb-base-13.x
chore(deps): update dependency eslint-config-airbnb-base to v13
2 parents 08e1b47 + 6fbd9ec commit b3a79d9

File tree

3 files changed

+131
-29
lines changed

3 files changed

+131
-29
lines changed

package-lock.json

Lines changed: 106 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"devDependencies": {
3333
"eslint": "4.19.1",
34-
"eslint-config-airbnb-base": "12.1.0",
34+
"eslint-config-airbnb-base": "13.1.0",
3535
"eslint-plugin-import": "2.15.0"
3636
},
3737
"eslintConfig": {

spec/linter-jsonlint-spec.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,47 +10,47 @@ describe('The jsonlint provider for Linter', () => {
1010

1111
beforeEach(() => {
1212
atom.workspace.destroyActivePaneItem();
13-
waitsForPromise(() =>
14-
Promise.all([
15-
atom.packages.activatePackage('linter-jsonlint'),
16-
atom.packages.activatePackage('language-json')
17-
]));
13+
waitsForPromise(() => Promise.all([
14+
atom.packages.activatePackage('linter-jsonlint'),
15+
atom.packages.activatePackage('language-json')
16+
]));
1817
});
1918

2019
describe('checks bad.md and', () => {
2120
let editor = null;
2221
beforeEach(() => {
23-
waitsForPromise(() =>
24-
atom.workspace.open(badPath).then((openEditor) => {
25-
editor = openEditor;
26-
}));
22+
waitsForPromise(() => atom.workspace.open(badPath).then((openEditor) => {
23+
editor = openEditor;
24+
}));
2725
});
2826

2927
it('finds at least one message', () => {
30-
waitsForPromise(() =>
31-
lint(editor).then(messages => expect(messages.length).toBeGreaterThan(0)));
28+
waitsForPromise(() => lint(editor).then((messages) => {
29+
expect(messages.length).toBeGreaterThan(0);
30+
}));
3231
});
3332

3433
it('verifies the first message', () => {
35-
waitsForPromise(() =>
36-
lint(editor).then((messages) => {
37-
expect(messages[0].severity).toEqual('error');
38-
expect(messages[0].excerpt).toEqual(`Parse error on line 2:
34+
waitsForPromise(() => lint(editor).then((messages) => {
35+
expect(messages[0].severity).toEqual('error');
36+
expect(messages[0].excerpt).toEqual(`Parse error on line 2:
3937
{ "key": 1 + 2}
4038
------------^
4139
Expecting 'EOF', '}', ',', ']', got 'undefined'`);
42-
expect(messages[0].location.file).toMatch(/.+bad\.json$/);
43-
expect(messages[0].location.position).toEqual({
44-
start: { row: 2, column: 0 },
45-
end: { row: 2, column: 1 }
46-
});
47-
}));
40+
expect(messages[0].location.file).toMatch(/.+bad\.json$/);
41+
expect(messages[0].location.position).toEqual({
42+
start: { row: 2, column: 0 },
43+
end: { row: 2, column: 1 }
44+
});
45+
}));
4846
});
4947
});
5048

5149
it('finds nothing wrong with a valid file', () => {
52-
waitsForPromise(() =>
53-
atom.workspace.open(goodPath).then(editor =>
54-
lint(editor).then(messages => expect(messages.length).toEqual(0))));
50+
waitsForPromise(() => atom.workspace.open(goodPath).then((editor) => {
51+
lint(editor).then((messages) => {
52+
expect(messages.length).toEqual(0);
53+
});
54+
}));
5555
});
5656
});

0 commit comments

Comments
 (0)