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

Commit d4d2b19

Browse files
authored
Merge pull request #103 from AtomLinter/greenkeeper/eslint-config-airbnb-base-12.0.0
Update eslint-config-airbnb-base to version 12.0.0 🚀
2 parents 0c6b2a7 + 012a128 commit d4d2b19

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

lib/main.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@ export default {
2121
atom.config.observe('linter-shellcheck.shellcheckExecutablePath', (value) => {
2222
this.executablePath = value;
2323
}),
24-
);
25-
this.subscriptions.add(
2624
atom.config.observe('linter-shellcheck.enableNotice', (value) => {
2725
this.enableNotice = value;
2826
}),
29-
);
30-
this.subscriptions.add(
3127
atom.config.observe('linter-shellcheck.userParameters', (value) => {
3228
this.userParameters = value.trim().split(' ').filter(Boolean);
3329
}),

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"atom-package-deps": "^4.3.1"
3939
},
4040
"devDependencies": {
41-
"eslint": "^4.3.0",
42-
"eslint-config-airbnb-base": "^11.3.1",
41+
"eslint": "^4.6.0",
42+
"eslint-config-airbnb-base": "^12.0.0",
4343
"eslint-plugin-import": "^2.7.0"
4444
},
4545
"eslintConfig": {

spec/.eslintrc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
module.exports = {
22
env: {
3+
atomtest: true,
34
jasmine: true,
4-
atomtest: true
5+
},
6+
rules: {
7+
"import/no-extraneous-dependencies": [
8+
"error",
9+
{
10+
"devDependencies": true
11+
}
12+
]
513
}
614
};

spec/linter-shellcheck-spec.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const cleanPath = path.join(__dirname, 'fixtures', 'clean.sh');
66
const badPath = path.join(__dirname, 'fixtures', 'bad.sh');
77

88
describe('The ShellCheck provider for Linter', () => {
9-
const lint = require('../lib/main.js').provideLinter().lint;
9+
const { lint } = require('../lib/main.js').provideLinter();
1010

1111
beforeEach(() => {
1212
atom.workspace.destroyActivePaneItem();
@@ -18,8 +18,7 @@ describe('The ShellCheck provider for Linter', () => {
1818

1919
waitsForPromise(() =>
2020
atom.packages.activatePackage('language-shellscript').then(() =>
21-
atom.workspace.open(cleanPath)),
22-
);
21+
atom.workspace.open(cleanPath)));
2322

2423
atom.packages.triggerDeferredActivationHooks();
2524
waitsForPromise(() => activationPromise);
@@ -29,8 +28,7 @@ describe('The ShellCheck provider for Linter', () => {
2928
waitsForPromise(() =>
3029
atom.workspace.open(cleanPath).then(editor => lint(editor)).then((messages) => {
3130
expect(messages.length).toBe(0);
32-
}),
33-
);
31+
}));
3432
});
3533

3634
it('handles messages from ShellCheck', () => {
@@ -44,7 +42,6 @@ describe('The ShellCheck provider for Linter', () => {
4442
expect(messages[0].html).toBe(expectedMsg);
4543
expect(messages[0].filePath).toBe(badPath);
4644
expect(messages[0].range).toEqual([[0, 0], [0, 4]]);
47-
}),
48-
);
45+
}));
4946
});
5047
});

0 commit comments

Comments
 (0)