Skip to content

Commit

Permalink
chore: use XO instead of custom eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Jan 4, 2018
1 parent 8798425 commit 940336c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 21 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintrc.js

This file was deleted.

29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,8 @@
"babel-preset-es2015": "^6.24.1",
"codecov": "^3.0.0",
"conventional-changelog-metahub": "^1.0.1",
"eslint": "^4.5.0",
"eslint-config-prettier": "^2.3.0",
"eslint-config-pretty": "^2.1.1",
"eslint-plugin-ava": "^4.2.1",
"eslint-plugin-babel": "^4.1.2",
"eslint-plugin-eslint-comments": "^2.0.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jasmine": "^2.8.4",
"eslint-plugin-json": "^1.2.0",
"eslint-plugin-node": "^5.1.1",
"eslint-plugin-prettier": "^2.2.0",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-sort-class-members": "^1.2.0",
"jasmine-core": "^2.8.0",
"jasmine-jquery": "^2.1.1",
Expand All @@ -42,7 +32,8 @@
"rollup-plugin-commonjs": "^8.2.0",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-re": "^1.0.6",
"semantic-release": "^12.0.0"
"semantic-release": "^12.0.0",
"xo": "^0.18.2"
},
"engines": {
"node": ">=4"
Expand Down Expand Up @@ -97,14 +88,24 @@
"url": "git+https://github.com/vanduynslagerp/karma-jasmine-jquery.git"
},
"scripts": {
"clean": "rimraf test/fixtures/.tmp && rimraf coverage && rimraf .nyc_output",
"codecov": "codecov -f coverage/coverage-final.json",
"compile": "rimraf lib && babel src --only index.js --source-maps --out-dir lib && rollup -c build/rollup.config.js",
"lint": "eslint src test package.json",
"lint": "xo",
"prepare": "npm run compile",
"prepublishOnly": "npm run compile",
"pretest": "npm run clean && npm run compile && npm run lint",
"pretest": "npm run compile && npm run lint",
"semantic-release": "semantic-release",
"test": "nyc ava -v"
},
"prettier": {
"printWidth": 120,
"singleQuote": true,
"bracketSpacing": false,
"trailingComma": "es5"
},
"xo": {
"extends": [
"plugin:prettier/recommended"
]
}
}
4 changes: 3 additions & 1 deletion src/jasmine-jquery.bundle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* eslint-env browser */

import jQuery from 'jquery';
import 'jasmine-jquery';
import 'jasmine-jquery'; // eslint-disable-line import/no-unassigned-import

if (typeof window.jQuery === 'undefined') {
window.jQuery = jQuery.noConflict();
Expand Down

0 comments on commit 940336c

Please sign in to comment.