Skip to content

Commit

Permalink
Merge branch 'main' into selfie-instruction-screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ayinloya authored Jan 24, 2024
2 parents 2cfd0c5 + 4df97eb commit 782b978
Show file tree
Hide file tree
Showing 27 changed files with 2,886 additions and 1,569 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ on:
pull_request:
workflow_dispatch:
jobs:
components:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/components
steps:
- name: checkout code
uses: actions/checkout@v4
- name: set node version
uses: actions/setup-node@v3
- name: install dependencies
run: npm ci
- name: lint
run: npm run lint
smart-camera-web:
runs-on: ubuntu-latest
defaults:
Expand Down
8 changes: 8 additions & 0 deletions package-lock.json

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

42 changes: 42 additions & 0 deletions packages/components/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: 'airbnb-base',
overrides: [
{
env: {
node: true,
},
files: [
'.eslintrc.{js,cjs}',
],
parserOptions: {
sourceType: 'script',
},
},
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'class-methods-use-this': 'off',
indent: ['error', 2],
'max-classes-per-file': 'off',
'max-len': 'off',
'no-console': ['error', { allow: ['warn', 'error', 'info'] }],
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-underscore-dangle': 'off',
'no-unused-vars': ['error', { args: 'after-used', ignoreRestSiblings: false, vars: 'all' }],
'prefer-destructuring': ['error', {
array: false,
object: true,
}, {
enforceForRenamedProperties: false,
}],
'sort-keys': 'error',
},
};
Loading

0 comments on commit 782b978

Please sign in to comment.