Skip to content

Commit

Permalink
ci: 🎡 get eslint working
Browse files Browse the repository at this point in the history
  • Loading branch information
dancrumb committed May 5, 2024
1 parent a316cba commit c4ae96e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .pnp.cjs

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

Binary file not shown.
2 changes: 2 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import tsParse from '@typescript-eslint/parser'
export default [
{
files: ["**/*.ts"],
},{
ignores: [
'.pnp.*',
'**/dist/**',
'**/coverage/**',
'**/node_modules/**',
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"scripts": {
"build": "yarn run tsc -p tsconfig.production.json",
"prerelease": "yarn run prepare",
"lint": "yarn run eslint -c .eslintrc.js",
"lint:ci": "yarn run eslint -c .eslintrc.js --format junit --output-file ./reports/eslint.xml src",
"lint": "yarn run eslint",
"lint:ci": "yarn run eslint --format junit --output-file ./reports/eslint.xml src",
"postversion": "git push && git push --tags",
"prettier:cli": "yarn run prettier \"src/**/*.ts\"",
"prettier:check": "yarn run prettier:cli -- -l",
Expand All @@ -36,6 +36,7 @@
"@typescript-eslint/parser": "7.8.0",
"@vitest/coverage-v8": "^1.6.0",
"eslint": "9.2.0",
"eslint-formatter-junit": "^8.40.0",
"git-cz": "4.9.0",
"prettier": "3.2.5",
"ts-node": "10.9.2",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"target": "es2019",
"resolveJsonModule": true
},
"include": [".eslintrc.js", "*.d.ts", "src/**/*", "**/*.spec.ts", "vitest.config.ts"],
"include": ["eslint.config..js", "*.d.ts", "src/**/*", "**/*.spec.ts", "vitest.config.ts"],
"exclude": ["dist", "coverage"]
}
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ __metadata:
"@typescript-eslint/parser": 7.8.0
"@vitest/coverage-v8": ^1.6.0
eslint: 9.2.0
eslint-formatter-junit: ^8.40.0
git-cz: 4.9.0
prettier: 3.2.5
ts-node: 10.9.2
Expand Down Expand Up @@ -1404,6 +1405,13 @@ __metadata:
languageName: node
linkType: hard

"eslint-formatter-junit@npm:^8.40.0":
version: 8.40.0
resolution: "eslint-formatter-junit@npm:8.40.0"
checksum: dd114912a75c7ab86dc8733a6dad3637a07961963612b0496495a6226865a62dd6bff8a346ef8e3a2957227726d901dc130c969ecc714d2ef86e7424b5b17ed8
languageName: node
linkType: hard

"eslint-scope@npm:^8.0.1":
version: 8.0.1
resolution: "eslint-scope@npm:8.0.1"
Expand Down

0 comments on commit c4ae96e

Please sign in to comment.