[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:
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
|
||||
|
Reference in New Issue
Block a user