Skip to content

Commit

Permalink
feat: support monorepo development
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasholzer committed Jul 20, 2023
1 parent 1daaf5b commit 04172d9
Show file tree
Hide file tree
Showing 38 changed files with 795 additions and 450 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ const { overrides } = require('@netlify/eslint-config-node')

module.exports = {
extends: '@netlify/eslint-config-node',
plugins: ['sort-destructure-keys'],
plugins: [
'sort-destructure-keys',
// custom workspace lint rules found under `./tools/lint-rules`
'workspace',
],
parserOptions: {
ecmaVersion: '2020',
babelOptions: {
Expand All @@ -12,9 +16,11 @@ module.exports = {
},
},
rules: {
'workspace/no-process-cwd': 'error',
// Those rules from @netlify/eslint-config-node are currently disabled
// TODO: remove, so those rules are enabled
complexity: 0,
'no-inline-comments': 'off',
'func-style': 'off',
'max-depth': 0,
'max-lines': 0,
Expand Down
12 changes: 11 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
"@netlify/build-info": "7.7.1",
"@netlify/config": "20.6.4",
"@netlify/edge-bundler": "8.16.4",
"@netlify/framework-info": "9.8.10",
"@netlify/local-functions-proxy": "1.1.1",
"@netlify/serverless-functions-api": "1.5.2",
"@netlify/zip-it-and-ship-it": "9.13.1",
Expand Down Expand Up @@ -186,6 +185,7 @@
"write-file-atomic": "5.0.1"
},
"devDependencies": {
"eslint-plugin-workspace": "file:./tools/lint-rules",
"@babel/preset-react": "7.22.5",
"@netlify/eslint-config-node": "7.0.0",
"@netlify/functions": "1.6.0",
Expand Down

0 comments on commit 04172d9

Please sign in to comment.