Skip to content

Commit

Permalink
lint configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Bezerra <[email protected]>
  • Loading branch information
luluiz committed Oct 9, 2024
1 parent 9d5c01c commit 8bc00a9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ignorePatterns:
- "packages/**/wasm/*.js"
- "!.storybook"
- storybook-static
- coverage

plugins:
- file-progress
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ coverage/
# SonarQube files
.sonar_lock
.scannerwork
eslint-report.json
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"node": ">=16"
},
"scripts": {
"clean": "tsc --build --clean packages/**/tsconfig.json && rimraf .webpack */.webpack dist storybook-screenshots storybook-static",
"clean": "tsc --build --clean packages/**/tsconfig.json && rimraf .webpack */.webpack dist storybook-screenshots storybook-static coverage",
"build:packages": "tsc --build --verbose packages/*/tsconfig.json packages/*/src/*/tsconfig.json",
"desktop:build:dev": "webpack --mode development --progress --config desktop/webpack.config.ts",
"desktop:build:prod": "webpack --mode production --progress --config desktop/webpack.config.ts",
Expand All @@ -35,6 +35,7 @@
"license-check": "ts-node ci/license-check.ts",
"lint": "TIMING=1 eslint --report-unused-disable-directives --fix .",
"lint:ci": "TIMING=1 eslint --report-unused-disable-directives --config .eslintrc.ci.yaml .",
"lint:ci:report": "yarn lint:ci -f json -o eslint-report.json",
"lint:unused-exports": "ts-node ./ci/lint-unused-exports.ts",
"lint:dependencies": "ts-node ./ci/lint-dependencies.ts .",
"test": "jest",
Expand Down
3 changes: 3 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# General
sonar.projectKey=Lichtblick-Suite_lichtblick
sonar.organization=lichtblick-suite

# TS and Lint
sonar.typescript.tsconfigPath=tsconfig.json
sonar.eslint.reportPaths=eslint-report.json

# Path to sources
sonar.sources=benchmark,ci,desktop,packages,web
Expand Down
9 changes: 1 addition & 8 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
// Do not "include" files here if they are already included by another tsconfig.json.
{
"extends": "@lichtblick/tsconfig/base",
"include": [
"./*.ts",
"./*.js",
"./**/jest.config.ts",
"./ci/**/*.ts",
"./resources/notarize.ts",
"./package.json"
],
"include": ["./**/*.ts", "./**/*.tsx", "./**/*.js", "./package.json"],
"compilerOptions": {
"jsx": "react-jsx",
"module": "commonjs",
Expand Down

0 comments on commit 8bc00a9

Please sign in to comment.