Skip to content

Commit

Permalink
chore: setup eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Y-Ko committed Jan 15, 2025
1 parent 503d792 commit 0dba77e
Show file tree
Hide file tree
Showing 9 changed files with 3,334 additions and 1,119 deletions.
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
}
]
]
}
}
9 changes: 3 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
## [0.0.3](https://github.com/chingu-x/chingu-dashboard-modules/compare/v0.0.2...v0.0.3) (2025-01-15)


### Bug Fixes

* test ([f976466](https://github.com/chingu-x/chingu-dashboard-modules/commit/f976466cd88d8650893e78f6bb9152c944bd59f3))
- test ([f976466](https://github.com/chingu-x/chingu-dashboard-modules/commit/f976466cd88d8650893e78f6bb9152c944bd59f3))

## [0.0.2](https://github.com/chingu-x/chingu-dashboard-modules/compare/v0.0.1...v0.0.2) (2025-01-15)


### Bug Fixes

* set package to public ([e4b7a1e](https://github.com/chingu-x/chingu-dashboard-modules/commit/e4b7a1eb49baf75a8e3fec8856fcfdf3e5ca79aa))
- set package to public ([e4b7a1e](https://github.com/chingu-x/chingu-dashboard-modules/commit/e4b7a1eb49baf75a8e3fec8856fcfdf3e5ca79aa))

## [0.0.1](https://github.com/chingu-x/chingu-dashboard-modules/compare/v0.0.0...v0.0.1) (2025-01-15)


### Bug Fixes

* update secret ([91cacd6](https://github.com/chingu-x/chingu-dashboard-modules/commit/91cacd6d20df2061d448f7b3f5987506154cf465))
- update secret ([91cacd6](https://github.com/chingu-x/chingu-dashboard-modules/commit/91cacd6d20df2061d448f7b3f5987506154cf465))
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# chingu-dashboard-modules

Modules shared across the Chingu Dashboard and related apps
2 changes: 1 addition & 1 deletion commitlint.config.cjs → commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
export default {
extends: ["@commitlint/config-conventional"],
};
23 changes: 23 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintPluginPrettier from "eslint-plugin-prettier";

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
plugins: {
prettier: eslintPluginPrettier,
},
rules: {
"prettier/prettier": "error",
},
},
{
ignores: ["dist/", "node_modules/**/*"],
},
];
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"scripts": {
"dev": "vite",
"build": "vite build && tsc",
"lint": "eslint",
"preview": "vite preview",
"prepublishOnly": "pnpm build",
"prepare": "husky install",
Expand All @@ -27,10 +28,17 @@
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.1",
"@semantic-release/npm": "^12.0.1",
"@typescript-eslint/eslint-plugin": "^8.20.0",
"@typescript-eslint/parser": "^8.20.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.14.0",
"husky": "^9.1.7",
"prettier": "^3.4.2",
"semantic-release": "^24.2.1",
"typescript": "~5.6.2",
"typescript-eslint": "^8.20.0",
"vite": "^6.0.5"
},
"exports": {
Expand All @@ -47,4 +55,4 @@
"types": "./dist/types/types/index.d.ts"
}
}
}
}
Loading

0 comments on commit 0dba77e

Please sign in to comment.