698 B
698 B
Stop interpret *.frag files as JavaScript files (#17178 by @fisker)
*.frag was interpreted as JavaScript files, but .frag is also used in GLSL(OpenGL Shading Language). It causes error when Prettier try to format them as JavaScript files.
Since Prettier main, *.frag files except *.start.frag, *.end.frag, start.frag, and end.frag are no longer treated as JavaScript files.
If you have JavaScript files with .frag that do not match the patterns mentioned above, you can config with overrides.
export default {
overrides: {
files: "**/*.frag",
options: {
parser: "babel",
},
},
};