-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1221 from international-labour-organization/refac…
…tor/configs Monorepo Maintance
- Loading branch information
Showing
150 changed files
with
1,636 additions
and
1,675 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@ilo-org/prettier-config": major | ||
--- | ||
|
||
### Prettier 3 Upgrade | ||
|
||
We've upgraded to Prettier 3. This is a breaking change because Prettier 3 introduces several updates and deprecations that might impact your current formatting setup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ilo-org/typescript-config": major | ||
--- | ||
|
||
Typescript package no longer exports lib with `["dom", "dom.iterable"]`, so it's more generic and can be used in more projects. This is a breaking change because it might impact your current TypeScript setup. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
"@ilo-org/eslint-config": major | ||
--- | ||
|
||
### ESLint 9 Upgrade | ||
|
||
We've upgraded to ESLint 9! 🚀 This is a breaking change because ESLint 9 introduces several updates and deprecations that might impact your current linting setup. | ||
|
||
The `@ilo-org/eslint-config` package now uses ESLint 9 and exports only flat configuration objects. | ||
|
||
Here are the available configs: | ||
|
||
| Config Name | Description | Internal Extends | | ||
| ----------- | -------------------------------- | ---------------- | | ||
| js | Base JavaScript config | ⛔ | | ||
| recommended | Recommended one with `js` + `ts` | `js` | | ||
| react | React config | `ts` -> `js` | | ||
|
||
Make sure to check out the [ESLint 9 migration guide](https://eslint.org/docs/latest/use/migrate-to-9.0.0) for details on updating your configuration. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* This optionally loads husky except in CI environments | ||
* like Github Actions where the lint-staged pre-commit hook | ||
* seems to break. CI is always set to true in Github Actions | ||
* so there's no need to set it manually. | ||
*/ | ||
|
||
if (process.env.CI === "true") { | ||
process.stdout.write("CI detected, skipping husky install \n"); | ||
process.exit(0); | ||
} | ||
|
||
const husky = await import("husky"); | ||
process.stdout.write("husky - Installing Git hooks \n"); | ||
|
||
husky.default.install(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
"use strict"; | ||
import js from "./variants/base-js.config.js"; | ||
import ts from "./variants/base-ts.config.js"; | ||
import react from "./variants/react.config.js"; | ||
|
||
module.exports = { | ||
extends: [require.resolve("./base")], | ||
const configs = { | ||
js, | ||
recommended: ts, | ||
react, | ||
}; | ||
|
||
export default configs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import js from "@eslint/js"; | ||
import prettier from "eslint-plugin-prettier/recommended"; | ||
import globals from "globals"; | ||
import { IgnoreConfig } from "./ignores.config.js"; | ||
|
||
/** @type {import("eslint").Linter.Config} */ | ||
const BaseJSConfig = { | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
}, | ||
rules: { | ||
"no-console": ["warn", { allow: ["warn", "error"] }], | ||
"prettier/prettier": "error", | ||
"no-duplicate-imports": "warn", | ||
"no-await-in-loop": "warn", | ||
"no-unused-vars": [ | ||
"warn", | ||
{ | ||
ignoreRestSiblings: true, | ||
argsIgnorePattern: "^_", | ||
varsIgnorePattern: "^_", | ||
}, | ||
], | ||
}, | ||
}; | ||
|
||
export default [js.configs.recommended, prettier, BaseJSConfig, IgnoreConfig]; |
Oops, something went wrong.