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

Commit cc611a6

Browse files
greenkeeper[bot]Arcanemagus
authored andcommitted
Update dependencies to enable Greenkeeper 🌴 (#154)
* chore(package): update eslint to version 3.8.0 https://greenkeeper.io/ * chore(package): update dependencies https://greenkeeper.io/ * Update atom-linter to v9.0.0 Just a rename of `rangeFromLineNumber` to `generateRange`. * Update linting Update to the following and fix new issues introduced: * `eslint-config-airbnb-base@^11.1.0` * `eslint@^3.15.0` * `eslint-plugin-import@^2.2.0`
1 parent c00ae89 commit cc611a6

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

‎lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default {
1515
this.subscriptions.add(
1616
atom.config.observe('linter-csslint.disableTimeout', (value) => {
1717
this.disableTimeout = value;
18-
})
18+
}),
1919
);
2020
},
2121

@@ -85,7 +85,7 @@ export default {
8585
type: data.type.charAt(0).toUpperCase() + data.type.slice(1),
8686
text: data.message,
8787
filePath,
88-
range: helpers.rangeFromLineNumber(textEditor, line, col),
88+
range: helpers.generateRange(textEditor, line, col),
8989
};
9090

9191
if (data.rule.id && data.rule.desc) {

‎package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"atom": ">=1.4.0 <2.0.0"
2424
},
2525
"dependencies": {
26-
"atomlinter-csslint": "0.10.1",
27-
"atom-linter": "^8.0.0",
28-
"atom-package-deps": "^4.0.1"
26+
"atom-linter": "^9.0.0",
27+
"atom-package-deps": "^4.0.1",
28+
"atomlinter-csslint": "0.10.1"
2929
},
3030
"devDependencies": {
31-
"eslint": "^3.6.1",
32-
"eslint-config-airbnb-base": "^8.0.0",
33-
"eslint-plugin-import": "^1.16.0"
31+
"eslint": "^3.15.0",
32+
"eslint-config-airbnb-base": "^11.1.0",
33+
"eslint-plugin-import": "^2.2.0"
3434
},
3535
"package-deps": [
3636
"linter"

‎spec/linter-csslint-spec.js

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ describe('The csslint provider for Linter', () => {
1919
atom.packages.activatePackage('linter-csslint'),
2020
atom.packages.activatePackage('language-css'),
2121
]).then(() =>
22-
atom.workspace.open(goodPath)
23-
)
22+
atom.workspace.open(goodPath),
23+
),
2424
);
2525
});
2626

2727
describe('checks bad.css and', () => {
2828
let editor = null;
2929
beforeEach(() =>
3030
waitsForPromise(() =>
31-
atom.workspace.open(badPath).then((openEditor) => { editor = openEditor; })
32-
)
31+
atom.workspace.open(badPath).then((openEditor) => { editor = openEditor; }),
32+
),
3333
);
3434

3535
it('finds at least one message', () =>
3636
waitsForPromise(() =>
3737
lint(editor).then(messages =>
38-
expect(messages.length).toBeGreaterThan(0)
39-
)
40-
)
38+
expect(messages.length).toBeGreaterThan(0),
39+
),
40+
),
4141
);
4242

4343
it('verifies the first message', () =>
@@ -47,25 +47,25 @@ describe('The csslint provider for Linter', () => {
4747
expect(messages[0].text).toBe('Rule is empty.');
4848
expect(messages[0].filePath).toBe(badPath);
4949
expect(messages[0].range).toEqual([[0, 0], [0, 4]]);
50-
})
51-
)
50+
}),
51+
),
5252
);
5353
});
5454

5555
describe('warns on invalid CSS', () => {
5656
let editor = null;
5757
beforeEach(() =>
5858
waitsForPromise(() =>
59-
atom.workspace.open(invalidPath).then((openEditor) => { editor = openEditor; })
60-
)
59+
atom.workspace.open(invalidPath).then((openEditor) => { editor = openEditor; }),
60+
),
6161
);
6262

6363
it('finds one message', () =>
6464
waitsForPromise(() =>
6565
lint(editor).then(messages =>
66-
expect(messages.length).toBe(1)
67-
)
68-
)
66+
expect(messages.length).toBe(1),
67+
),
68+
),
6969
);
7070

7171
it('verifies the message', () =>
@@ -75,29 +75,29 @@ describe('The csslint provider for Linter', () => {
7575
expect(messages[0].text).toBe('Unexpected token \'}\' at line 1, col 1.');
7676
expect(messages[0].filePath).toBe(invalidPath);
7777
expect(messages[0].range).toEqual([[0, 0], [0, 1]]);
78-
})
79-
)
78+
}),
79+
),
8080
);
8181
});
8282

8383
it('finds nothing wrong with a valid file', () =>
8484
waitsForPromise(() =>
8585
atom.workspace.open(goodPath).then(editor =>
8686
lint(editor).then(messages =>
87-
expect(messages.length).toEqual(0)
88-
)
89-
)
90-
)
87+
expect(messages.length).toEqual(0),
88+
),
89+
),
90+
),
9191
);
9292

9393
it('handles an empty file', () =>
9494
waitsForPromise(() =>
9595
atom.workspace.open(emptyPath).then(editor =>
9696
lint(editor).then(messages =>
97-
expect(messages.length).toEqual(0)
98-
)
99-
)
100-
)
97+
expect(messages.length).toEqual(0),
98+
),
99+
),
100+
),
101101
);
102102

103103
it('respects .csslintrc configurations at the project root', () => {
@@ -109,8 +109,8 @@ describe('The csslint provider for Linter', () => {
109109
expect(messages[0].type).toEqual('Error');
110110
expect(messages[0].text).toBeDefined();
111111
expect(messages[0].text).toEqual('Rule is empty.');
112-
})
113-
)
112+
}),
113+
),
114114
);
115115
});
116116
});

0 commit comments

Comments
 (0)