Skip to content

Commit

Permalink
Use upstream types (#262)
Browse files Browse the repository at this point in the history
* refactor: use upstream types directly w/o script

Made possible by stylelint/stylelint#5582

* fix: avoid typescript error, conform to new types

Disables are no longer reported directly on results and are now reported
just like other rules.
  • Loading branch information
adalinesimonian committed Oct 11, 2021
1 parent be4f029 commit 1cfd8a0
Show file tree
Hide file tree
Showing 18 changed files with 232 additions and 725 deletions.
37 changes: 35 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -165,6 +165,7 @@
"devDependencies": {
"@stylelint/postcss-css-in-js": "^0.37.2",
"@stylelint/prettier-config": "^2.0.0",
"@types/eslint": "^7.28.1",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^27.0.1",
"@types/lodash": "^4.14.151",
Expand Down Expand Up @@ -200,7 +201,6 @@
"lint": "run-s \"lint:*\"",
"lint:formatting": "prettier . --check",
"lint:js": "eslint --report-unused-disable-directives .",
"lint:stylelint-types": "node scripts/stylelint-types.js",
"lint:types": "tsc",
"test": "npm run bundle && jest",
"test:lib": "jest --projects test/lib",
Expand Down
105 changes: 0 additions & 105 deletions scripts/stylelint-types.js

This file was deleted.

5 changes: 1 addition & 4 deletions src/index.js
Expand Up @@ -8,10 +8,7 @@ const {
const { workspace, commands: Commands, window: Window } = require('vscode');

/**
* @typedef {import('vscode').ExtensionContext} ExtensionContext
*/
/**
* @param {ExtensionContext} context
* @param {vscode.ExtensionContext} context
*/
exports.activate = ({ subscriptions }) => {
const serverPath = require.resolve('./server.js');
Expand Down

0 comments on commit 1cfd8a0

Please sign in to comment.