Skip to content

Commit

Permalink
add syntax highlighting for .stylelintignore (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
BPScott authored and shinnn committed Aug 27, 2018
1 parent 54cb490 commit 16b228b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@
"fileMatch": "**/.stylelintrc*",
"url": "http://json.schemastore.org/stylelintrc.json"
}
],
"languages": [
{
"id": "ignore",
"filenames": [
".stylelintignore"
]
}
]
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions test/.stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

8 changes: 8 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* eslint-disable node/no-unpublished-require */
'use strict';

const {join} = require('path');

const test = require('tape');
const {extensions, workspace, window} = require('vscode');

Expand Down Expand Up @@ -33,6 +35,12 @@ const run = () => test('vscode-stylelint', async t => {
'should be activated when the open file is CSS.'
);

t.equal(
(await workspace.openTextDocument(join(__dirname, '.stylelintignore'))).languageId,
'ignore',
'should add syntax highlighting to .stylelintignore.'
);

t.end();
});

Expand Down

0 comments on commit 16b228b

Please sign in to comment.