Skip to content

Commit 53f0f36

Browse files
lukasholzereduardoboucas
andauthoredJan 4, 2024
feat: add mono repository support (#123)
* feat: add mono repository support chore: fix fixture preparation * Update src/run/handlers/cache.cts Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com> * Update .eslintrc.cjs Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com> * Update .eslintrc.cjs Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com> * chore: update comment --------- Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>
1 parent 18f18e3 commit 53f0f36

Some content is hidden

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

72 files changed

+4113
-464
lines changed
 

‎.eslintrc.cjs

+36-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ module.exports = {
1616
'import/no-namespace': 'off',
1717
'import/extensions': 'off',
1818
'max-depth': 'off',
19+
'func-style': 'off',
20+
'class-methods-use-this': 'off',
21+
'promise/prefer-await-to-then': 'off',
22+
'promise/prefer-await-to-callbacks': 'off',
23+
'promise/catch-or-return': 'off',
24+
'promise/always-return': 'off',
25+
'max-nested-callbacks': 'off',
26+
'no-inline-comments': 'off',
27+
'line-comment-position': 'off',
28+
'max-lines': 'off',
1929
},
2030
overrides: [
2131
...overrides,
@@ -29,8 +39,32 @@ module.exports = {
2939
{
3040
files: ['src/**/*.test.*'],
3141
rules: {
32-
'max-statements': off,
33-
'max-lines-per-function': off,
42+
'max-statements': 'off',
43+
'max-lines-per-function': 'off',
44+
},
45+
},
46+
{
47+
files: ['src/build/**/*.ts'],
48+
rules: {
49+
'no-restricted-imports': [
50+
'error',
51+
{
52+
paths: [
53+
{
54+
name: 'path',
55+
importNames: ['resolve'],
56+
message:
57+
'Please use `PluginContext.resolve` instead to comply with our monorepo support',
58+
},
59+
{
60+
name: 'node:path',
61+
importNames: ['resolve'],
62+
message:
63+
'Please use `PluginContext.resolve` instead to comply with our monorepo support',
64+
},
65+
],
66+
},
67+
],
3468
},
3569
},
3670
],

‎.github/workflows/run-tests.yml

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ jobs:
7878
run: npm ci
7979
- name: 'Build'
8080
run: npm run build
81+
- name: 'Lint'
82+
run: npm run lint
8183
- name: 'Prepare Fixtures'
8284
run: npm run pretest
8385
- name: 'Test'

0 commit comments

Comments
 (0)
Please sign in to comment.