[assets] Move some frontend assets to _vendor_ directories:
This simplifies linting of files we have no grasp on, and clarifies responsibilities. - Add .eslintignore. - Restrict linting to bookwyrm/static.
This commit is contained in:
parent
5aea7343b4
commit
cbed5e331b
10 changed files with 11 additions and 9 deletions
6
.github/workflows/lint-frontend.yaml
vendored
6
.github/workflows/lint-frontend.yaml
vendored
|
@ -22,8 +22,10 @@ jobs:
|
|||
- name: Install modules
|
||||
run: yarn
|
||||
|
||||
# See .stylelintignore for files that are not linted.
|
||||
- name: Run stylelint
|
||||
run: yarn stylelint **/static/**/*.css --report-needless-disables --report-invalid-scope-disables
|
||||
run: yarn stylelint bookwyrm/static/**/*.css --report-needless-disables --report-invalid-scope-disables
|
||||
|
||||
# See .eslintignore for files that are not linted.
|
||||
- name: Run ESLint
|
||||
run: yarn eslint . --ext .js,.jsx,.ts,.tsx
|
||||
run: yarn eslint bookwyrm/static --ext .js,.jsx,.ts,.tsx
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue