Skip to content

Commit

Permalink
feat(bundle): produce bundles for CDN
Browse files Browse the repository at this point in the history
Summary:
#6

- add bundle files for CDN usage
- make type checking more strict, add error handling
- optimize eslint and prettier setup

Reviewed By: cabanier

Differential Revision:
D51244828

Privacy Context Container: L1179008

fbshipit-source-id: 7a470d0a39f2058ea29d8862d95e7e4d69f41c9d
  • Loading branch information
felixtrz authored and facebook-github-bot committed Nov 13, 2023
1 parent 579f4b2 commit 18c8542
Show file tree
Hide file tree
Showing 14 changed files with 2,129 additions and 609 deletions.
8 changes: 5 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
module.exports = {
export default {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'prettier',
'plugin:@typescript-eslint/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
plugins: ['@typescript-eslint', 'prettier'],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
Expand All @@ -30,6 +31,7 @@ module.exports = {
{ vars: 'all', args: 'all', argsIgnorePattern: '^_' },
],
'lines-between-class-members': ['warn', 'always'],
'prettier/prettier': 'error',
},
root: true,
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
!/.yarn/cache
#/.pnp.*

lib/
build/
dist/
docs/
node_modules/
Expand Down
6 changes: 4 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"filepath": "./.eslintrc.js",
"semi": true,
"endOfLine": "lf",
"useTabs": true,
"trailingComma": "all",
"arrowParens": "always",
"printWidth": 80,
"tabWidth": 2,
"singleQuote": true,
"jsxSingleQuote": false
}
}
Loading

0 comments on commit 18c8542

Please sign in to comment.