Skip to content

Commit 884d960

Browse files
committed
fix(linting): fixed linting to handle linting for JAVA and XML files
1 parent bf084a1 commit 884d960

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

checkstyle.jar

18.8 MB
Binary file not shown.

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@
1313
}
1414
},
1515
"lint-staged": {
16-
"src/**/*.{ts,css,html}": [
16+
"src/**/*.{ts,js}": [
1717
"eslint --fix"
18-
]
18+
],
19+
"*.java": [
20+
"java -jar checkstyle.jar -c checkstyle.xml {{files}}"
21+
],
22+
"*.xml": [
23+
"xmllint --noout {{files}}"
24+
]
1925
},
2026
"devDependencies": {
2127
"@commitlint/cli": "^19.8.0",

0 commit comments

Comments
 (0)