Skip to content

Commit

Permalink
Ignore eslint imports in example folders
Browse files Browse the repository at this point in the history
  • Loading branch information
BethanyBerkowitz committed Dec 6, 2022
1 parent 287eb50 commit 3c6885f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/node.js.yml
Expand Up @@ -90,22 +90,5 @@ jobs:
- name: Build
run: npm ci

- name: Build Typescript example projects
run: |
cd packages/js/examples/aws-lambda-typescript
npm ci
- name: Install Vue examples deps
run: |
cd packages/vue/examples/vue2
npm ci --force
cd ../vue3
npm ci
- name: Install React Native example deps
run: |
cd packages/react-native/example
npm ci --force
- name: Run lint checks
run: npm run lint
7 changes: 7 additions & 0 deletions packages/js/examples/.eslintrc.json
@@ -0,0 +1,7 @@
{
"rules": {
// Since these are just examples, the monorepo's linting should not
// fail just because we didn't run `npm install` in the example folders
"import/no-unresolved": ["off"]
}
}
7 changes: 7 additions & 0 deletions packages/react-native/example/.eslintrc.json
@@ -0,0 +1,7 @@
{
"rules": {
// Since these are just examples, the monorepo's linting should not
// fail just because we didn't run `npm install` in the example folders
"import/no-unresolved": ["off"]
}
}
8 changes: 8 additions & 0 deletions packages/vue/examples/.eslintrc.json
@@ -0,0 +1,8 @@
{
"rules": {
// Since these are just examples, the monorepo's linting should not
// fail just because we didn't run `npm install` in the example folders
"import/no-unresolved": ["off"],
"import/default": ["off"]
}
}

0 comments on commit 3c6885f

Please sign in to comment.