-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
957 additions
and
2,918 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,5 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": "rizowski", | ||
"env": { | ||
"es6": true | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
"brace-style": "error", | ||
"comma-dangle": ["error", "always-multiline"], | ||
"keyword-spacing": "error", | ||
"quotes": ["error", "single", { "avoidEscape": true }], | ||
"space-before-blocks": "error", | ||
"space-infix-ops": "error" | ||
} | ||
"extends": ["xo-space", "prettier"], | ||
"plugins": ["prettier"], | ||
"rules": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
[ -n "$CI" ] && exit 0 | ||
|
||
yarn lint-staged --allow-empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
10 | ||
12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
language: node_js | ||
node_js: | ||
- "10" | ||
- "12" | ||
- "14" | ||
- "16" | ||
os: | ||
- linux | ||
# - osx | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
{ | ||
"name": "eslint-watch", | ||
"version": "7.0.0", | ||
"version": "8.0.0", | ||
"description": "Run eslint with watch mode", | ||
"main": "./build", | ||
"main": "./src", | ||
"scripts": { | ||
"build": "babel src -d build -s inline", | ||
"ci:win": "npm run lint && npm test", | ||
"ci:test": "npm run lint && npm run coverage", | ||
"ci:test": "npm run lint && npm run test", | ||
"clean": "rm -rf build node_modules", | ||
"coverage": "nyc npm test", | ||
"deploy": "./scripts/deploy.sh", | ||
"prepare": "husky install", | ||
"lint:watch": "node ./bin/esw -w", | ||
"lint": "node ./bin/esw", | ||
"mocha": "mocha", | ||
"mocha": "mocha --recursive --timeout 10000 -r tests/globals.js", | ||
"postcoverage": "nyc report --reporter=text-lcov | coveralls", | ||
"prepare": "npm run build", | ||
"test:integration": "npm run mocha -- --opts ./tests/mocha-integration.opts", | ||
"test:unit": "npm run mocha -- --opts ./tests/mocha-unit.opts", | ||
"test:integration": "yarn mocha ./tests/integration/**/*spec.js", | ||
"test:unit": "yarn mocha ./tests/unit/**/*spec.js", | ||
"test:watch": "npm run test -- -R min -b -w", | ||
"test": "npm run mocha -- --opts ./tests/mocha.opts" | ||
"test": "yarn mocha ./tests/**/**/**/*spec.js" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -32,7 +31,7 @@ | |
}, | ||
"files": [ | ||
"bin", | ||
"build", | ||
"src", | ||
"package.json", | ||
"README.md" | ||
], | ||
|
@@ -50,19 +49,12 @@ | |
"email": "[email protected]" | ||
}, | ||
"license": "MIT", | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"npm run lint -- --fix" | ||
], | ||
"*.{js,css,json}": [ | ||
"npm run lint -- --fix", | ||
"prettier --write --print-width=160" | ||
], | ||
"*.md": [ | ||
"*.{md,json,yaml,yml}": [ | ||
"prettier --write --print-width=80" | ||
] | ||
}, | ||
|
@@ -71,42 +63,35 @@ | |
}, | ||
"homepage": "https://github.com/rizowski/eslint-watch", | ||
"peerDependencies": { | ||
"eslint": ">=7 <8.0.0" | ||
"eslint": ">=8 <9.0.0" | ||
}, | ||
"dependencies": { | ||
"chokidar": "^3.1.1", | ||
"core-js": "^3.2.1", | ||
"debug": "^4.1.0", | ||
"execa": "^4.0.1", | ||
"chokidar": "^3.5.2", | ||
"debug": "^4.3.2", | ||
"execa": "^5.1.1", | ||
"keypress": "^0.2.1", | ||
"lodash.debounce": "^4.0.8", | ||
"lodash.isempty": "^4.4.0", | ||
"lodash.isequal": "^4.5.0", | ||
"lodash.kebabcase": "^4.1.1", | ||
"lodash.unionwith": "^4.6.0", | ||
"optionator": "^0.9.1", | ||
"source-map-support": "^0.5.13" | ||
"optionator": "^0.9.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.6.0", | ||
"@babel/core": "^7.6.0", | ||
"@babel/preset-env": "^7.6.0", | ||
"@babel/register": "^7.6.0", | ||
"babel-eslint": "^10.0.3", | ||
"babel-plugin-add-module-exports": "^1.0.0", | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.0.6", | ||
"eslint": "^7.0.0", | ||
"eslint-config-rizowski": "^1.1.4", | ||
"eslint-plugin-fp": "^2.3.0", | ||
"husky": "^4.2.5", | ||
"lint-staged": "^10.2.2", | ||
"mocha": "^7.1.2", | ||
"chai": "^4.3.4", | ||
"coveralls": "^3.1.1", | ||
"eslint": "^8", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-xo-space": "^0.30.0", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"husky": "^7.0.4", | ||
"lint-staged": "^11.2.6", | ||
"mocha": "^9.1.3", | ||
"mocha-lcov-reporter": "^1.3.0", | ||
"mocha-sinon": "^2.0.0", | ||
"nyc": "^15.0.1", | ||
"prettier": "^2.0.5", | ||
"sinon": "^9.0.2", | ||
"sinon-chai": "^3.3.0" | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.4.1", | ||
"sinon": "^12.0.1", | ||
"sinon-chai": "^3.7.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
module.exports = { | ||
name: 'clear', | ||
trigger(options) { | ||
return options.clear; | ||
|
Oops, something went wrong.