Skip to content

Commit d242723

Browse files
committed
feat: add lint support for .peggy
1 parent 6e83975 commit d242723

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/lint/file.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ customMime.add( {
9898
"filenames": [ "dockerfile", "*.dockerfile" ],
9999
} );
100100

101+
customMime.add( {
102+
"essence": "application/x-peggy",
103+
"compressible": true,
104+
"extnames": [ ".peggy" ],
105+
} );
106+
101107
const DEFAULT_ESLINT_CONFIG_JAVASCRIPT = import.meta.resolve( "#resources/eslint.config.javascript.js" ),
102108
DEFAULT_ESLINT_CONFIG_VUE = import.meta.resolve( "#resources/eslint.config.vue.js" ),
103109
DEFAULT_ESLINT_CONFIG_TYPESCRIPT = import.meta.resolve( "#resources/eslint.config.typescript.js" );
@@ -232,6 +238,7 @@ const USE_PRETTIER_FOR_JS = true,
232238
"text/x-lua": {},
233239
"text/x-vim": {},
234240
"text/plain": {},
241+
"text/x-peggy": {},
235242
};
236243

237244
// prepare types

0 commit comments

Comments
 (0)