Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies, eslint 9 #13

Merged
merged 4 commits into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .eslintignore

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintrc.cjs

This file was deleted.

26 changes: 6 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1,22 @@
*.log
tmp
.idea
.storybook-out
env-*.txt
dist
node_modules
packages/*/dist
packages/*/.rpt2_cache
# local runs
test-report.xml
# ci runs
test-results
/build
**/__generated__/*.json
.eslintcache
tsconfig.tsbuildinfo

# yarn zero install enabled
.eslintcache
.pnp.*
.storybook-out
.yarn/*
#!.yarn/cache
!.yarn/unplugged
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions


node_modules

# ci will cache these instead
.yarn/cache
**/__generated__/*.json

# releaseFinalize
packages/*/LICENSE
packages/*/.npmignore
packages/*/.npmignore
File renamed without changes.
8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

8 changes: 2 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.useFlatConfig": true,
"typescript.enablePromptUseWorkspaceTsdk": true,
"testing.automaticallyOpenPeekView": "never",
"vitest.commandLine": "yarn test --"
// "[typescript]": {
// "editor.defaultFormatter": "vscode.typescript-language-features"
// }
"testing.automaticallyOpenPeekView": "never"
}
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.0.2.cjs

This file was deleted.

894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ npmScopes:
npmAlwaysAuth: true
npmRegistryServer: "https://npm.pkg.github.com"

yarnPath: .yarn/releases/yarn-4.0.2.cjs
yarnPath: .yarn/releases/yarn-4.3.1.cjs
26 changes: 26 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import af from '@alienfast/eslint-config'
import tseslint from 'typescript-eslint'

/**
* Project eslint configuration.
*
* View config with `npx @eslint/config-inspector`
*/
export default tseslint.config({
name: 'project',
extends: [...af.configs.recommended],
// languageOptions: {
// parserOptions: {
// // project: true, // find the closest tsconfig file. ['./tsconfig*.json', './packages/*/tsconfig.json'],
// // project: [
// // //
// // './tsconfig*.json',
// // './packages/*/tsconfig.json',
// // ],

// warnOnUnsupportedTypeScriptVersion: true,
// EXPERIMENTAL_useProjectService: true,
// // tsconfigRootDir: import.meta.dirname,
// },
// },
})
70 changes: 30 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"version": "11.0.6",
"private": true,
"packageManager": "[email protected]",
"packageManager": "[email protected]",
"prettier": "@alienfast/prettier-config",
"workspaces": [
"packages/*"
],
Expand All @@ -16,7 +17,7 @@
"clean": "node ./scripts/clean.js",
"clean:yarn": "node ./scripts/clean-yarn.js",
"reset": "node ./scripts/reset.js",
"lint:fix": "eslint . --cache --ext .js,.ts,.tsx --fix",
"lint:fix": "eslint . --cache --fix",
"test": "lerna exec --stream --parallel -- yarn test",
"release": "yarn auto shipit",
"build:finalize": "lerna exec --stream --parallel -- buildFinalize"
Expand All @@ -37,49 +38,38 @@
]
},
"devDependencies": {
"@alienfast/ci": "^8.5.8",
"@alienfast/eslint-config": "^4.0.9",
"@alienfast/ci": "^8.5.9",
"@alienfast/eslint-config": "^5.1.9",
"@alienfast/logger": "workspace:*",
"@alienfast/prettier-config": "^1.0.0",
"@alienfast/tsconfig": "^1.0.1",
"@auto-it/all-contributors": "^11.0.4",
"@auto-it/first-time-contributor": "^11.0.4",
"@auto-it/released": "^11.0.4",
"@lerna-lite/changed": "^3.2.1",
"@lerna-lite/cli": "^3.2.1",
"@lerna-lite/exec": "^3.2.1",
"@lerna-lite/list": "^3.2.1",
"@lerna-lite/publish": "^3.2.1",
"@lerna-lite/version": "^3.2.1",
"@rushstack/eslint-patch": "^1.7.2",
"@auto-it/all-contributors": "^11.1.6",
"@auto-it/first-time-contributor": "^11.1.6",
"@auto-it/released": "^11.1.6",
"@lerna-lite/changed": "^3.6.0",
"@lerna-lite/cli": "^3.6.0",
"@lerna-lite/exec": "^3.6.0",
"@lerna-lite/list": "^3.6.0",
"@lerna-lite/publish": "^3.6.0",
"@lerna-lite/version": "^3.6.0",
"@types/babel__core": "^7",
"@types/node": "^20.11.8",
"@types/node": "^20.14.9",
"@types/rimraf": "^3",
"@vitejs/plugin-react": "^4.2.1",
"auto": "^11.0.4",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.6.3",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-storybook": "^0.6.15",
"eslint-plugin-unicorn": "^50.0.1",
"eslint-plugin-unused-imports": "^3.0.0",
"execa": "^8.0.1",
"husky": "^9.0.6",
"lint-staged": "^15.2.0",
"@vitejs/plugin-react": "^4.3.1",
"auto": "^11.1.6",
"eslint": "^9.6.0",
"execa": "^9.3.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"npm-run-all": "^4.1.5",
"prettier": "^3.2.4",
"rimraf": "^5.0.5",
"typescript": "^5.3.3",
"vite": "^5.0.12",
"vite-plugin-dts": "^3.7.2",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.2.2"
"prettier": "^3.3.2",
"rimraf": "^5.0.7",
"typescript": "^5.5.3",
"typescript-eslint": "^7.15.0",
"vite": "^5.3.3",
"vite-plugin-dts": "^3.9.1",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
Expand Down
4 changes: 2 additions & 2 deletions packages/logger-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"devDependencies": {
"@alienfast/logger": "workspace:*",
"clean-package": "^2.2.0",
"vite": "^5.0.12",
"vitest": "^1.2.2"
"vite": "^5.3.3",
"vitest": "^1.6.0"
},
"peerDependencies": {
"@alienfast/logger": "*"
Expand Down
5 changes: 3 additions & 2 deletions packages/logger-browser/src/BrowserLogWriter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */

/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable no-console */
import { browser, isNode, jsonify, Level, LogWriter } from '@alienfast/logger'

Expand Down
4 changes: 2 additions & 2 deletions packages/logger-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"devDependencies": {
"@alienfast/logger": "workspace:*",
"clean-package": "^2.2.0",
"vite": "^5.0.12",
"vitest": "^1.2.2"
"vite": "^5.3.3",
"vitest": "^1.6.0"
},
"peerDependencies": {
"@alienfast/logger": "*"
Expand Down
8 changes: 4 additions & 4 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"postpack": "clean-package restore -c ../../.clean-package.json"
},
"dependencies": {
"@types/node": "^20.11.8"
"@types/node": "^20.14.9"
},
"devDependencies": {
"@alienfast/ci": "^8.5.8",
"@alienfast/ci": "^8.5.9",
"@alienfast/logger-node": "workspace:*",
"clean-package": "^2.2.0",
"vite": "^5.0.12",
"vitest": "^1.2.2"
"vite": "^5.3.3",
"vitest": "^1.6.0"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
Expand Down
2 changes: 2 additions & 0 deletions packages/logger/src/Log.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */
/* eslint-disable @typescript-eslint/no-unsafe-argument */
/* eslint-disable no-console */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */

import { jsonify } from './jsonify'
import { Level } from './Level'
Expand Down
1 change: 0 additions & 1 deletion scripts/clean-yarn.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { rimraf as r } from 'rimraf'

// TODO: promote this as a script to @alienfast/ci once it is stable

// eslint-disable-next-line no-console
console.log('Cleaning yarn...')

await $`yarn tsc -b --clean`
Expand Down
1 change: 0 additions & 1 deletion scripts/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { rimraf as r } from 'rimraf'

// TODO: promote this as a script to @alienfast/ci once it is stable

// eslint-disable-next-line no-console
console.log('Cleaning...')

await $`yarn tsc -b --clean`
Expand Down
1 change: 0 additions & 1 deletion scripts/reset.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
import { dirname } from 'node:path'
import { fileURLToPath } from 'node:url'

Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"references": [
{ "path": "packages/logger" },
{ "path": "packages/logger-browser" },
{ "path": "packages/logger-node" },
{ "path": "tsconfig.node.json" }
{ "path": "packages/logger-node" }
]
}
22 changes: 0 additions & 22 deletions tsconfig.node.json

This file was deleted.

2 changes: 1 addition & 1 deletion vite.config.lib.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'node:path'
import * as path from 'node:path'

import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
Expand Down
Loading
Loading