The base configuration at that version specifies types: [javascript]
when folded together with your configuration this sets:
types: [javascript]
types_or: [javascript, jsx, ts, tsx, vue]
from the documentation:
types, types_or, and files are evaluated together with AND when filtering. Tags within types are also evaluated using AND.
new in 2.9.0: Tags within types_or are evaluated using OR.
Putting that together (with a bit of set notation), you're requesting {javascript} & {javascript, jsx, ts, tsx, vue}
-- simplified: {javascript}
the README of mirrors-eslint tells you what to do here, you need to override types
back to the default [file]
before applying additional filtering:
- id: eslint
types: [file]
types_or: [javascript, jsx, ts, tsx, vue]
disclaimer: I'm the creator of pre-commit, in the future please don't post your question to both the issue tracker and stackoverflow, thanks!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…