Skip to content

Commit

Permalink
build: Updated linter dependencies (#1230)
Browse files Browse the repository at this point in the history
Applied fixes for new rules
  • Loading branch information
rkaraivanov committed Jun 4, 2024
1 parent 2168b19 commit f7f2b87
Show file tree
Hide file tree
Showing 16 changed files with 105 additions and 84 deletions.
8 changes: 7 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.0/schema.json",
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"include": [
"src/**/*.ts",
Expand Down Expand Up @@ -35,6 +35,12 @@
},
"suspicious": {
"noExplicitAny": "off"
},
"nursery": {
"useImportExtensions": {
"level": "error",
"fix": "none"
}
}
}
}
Expand Down
126 changes: 66 additions & 60 deletions package-lock.json

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

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
"clean:styles": "rimraf --glob \"src/**/*.css.ts\"",
"clean:docs": "rimraf ./docs",
"lint": "npm run lint:biome && npm run lint:lit-analyzer && npm run lint:prettier && npm run lint:styles",
"lint:biome": "biome lint ./",
"lint:biome": "biome lint",
"lint:lit-analyzer": "lit-analyzer",
"lint:prettier": "prettier \"**/*.ts\" --check --ignore-path .gitignore",
"lint:styles": "stylelint \"src/**/*.scss\"",
"format": "biome check --apply ./ && prettier \"**/*.ts\" --write --ignore-path .gitignore",
"format": "biome check --fix && prettier \"**/*.ts\" --write --ignore-path .gitignore",
"release": "node scripts/gen-changelog.mjs",
"test": "npm run build && wtr --coverage",
"test:watch": "npm run build && concurrently -k -r \"npm:watch-scss\" \"npm:watch-ts\" \"wtr --watch\"",
Expand All @@ -58,7 +58,7 @@
"lit": "^3.1.3"
},
"devDependencies": {
"@biomejs/biome": "1.7.3",
"@biomejs/biome": "1.8.0",
"@custom-elements-manifest/analyzer": "^0.9.6",
"@igniteui/material-icons-extended": "^3.0.2",
"@open-wc/testing": "^4.0.0",
Expand Down Expand Up @@ -86,16 +86,16 @@
"madge": "^7.0.0",
"node-watch": "^0.7.4",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"prettier": "^3.3.0",
"rimraf": "^5.0.7",
"sass": "^1.77.3",
"sass": "^1.77.4",
"sass-embedded": "^1.77.2",
"sinon": "^18.0.0",
"storybook": "^8.1.5",
"stylelint": "^16.6.1",
"stylelint-config-standard-scss": "^13.1.0",
"stylelint-prettier": "^5.0.0",
"stylelint-scss": "^6.3.0",
"stylelint-scss": "^6.3.1",
"ts-lit-plugin": "^2.0.2",
"tslib": "^2.6.2",
"typedoc": "^0.25.13",
Expand All @@ -105,7 +105,7 @@
},
"lint-staged": {
"*.{js,ts,cjs,mjs,jsx,tsx}": [
"biome check --apply --no-errors-on-unmatched",
"biome check --fix --no-errors-on-unmatched",
"prettier --write",
"git add"
]
Expand Down
2 changes: 1 addition & 1 deletion src/components/button-group/themes/button.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css } from 'lit';

import type { Themes } from '../../../theming/types';
import type { Themes } from '../../../theming/types.js';
// Shared Styles
import { styles as bootstrap } from './shared/button/button.bootstrap.css.js';
import { styles as fluent } from './shared/button/button.fluent.css.js';
Expand Down
2 changes: 1 addition & 1 deletion src/components/button-group/themes/group.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { css } from 'lit';

import type { Themes } from '../../../theming/types';
import type { Themes } from '../../../theming/types.js';
// Dark Overrides
import { styles as bootstrapDark } from './dark/button-group.bootstrap.css.js';
import { styles as fluentDark } from './dark/button-group.fluent.css.js';
Expand Down
4 changes: 2 additions & 2 deletions src/components/calendar/calendar-rendering.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { elementUpdated, expect, fixture, html } from '@open-wc/testing';

import { IgcCalendarComponent, defineComponents } from '../../index.js';
import type IgcDaysViewComponent from './days-view/days-view';
import type IgcMonthsViewComponent from './months-view/months-view';
import type IgcDaysViewComponent from './days-view/days-view.js';
import type IgcMonthsViewComponent from './months-view/months-view.js';

describe('Calendar Rendering', () => {
const DIFF_OPTIONS = {
Expand Down
5 changes: 4 additions & 1 deletion src/components/common/decorators/blazorDeepImport.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import type { AbstractConstructor, Constructor } from '../mixins/constructor';
import type {
AbstractConstructor,
Constructor,
} from '../mixins/constructor.js';

/**
* Indicates a class isn't imported at the root of the API, so needs to be referred to with a deep import in the wrappers.
Expand Down
Loading

0 comments on commit f7f2b87

Please sign in to comment.