Skip to content

Commit 3423735

Browse files
JounQinmarcalexiei
authored andcommittedFeb 27, 2024
feat!: migrate to pure ESM (#3850)
BREAKING CHANGE: migrate to pure ESM * feat: migrate to pure ESM * chore: update snapshot * fix: load `parserPreset` with another `await` * test: migrate to vitest * test: remove no replacement `--runInBand` test-ci script * chore: fix code reviews * refactor(load): rewrite resolve logic * fix(config-nx-scopes): fix syntax error * feat(resolve-extends): add resolveFrom and loadParserPreset * feat(load): use resolveFrom and loadParserPreset from resolve-extends * test: include only @commitlint/* packages src in coverage * test: explicit import vitest utilities * test: remove @jest/globals from dependencies * fix(resolve-extends): `resolveFrom` output should be platform aware * test: restore NO_COLOR to test script * chore: fix linting issues * fix: should use fileURLToPath instead of pathname for Windows compatibility * Apply suggestions from code review * fix: should reuse `cli` instead call `yargs()` * feat(cli): set terminalWidth as wrap to avoid work break on help * Update .eslintrc.cjs * feat: migrate @commitlint/config-conventional to pure ESM --------- Co-authored-by: Marco Pasqualetti <marco.pasqualetti@live.com>
1 parent 93fa15e commit 3423735

File tree

225 files changed

+3258
-3352
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+3258
-3352
lines changed
 

‎.eslintrc.js ‎.eslintrc.cjs

+3-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
'import/no-extraneous-dependencies': [
3232
'error',
3333
{
34-
devDependencies: ['**/*.test.js', '**/*.test.ts'],
34+
devDependencies: ['**/*.test.js', '**/*.test.ts', 'vitest'],
3535
},
3636
],
3737
},
@@ -61,15 +61,14 @@ module.exports = {
6161
},
6262
{
6363
files: ['*.test.ts', '*.test.js'],
64-
env: {
65-
jest: true,
66-
},
6764
extends: ['plugin:jest/recommended'],
6865
rules: {
6966
'@typescript-eslint/no-explicit-any': 'off',
7067
'@typescript-eslint/no-var-requires': 'off',
7168
// disallow non-import statements appearing before import statements
7269
'import/first': 'off',
70+
'import/no-extraneous-dependencies': 'off',
71+
'jest/no-deprecated-functions': 'off'
7372
},
7473
},
7574
],

‎.github/workflows/CI.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ jobs:
2929
run: yarn build
3030

3131
- name: Test
32-
run: yarn test-ci
32+
run: yarn test
3333

3434
nodeJsBaselineAptCompatibility:
3535
name: NodeJS installed from stock Ubuntu-LTS packages (not external sources)
3636
runs-on: ubuntu-22.04
3737
container:
38-
image: "ubuntu:24.04"
38+
image: 'ubuntu:24.04'
3939
steps:
4040
- uses: actions/checkout@v4
4141

@@ -55,5 +55,4 @@ jobs:
5555
run: yarn build
5656

5757
- name: Run Tests
58-
run: yarn test-ci
59-
58+
run: yarn test

0 commit comments

Comments
 (0)
Please sign in to comment.