[lint] Improvements and fixes to linting
Rerun all files if `lit-analyzer` rules change. Add support for EsLint
cache - `npm run lint` delta first run vs second of over 2 min. Don't
run EsLint if all files are ignored.
Bug: none
Change-Id: I042ede01cf0fe6de63b066723e1dc61cae3f9dcc
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6213930
Auto-Submit: Nikolay Vitkov <[email protected]>
Reviewed-by: Benedikt Meurer <[email protected]>
Commit-Queue: Simon Zünd <[email protected]>
Reviewed-by: Simon Zünd <[email protected]>
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index ee055e0..9f2a211 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -292,6 +292,9 @@
'.stylelintrc.json'),
input_api.os_path.join(input_api.PresubmitLocalPath(),
'.stylelintignore'),
+ # This file includes the LitAnalyzer rules
+ input_api.os_path.join(input_api.PresubmitLocalPath(),
+ 'tsconfig.json'),
input_api.os_path.join(scripts_directory, 'test',
'run_lint_check.mjs'),
]