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

Commit

Permalink
Merge pull request #72 from AtomLinter/greenkeeper/eslint-4.1.0
Browse files Browse the repository at this point in the history
Update eslint to the latest version 🚀
  • Loading branch information
Arcanemagus authored Jul 25, 2017
2 parents ea0adbc + a610c60 commit b48274a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"linter:2.0.0"
],
"devDependencies": {
"eslint": "^3.16.1",
"eslint-config-airbnb-base": "^11.1.1",
"eslint-plugin-import": "^2.2.0"
"eslint": "^4.3.0",
"eslint-config-airbnb-base": "^11.3.1",
"eslint-plugin-import": "^2.7.0"
},
"eslintConfig": {
"extends": "airbnb-base",
Expand Down
24 changes: 12 additions & 12 deletions spec/linter-codeclimate-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@ describe('The codeclimate provider for Linter', () => {
waitsForPromise(
{ timeout: TIMEOUT },
() =>
atom.workspace.open(coolCodePath).then(editor => lint(editor)).then(
(messages) => {
expect(messages[0].severity).toBe('warning');
expect(messages[0].excerpt).toBe('RUBOCOP: Unused method argument - ' +
atom.workspace.open(coolCodePath).then(editor => lint(editor)).then(
(messages) => {
expect(messages[0].severity).toBe('warning');
expect(messages[0].excerpt).toBe('RUBOCOP: Unused method argument - ' +
"`bar`. If it's necessary, use `_` or `_bar` as an argument name to " +
"indicate that it won't be used. You can also write as `foo(*)` if " +
"you want the method to accept any arguments but don't care about " +
'them. [Rubocop/Lint/UnusedMethodArgument]');
expect(messages[0].description).toBeDefined();
expect(messages[0].reference).not.toBeDefined();
expect(messages[0].icon).not.toBeDefined();
expect(messages[0].solutions).not.toBeDefined();
expect(messages[0].location.file).toBe(coolCodePath);
expect(messages[0].location.position).toEqual([[1, 11], [1, 14]]);
},
),
expect(messages[0].description).toBeDefined();
expect(messages[0].reference).not.toBeDefined();
expect(messages[0].icon).not.toBeDefined();
expect(messages[0].solutions).not.toBeDefined();
expect(messages[0].location.file).toBe(coolCodePath);
expect(messages[0].location.position).toEqual([[1, 11], [1, 14]]);
},
),
),
);
});

0 comments on commit b48274a

Please sign in to comment.