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

Commit

Permalink
chore(package): update ESLint and related config
Browse files Browse the repository at this point in the history
Update ESlint to the latest v4 version, update to hte new major version 
of eslint-config-airbnb-base, and fix the linting errors.
  • Loading branch information
Arcanemagus committed Jun 27, 2018
1 parent 4887d57 commit af29365
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 33 deletions.
4 changes: 2 additions & 2 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export function endMeasure(baseName) {
}

export function createRange(editor, data) {
if (!data ||
(!Object.hasOwnProperty.call(data, 'line') && !Object.hasOwnProperty.call(data, 'column'))
if (!data
|| (!Object.hasOwnProperty.call(data, 'line') && !Object.hasOwnProperty.call(data, 'column'))
) {
// data.line & data.column might be undefined for non-fatal invalid rules,
// e.g.: "block-no-empty": "foo"
Expand Down
153 changes: 129 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
"@commitlint/config-conventional": "^7.0.1",
"@commitlint/travis-cli": "^7.0.0",
"@semantic-release/apm-config": "^2.0.1",
"eslint": "^4.6.0",
"eslint-config-airbnb-base": "^12.0.0",
"eslint-plugin-import": "^2.7.0",
"eslint": "^4.19.1",
"eslint-config-airbnb-base": "^13.0.0",
"eslint-plugin-import": "^2.13.0",
"husky": "^0.14.3",
"jasmine-fix": "^1.0.1",
"semantic-release": "^15.1.7"
Expand Down
6 changes: 4 additions & 2 deletions spec/helpers-spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
'use babel';

import path from 'path';
// eslint-disable-next-line no-unused-vars, import/no-extraneous-dependencies
import { it, fit, wait, beforeEach, afterEach } from 'jasmine-fix';
import {
// eslint-disable-next-line no-unused-vars
it, fit, wait, beforeEach, afterEach
} from 'jasmine-fix';
import * as helpers from '../lib/helpers';

const fixturesLocal = path.join(__dirname, 'fixtures', 'local-stylelint');
Expand Down
6 changes: 4 additions & 2 deletions spec/linter-stylelint-spec.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
'use babel';

import * as path from 'path';
// eslint-disable-next-line no-unused-vars, import/no-extraneous-dependencies
import { it, fit, wait, beforeEach, afterEach } from 'jasmine-fix';
import {
// eslint-disable-next-line no-unused-vars
it, fit, wait, beforeEach, afterEach
} from 'jasmine-fix';

const fixtures = path.join(__dirname, 'fixtures');
const configStandardPath = path.join(fixtures, 'bad', 'stylelint-config-standard.css');
Expand Down

0 comments on commit af29365

Please sign in to comment.