eslint-plugin-diff

Run ESLint on your changes only

MIT License

Downloads
453.7K
Stars
176
Committers
9

Bot releases are visible (Hide)

eslint-plugin-diff - πŸŽ‰ Improve reliability for "diff/staged"

Published by paleite about 3 years ago

Now adds an extra check to ensure files don't have unstaged changes, which could potentially lead to false positives.

  • Update deps d1432c3
  • Lint c6e4bae
  • Rename variables 6f8ae38

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.12-2...v1.0.12

eslint-plugin-diff -

Published by paleite about 3 years ago

  • Update devDependencies 80aba14
  • Add types to package.json dc0d514
  • Use eslint-files to make lint-staged.config.js smaller 3300e2e
  • Format d271a75
  • Update deps f439f71
  • Merge pull request #11 from paleite/dependabot/npm_and_yarn/browserslist-4.16.6 7648d6d
  • Merge pull request #12 from paleite/dependabot/npm_and_yarn/ws-7.4.6 a65e686
  • Bump ws from 7.4.3 to 7.4.6 1df894a
  • Bump browserslist from 4.16.3 to 4.16.6 190f9d3
  • Formatting c180923

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.12-1...v1.0.12-2

eslint-plugin-diff -

Published by paleite over 3 years ago

  • Remove type predicate 158af97
  • Make ESLint report fatal error for files with dirty index 7cd18c3

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.12-0...v1.0.12-1

eslint-plugin-diff - πŸš€ Performance improvements to RegEx

Published by paleite over 3 years ago

  • v1.0.12-0 189f8ae
  • Make hunk header-regex faster e62c2fa

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.11...v1.0.12-0

eslint-plugin-diff - πŸ› Fix handling of relative paths

Published by paleite over 3 years ago

Previously, when run from a different directory than the root, files could be omitted. This patch addresses this issue.

eslint-plugin-diff -

Published by paleite over 3 years ago

  • Fix errors omitted when in subdirectory 9f470e7

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.10...v1.0.11-0

eslint-plugin-diff - πŸš€ Improve handling of unchanged files

Published by paleite over 3 years ago

Previously, unchanged files were added to ESLint's ignore-list, which worked fine until all files were ignored, which would cause ESLint to throw a warning.
This is now removed and instead, the unchanged files are excluded from being linted using ESLint's preprocessor.
The removal of ignorePatterns also opens up the possibility of using this plugin with older versions of ESLint in future releases.

eslint-plugin-diff - πŸ› Fix bug which would throw warnings if no changed files could be found

Published by paleite over 3 years ago

  • Use preprocess as a replacement for getIgnorePatterns 14d57b0
  • Improve how we handle RegExps in TypeScript f98eecf
  • Change jest-thresholds 2d6dd49
  • Remove getIgnorePatterns e963ba2

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.9...v1.0.10-0

eslint-plugin-diff - πŸ› Fix bug which would prevent files from being included

Published by paleite over 3 years ago

eslint-plugin-diff -

Published by paleite over 3 years ago

  • Add MD-files to package.json 92bc040
  • Fix check for 'fatal' ff8bb3c
  • Merge pull request #9 from paleite/add-code-of-conduct-1 43ea0b9
  • Update issue templates 39177db
  • Create CODE_OF_CONDUCT.md acee27e
  • Create SECURITY.md 678fe23

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.8...v1.0.9-0

eslint-plugin-diff - πŸ› Allow for older versions of ESLint

Published by paleite over 3 years ago

ESLint can now be v6.7.0 (where ignorePatterns was introduced).

  • Fix peer dependency-version 3f18e17

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.7...v1.0.8

eslint-plugin-diff - πŸ› Fix swallowing fatal errors

Published by paleite over 3 years ago

Previously the plugin would erroneously swallow fatal errors, making it look like there was no issue when it in fact was fatal. This caused plugins such as @typescript-eslint not to work.
This change will instead leverage ignorePatterns introduced in ESLint 6.7.0.

  • Update tests 1d3a9b1
  • Ensure proper test-coverage 4669f68
  • Merge pull request #8 from paleite/bugfix/fix-typescript-eslint 8cab38f
  • Cleanup 5faa93b
  • Debug filepaths 53af44d
  • Fix typescript-eslint 42708f7

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.6...v1.0.7

eslint-plugin-diff - πŸŽ‰ Add CI support

Published by paleite over 3 years ago

  • Update README.md 5a55bfe
  • Merge pull request #7 from paleite/feature/add-ci-mode bfb8eb4
  • Update deps e0a8792
  • Escape user input from env f57ec1c
  • Remove unused parameter 3176874
  • Add support for env variable ESLINT_PLUGIN_DIFF_COMMIT acfb083
  • Use reduce to let TypeScript infer types 469cc69
  • Infer diff range for CI-mode 4463cf6
  • Migrate to eslint-config-prettier 8 1445898
  • sort-package-json 982e4c2

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.5...v1.0.6

eslint-plugin-diff - πŸŽ‰ Add support for Node 10

Published by paleite over 3 years ago

  • Use node10 base config e43078d
  • Merge pull request #6 from JosephLing/support_for_es2017 7cbb327
  • Separate linting from formatting 5f63e42
  • Fix vulnerability issue 856295d
  • Add .npmrc c90abc4
  • Merge pull request #5 from paleite/dependabot/npm_and_yarn/ini-1.3.8 a754672
  • removed .flat() to support running eslint in older node versions dbae9de
  • Bump ini from 1.3.5 to 1.3.8 24a59cb

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.4...v1.0.5

eslint-plugin-diff - πŸš€ Performance improvements using cache

Published by paleite almost 4 years ago

Big thanks to @DaVarga for creating the PR which improves performance.
Windows users should get MUCH better results now!

  • Fix tests and refactor 6ef43e7
  • Merge pull request #3 from DaVarga/master f2192de
  • Performance: implement preprocess to skip untouched files 24b5716
  • Performance: implement memoization for git diff 6e4656e

https://github.com/paleite/eslint-plugin-diff/compare/v1.0.3...v1.0.4

eslint-plugin-diff - πŸ› Fix stdin as input

Published by paleite about 4 years ago

eslint-plugin-diff - πŸ› Fix stdin as input

Published by paleite about 4 years ago

eslint-plugin-diff - πŸ› Fix crash for when diffs only contain removals

Published by paleite about 4 years ago

eslint-plugin-diff -

Published by paleite about 4 years ago

eslint-plugin-diff -

Published by paleite about 4 years ago