Skip to content

chore: hourcekeeping, bump all (dev) deps #381

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

Merged
merged 1 commit into from
Mar 15, 2025
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
16 changes: 8 additions & 8 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
root = true
root=true

[*]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style=space
indent_size=2
tab_width=2
end_of_line=lf
charset=utf-8
trim_trailing_whitespace=true
insert_final_newline=true
2 changes: 2 additions & 0 deletions .env.yarn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_PREFER_PRETTIER=1
NODE_OPTIONS="--no-warnings=ESLintRCWarning"
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc

This file was deleted.

18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup target Node.js to enable Corepack
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Enable Corepack
run: corepack enable

- name: Setup Node.js ${{ matrix.node }} with cache
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
Expand All @@ -46,8 +38,12 @@ jobs:
- name: Install Dependencies
run: yarn --immutable

- name: Build, Lint and Test
run: yarn run-s build lint test typecov
- name: Build and Typecov
run: yarn run-s build typecov
env:
EFF_NO_LINK_RULES: true
PARSER_NO_WATCH: true

- name: Lint and Test
if: ${{ matrix.node != 16}}
run: yarn run-s lint test
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Enable Corepack
run: corepack enable

- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Enable Corepack
run: corepack enable

- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
.type-coverage
.yarn/*
!.yarn/plugins
!.yarn/releases
lib
node_modules
*.log
.npmrc
1 change: 0 additions & 1 deletion .lintstagedrc.cjs

This file was deleted.

1 change: 1 addition & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@1stg/lint-staged/tsc'
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.yarn
dist
lib
node_modules
/pnpm-lock.yaml
**/*.svg
2 changes: 1 addition & 1 deletion .renovaterc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": [
"@1stg"
"github>1stG/configs"
]
}
2 changes: 1 addition & 1 deletion .size-limit.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"path": "./lib/index.js",
"limit": "3.2kB"
"limit": "3.1kB"
}
]
935 changes: 935 additions & 0 deletions .yarn/releases/yarn-4.7.0.cjs

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ nodeLinker: node-modules
plugins:
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
spec: "https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js"
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'

yarnPath: .yarn/releases/yarn-4.7.0.cjs
78 changes: 40 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,37 +72,39 @@ const {
createTypeScriptImportResolver,
} = require('eslint-import-resolver-typescript')

module.exports = [{
settings: {
"import-x/resolver-next": [
createTypeScriptImportResolver({
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
module.exports = [
{
settings: {
'import-x/resolver-next': [
createTypeScriptImportResolver({
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`

// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default

// use <root>/path/to/folder/tsconfig.json
project: "path/to/folder",
// use <root>/path/to/folder/tsconfig.json
project: 'path/to/folder',

// Multiple tsconfigs (Useful for monorepos)
// Multiple tsconfigs (Useful for monorepos)

// use a glob pattern
project: "packages/*/tsconfig.json",
// use a glob pattern
project: 'packages/*/tsconfig.json',

// use an array
project: [
"packages/module-a/tsconfig.json",
"packages/module-b/tsconfig.json"
],
// use an array
project: [
'packages/module-a/tsconfig.json',
'packages/module-b/tsconfig.json',
],

// use an array of glob patterns
project: [
"packages/*/tsconfig.json",
"other-packages/*/tsconfig.json"
]
}),
]
}
}]
// use an array of glob patterns
project: [
'packages/*/tsconfig.json',
'other-packages/*/tsconfig.json',
],
}),
],
},
},
]
```

But if you are using `eslint-plugin-import` or the older version of `eslint-plugin-import-x`, you can't use require/import:
Expand Down Expand Up @@ -153,11 +155,11 @@ Add the following to your `.eslintrc` config:
"plugins": ["import"],
"rules": {
// turn on errors for missing imports
"import/no-unresolved": "error"
"import/no-unresolved": "error",
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
"typescript": {
Expand All @@ -176,17 +178,17 @@ Add the following to your `.eslintrc` config:
// use an array
"project": [
"packages/module-a/tsconfig.json",
"packages/module-b/tsconfig.json"
"packages/module-b/tsconfig.json",
],

// use an array of glob patterns
"project": [
"packages/*/tsconfig.json",
"other-packages/*/tsconfig.json"
]
}
}
}
"other-packages/*/tsconfig.json",
],
},
},
},
}
```

Expand All @@ -210,7 +212,7 @@ Default:
"node",
"node-addons",
"browser",
"default"
"default",
]
```

Expand All @@ -227,7 +229,7 @@ Default:
".js",
".jsx",
".json",
".node"
".node",
]
```

Expand All @@ -242,11 +244,11 @@ Default:
// `.tsx` can also be compiled as `.js`
".tsx",
".d.ts",
".js"
".js",
],
".jsx": [".tsx", ".d.ts", ".jsx"],
".cjs": [".cts", ".d.cts", ".cjs"],
".mjs": [".mts", ".d.mts", ".mjs"]
".mjs": [".mts", ".d.mts", ".mjs"],
}
```

Expand All @@ -268,7 +270,7 @@ Default:
"module",
"jsnext:main",

"main"
"main",
]
```

Expand Down
24 changes: 24 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// @ts-check

import recommended from '@1stg/eslint-config'

/**
* @import {TSESLint} from '@typescript-eslint/utils'
* @type {TSESLint.FlatConfig.ConfigArray}
*/
const config = [
{
ignores: ['tests'],
},
...recommended,
{
files: ['dummy.js/*'],
languageOptions: {
globals: {
module: false,
},
},
},
]

export default config
Loading
Loading