Skip to content

Commit

Permalink
fix: mime
Browse files Browse the repository at this point in the history
  • Loading branch information
zdm committed Jul 22, 2024
1 parent 218830e commit beb8f86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/lint/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ mime.registerType( "application/json", [ ".gyp" ], true, { "force": true } );
const TYPES = {
"application/javascript": { "parser": "babel", "eslint": true, "terser": true },
"text/javascript": { "parser": "babel", "eslint": true, "terser": true },
"application/x-typescript": { "parser": "typescript", "eslint": true, "terser": false },
"application/node": { "parser": "babel", "eslint": true, "terser": true },
"application/x-typescript": { "parser": "typescript", "eslint": true, "terser": false },
"application/json": { "parser": "json-stringify", "json": true },
"application/x-vue": { "parser": "vue", "eslint": true },
"text/yaml": { "parser": "yaml" },
"text/css": { "parser": "css", "cssnano": true },
"text/x-scss": { "parser": "scss" },
"text/less": { "parser": "less" },
"application/json": { "parser": "json-stringify", "json": true },
"text/markdown": { "parser": "markdown" },
"text/html": { "parser": "html", "html": true },
"application/x-sh": { "parser": "sh" },
"text/xml": { "parser": "xml" },
"application/wsdl+xml": { "parser": "xml" },
"image/svg+xml": { "parser": "xml" },
"application/x-vue": { "parser": "vue", "eslint": true },
};

const RESOURCES_ROOT = path.dirname( utils.resolve( "#resources/.prettierrc.yaml", import.meta.url ) );
Expand Down

0 comments on commit beb8f86

Please sign in to comment.