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

Commit 1f6573c

Browse files
authored
Update ESLint to v3.6.1 (#147)
* chore(package): update eslint-plugin-import to version 1.16.0 * chore(package): update eslint-config-airbnb-base to version 8.0.0 * chore(package): update eslint to version 3.6.1 * Update ESLint configuration format * Fix lint issues
1 parent f1fc9c1 commit 1f6573c

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
},
2626
"devDependencies": {
2727
"coffeelint": "^1.15.0",
28-
"eslint": "^2.9.0",
29-
"eslint-config-airbnb-base": "^3.0.1",
30-
"eslint-plugin-import": "^1.7.0"
28+
"eslint": "^3.6.1",
29+
"eslint-config-airbnb-base": "^8.0.0",
30+
"eslint-plugin-import": "^1.16.0"
3131
},
3232
"package-deps": [
3333
"linter"
@@ -39,9 +39,9 @@
3939
"eslintConfig": {
4040
"extends": "airbnb-base",
4141
"rules": {
42-
"global-require": 0,
42+
"global-require": "off",
4343
"import/no-unresolved": [
44-
2,
44+
"error",
4545
{
4646
"ignore": [
4747
"atom"

spec/.eslintrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

spec/.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
env: {
3+
jasmine: true,
4+
atomtest: true
5+
}
6+
};

spec/linter-csslint-spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('The csslint provider for Linter', () => {
2626
let editor = null;
2727
beforeEach(() =>
2828
waitsForPromise(() =>
29-
atom.workspace.open(badPath).then(openEditor => { editor = openEditor; })
29+
atom.workspace.open(badPath).then((openEditor) => { editor = openEditor; })
3030
)
3131
);
3232

@@ -40,7 +40,7 @@ describe('The csslint provider for Linter', () => {
4040

4141
it('verifies the first message', () =>
4242
waitsForPromise(() =>
43-
lint(editor).then(messages => {
43+
lint(editor).then((messages) => {
4444
expect(messages[0].type).toBe('Warning');
4545
expect(messages[0].text).toBe('Rule is empty.');
4646
expect(messages[0].filePath).toBe(badPath);
@@ -54,7 +54,7 @@ describe('The csslint provider for Linter', () => {
5454
let editor = null;
5555
beforeEach(() =>
5656
waitsForPromise(() =>
57-
atom.workspace.open(invalidPath).then(openEditor => { editor = openEditor; })
57+
atom.workspace.open(invalidPath).then((openEditor) => { editor = openEditor; })
5858
)
5959
);
6060

@@ -68,7 +68,7 @@ describe('The csslint provider for Linter', () => {
6868

6969
it('verifies the message', () =>
7070
waitsForPromise(() =>
71-
lint(editor).then(messages => {
71+
lint(editor).then((messages) => {
7272
expect(messages[0].type).toBe('Error');
7373
expect(messages[0].text).toBe('Unexpected token \'}\' at line 1, col 1.');
7474
expect(messages[0].filePath).toBe(invalidPath);
@@ -102,7 +102,7 @@ describe('The csslint provider for Linter', () => {
102102
atom.project.addPath(projectPath);
103103
waitsForPromise(() =>
104104
atom.workspace.open(projectBadPath).then(editor =>
105-
lint(editor).then(messages => {
105+
lint(editor).then((messages) => {
106106
expect(messages[0].type).toBeDefined();
107107
expect(messages[0].type).toEqual('Error');
108108
expect(messages[0].text).toBeDefined();

0 commit comments

Comments
 (0)