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

Commit f074e04

Browse files
greenkeeperio-botArcanemagus
authored andcommitted
Update eslint-config-airbnb-base to version 7.1.0 🚀 (#66)
* chore(package): update eslint-config-airbnb-base to version 7.1.0 * Fix lint issues * Update eslint and eslint-plugin-import for peerDependencies These are the minimum versions required by [email protected].
1 parent 6392cf5 commit f074e04

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

‎lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function provideLinter() {
1515
grammarScopes: ['source.json'],
1616
scope: 'file',
1717
lintOnFly: true,
18-
lint: editor => {
18+
lint: (editor) => {
1919
const path = editor.getPath();
2020
const text = editor.getText();
2121

‎package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
"jsonlint": "~1.6.2"
3131
},
3232
"devDependencies": {
33-
"eslint": "^3.0.1",
34-
"eslint-config-airbnb-base": "^5.0.3",
35-
"eslint-plugin-import": "^1.10.2"
33+
"eslint": "^3.5.0",
34+
"eslint-config-airbnb-base": "^7.1.0",
35+
"eslint-plugin-import": "^1.14.0"
3636
},
3737
"eslintConfig": {
3838
"rules": {

‎spec/linter-jsonlint-spec.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,21 @@ describe('The jsonlint provider for Linter', () => {
2222
let editor = null;
2323
beforeEach(() => {
2424
waitsForPromise(() =>
25-
atom.workspace.open(badPath).then(openEditor => {
25+
atom.workspace.open(badPath).then((openEditor) => {
2626
editor = openEditor;
2727
})
2828
);
2929
});
3030

3131
it('finds at least one message', () => {
3232
waitsForPromise(() =>
33-
lint(editor).then(messages => {
34-
expect(messages.length).toBeGreaterThan(0);
35-
})
33+
lint(editor).then(messages => expect(messages.length).toBeGreaterThan(0))
3634
);
3735
});
3836

3937
it('verifies the first message', () => {
4038
waitsForPromise(() =>
41-
lint(editor).then(messages => {
39+
lint(editor).then((messages) => {
4240
expect(messages[0].type).toEqual('Error');
4341
expect(messages[0].text).toEqual(`Parse error on line 2:
4442
{ "key": 1 + 2}
@@ -57,9 +55,7 @@ Expecting 'EOF', '}', ',', ']', got 'undefined'`);
5755
it('finds nothing wrong with a valid file', () => {
5856
waitsForPromise(() =>
5957
atom.workspace.open(goodPath).then(editor =>
60-
lint(editor).then(messages => {
61-
expect(messages.length).toEqual(0);
62-
})
58+
lint(editor).then(messages => expect(messages.length).toEqual(0))
6359
)
6460
);
6561
});

0 commit comments

Comments
 (0)