Skip to content

Commit 6f5f677

Browse files
matejchalkBioPhoton
authored andcommitted
fix: lint config and errors
1 parent 7e5e743 commit 6f5f677

File tree

8 files changed

+545
-262
lines changed

8 files changed

+545
-262
lines changed

package-lock.json

+514-254
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,22 @@
1212
},
1313
"devDependencies": {
1414
"@nx/esbuild": "16.7.4",
15+
"@nx/eslint-plugin": "16.7.4",
1516
"@nx/js": "16.7.4",
16-
"@nx/plugin": "^16.7.4",
17-
"@nx/vite": "16.7.0",
18-
"@nx/workspace": "16.7.0",
17+
"@nx/plugin": "16.7.4",
18+
"@nx/vite": "16.7.4",
19+
"@nx/workspace": "16.7.4",
1920
"@types/eslint": "^8.44.2",
2021
"@types/jest": "^29.4.0",
2122
"@types/node": "18.7.1",
23+
"@typescript-eslint/eslint-plugin": "^5.62.0",
24+
"@typescript-eslint/parser": "^5.62.0",
2225
"@vitest/coverage-c8": "~0.32.0",
2326
"@vitest/ui": "~0.32.0",
2427
"esbuild": "^0.17.17",
2528
"eslint": "~8.46.0",
2629
"lighthouse": "^11.0.0",
27-
"nx": "16.7.0",
30+
"nx": "16.7.4",
2831
"nx-cloud": "latest",
2932
"prettier": "^2.6.2",
3033
"type-fest": "^4.3.1",

packages/cli/.eslintrc.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@
1818
"files": ["*.json"],
1919
"parser": "jsonc-eslint-parser",
2020
"rules": {
21-
"@nx/dependency-checks": "error"
21+
"@nx/dependency-checks": [
22+
"error",
23+
{
24+
"ignoredDependencies": [
25+
"vite",
26+
"@nx/vite",
27+
"@quality-metrics/eslint-plugin",
28+
"@quality-metrics/lighthouse-plugin"
29+
]
30+
}
31+
]
2232
}
2333
}
2434
]

packages/cli/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"name": "@quality-metrics/cli",
33
"version": "0.0.1",
4-
"dependencies": {}
4+
"dependencies": {
5+
"bundle-require": "^4.0.1"
6+
}
57
}

packages/plugin-eslint/.eslintrc.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
"files": ["*.json"],
1919
"parser": "jsonc-eslint-parser",
2020
"rules": {
21-
"@nx/dependency-checks": "error"
21+
"@nx/dependency-checks": [
22+
"error",
23+
{ "ignoredDependencies": ["vite", "@nx/vite"] }
24+
]
2225
}
2326
}
2427
]

packages/plugin-eslint/src/lib/eslint-plugin.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ type ESLintPluginConfig = {
44
config: string;
55
};
66

7+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
78
export function eslintPlugin({ config }: ESLintPluginConfig) {
89
return {
910
name: 'eslint',

packages/plugin-lighthouse/.eslintrc.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
"files": ["*.json"],
1919
"parser": "jsonc-eslint-parser",
2020
"rules": {
21-
"@nx/dependency-checks": "error"
21+
"@nx/dependency-checks": [
22+
"error",
23+
{ "ignoredDependencies": ["vite", "@nx/vite"] }
24+
]
2225
}
2326
}
2427
]

packages/plugin-lighthouse/src/lib/lighthouse-plugin.ts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ type LighthousePluginConfig = {
44
config: string;
55
};
66

7+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
78
export function lighthousePlugin({ config }: LighthousePluginConfig) {
89
return {
910
name: 'lighthouse',

0 commit comments

Comments
 (0)