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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: AtomLinter/linter-jshint
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.1.11
Choose a base ref
...
head repository: AtomLinter/linter-jshint
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 3,775 additions and 2,441 deletions.
  1. +2 −1 .travis.yml
  2. +56 −0 CHANGELOG.md
  3. +3 −3 lib/helpers.js
  4. +1 −1 lib/main.js
  5. +3,695 −2,418 package-lock.json
  6. +18 −18 package.json
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ git:

sudo: false

dist: trusty
dist: xenial

addons:
apt:
@@ -62,6 +62,7 @@ addons:
- git
- libgnome-keyring-dev
- fakeroot
- libgconf-2-4

stages:
- test
56 changes: 56 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,59 @@
## [3.1.19](https://github.com/AtomLinter/linter-jshint/compare/v3.1.18...v3.1.19) (2020-01-28)


### Bug Fixes

* **deps:** update dependency jshint to v2.11.0 ([d1ab9c3](https://github.com/AtomLinter/linter-jshint/commit/d1ab9c320451f085bd156e1702e461e118271c9e))

## [3.1.18](https://github.com/AtomLinter/linter-jshint/compare/v3.1.17...v3.1.18) (2019-12-18)


### Bug Fixes

* **deps:** update dependency jshint to v2.10.3 ([b929ac5](https://github.com/AtomLinter/linter-jshint/commit/b929ac52b956e3445598c05460847719b0d9eb87))

## [3.1.17](https://github.com/AtomLinter/linter-jshint/compare/v3.1.16...v3.1.17) (2019-09-13)


### Bug Fixes

* update package-lock.json for security audit ([6d139d7](https://github.com/AtomLinter/linter-jshint/commit/6d139d7))

## [3.1.16](https://github.com/AtomLinter/linter-jshint/compare/v3.1.15...v3.1.16) (2019-04-22)


### Bug Fixes

* **deps:** update dependency atom-package-deps to v5.1.0 ([4abe4d8](https://github.com/AtomLinter/linter-jshint/commit/4abe4d8))

## [3.1.15](https://github.com/AtomLinter/linter-jshint/compare/v3.1.14...v3.1.15) (2019-03-13)


### Bug Fixes

* **deps:** update dependency jshint to v2.10.2 ([9485783](https://github.com/AtomLinter/linter-jshint/commit/9485783))

## [3.1.14](https://github.com/AtomLinter/linter-jshint/compare/v3.1.13...v3.1.14) (2019-02-06)


### Bug Fixes

* **deps:** pin remaining dependencies ([dc01923](https://github.com/AtomLinter/linter-jshint/commit/dc01923)), closes [#627](https://github.com/AtomLinter/linter-jshint/issues/627)

## [3.1.13](https://github.com/AtomLinter/linter-jshint/compare/v3.1.12...v3.1.13) (2019-02-05)


### Bug Fixes

* **deps:** update dependency jshint to v2.10.1 ([a83e30f](https://github.com/AtomLinter/linter-jshint/commit/a83e30f))

## [3.1.12](https://github.com/AtomLinter/linter-jshint/compare/v3.1.11...v3.1.12) (2019-02-05)


### Bug Fixes

* **deps:** update dependency jshint to v2.10.0 ([716cd1a](https://github.com/AtomLinter/linter-jshint/commit/716cd1a))

## [3.1.11](https://github.com/AtomLinter/linter-jshint/compare/v3.1.10...v3.1.11) (2019-01-20)


6 changes: 3 additions & 3 deletions lib/helpers.js
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ import type { TextEditor } from 'atom';
let homeConfigPath;
const debugCache = new Map();

const readFile = async filePath => new Promise((resolve, reject) => {
const readFile = async (filePath) => new Promise((resolve, reject) => {
fsReadFile(filePath, 'utf8', (err, data) => {
if (err) {
reject(err);
@@ -26,7 +26,7 @@ export const isIgnored = async (filePath, ignorePath) => {
const rawIgnoreList = (await readFile(ignorePath)).split(/[\r\n]/);

// "Fix" the patterns in the same way JSHint does
const ignoreList = rawIgnoreList.filter(line => !!line.trim()).map((pattern) => {
const ignoreList = rawIgnoreList.filter((line) => !!line.trim()).map((pattern) => {
if (pattern.startsWith('!')) {
return `!${path.resolve(fileDir, pattern.substr(1).trim())}`;
}
@@ -59,7 +59,7 @@ export const isIgnored = async (filePath, ignorePath) => {
});
};

const fileExists = async checkPath => new Promise((resolve) => {
const fileExists = async (checkPath) => new Promise((resolve) => {
access(checkPath, (err) => {
if (err) {
resolve(false);
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
@@ -94,7 +94,7 @@ module.exports = {
},

deactivate() {
this.idleCallbacks.forEach(callbackID => window.cancelIdleCallback(callbackID));
this.idleCallbacks.forEach((callbackID) => window.cancelIdleCallback(callbackID));
this.idleCallbacks.clear();
this.subscriptions.dispose();
},
Loading