Skip to content

Commit

Permalink
Improve: Configuration errors should not be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Oct 31, 2023
1 parent f1f38b4 commit 83ef1cd
Show file tree
Hide file tree
Showing 8 changed files with 249 additions and 119 deletions.
2 changes: 1 addition & 1 deletion examples/eslint/validation.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div class="width:">...</div>
<div class="bg:indigo width:">...</div>
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
"@master/css-extractor": "workspace:^",
"@master/css-extractor.vite": "workspace:^",
"@master/css-renderer": "workspace:^",
"@techor/fs": "^2.5.17",
"@techor/glob": "^2.5.17",
"@techor/jest": "^2.5.17",
"@techor/jest-dom": "^2.5.17",
"@techor/pack": "^2.5.17",
"@techor/repo": "^2.5.17",
"@techor/version": "^2.5.17",
"@techor/fs": "^2.5.19",
"@techor/glob": "^2.5.19",
"@techor/jest": "^2.5.19",
"@techor/jest-dom": "^2.5.19",
"@techor/pack": "^2.5.19",
"@techor/repo": "^2.5.19",
"@techor/version": "^2.5.19",
"@types/jest": "^29.5.2",
"@types/node": "^20.4.0",
"cross-env": "^7.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"dependencies": {
"@master/css": "workspace:^",
"@master/css-validator": "workspace:^",
"explore-config": "^2.2.10"
"explore-config": "^2.5.19"
},
"devDependencies": {
"@angular-eslint/template-parser": "^16.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/utils/resolve-context.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import settings from '../settings'
import exploreConfig from 'explore-config'

export default function resolveContext (context) {
export default function resolveContext(context) {
const resolvedSettings = Object.assign(settings, context.settings?.['@master/css'])
const config = resolvedSettings?.config
return {
Expand Down
8 changes: 4 additions & 4 deletions packages/extractor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@
"dependencies": {
"@master/css": "workspace:^",
"@master/css-validator": "workspace:^",
"@techor/extend": "^2.5.4",
"@techor/glob": "^2.5.4",
"@techor/log": "^2.5.4",
"@techor/extend": "^2.5.19",
"@techor/glob": "^2.5.19",
"@techor/log": "^2.5.19",
"chokidar": "^3.5.3",
"explore-config": "^2.5.4",
"explore-config": "^2.5.19",
"minimatch": "^9.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/language-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@master/css": "workspace:^",
"@master/css-language-service": "workspace:^",
"explore-config": "^2.2.10",
"explore-config": "^2.5.19",
"js-beautify": "^1.14.7",
"minimatch": "^9.0.1",
"vscode-languageserver": "^7.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
},
"dependencies": {
"@master/css-server": "workspace:^",
"@techor/log": "^2.5.4",
"@techor/glob": "^2.5.4",
"explore-config": "^2.5.4"
"@techor/log": "^2.5.19",
"@techor/glob": "^2.5.19",
"explore-config": "^2.5.19"
},
"devDependencies": {
"pretty-bytes": "^6.1.0",
Expand Down
Loading

0 comments on commit 83ef1cd

Please sign in to comment.