0.10.0 • Published 9 months ago
@loopr-ai/craft
Licence
—
Version
0.10.0
Deps
6
Size
1.5 MB
Vulns
0
Weekly
0
Loopr Craft
A component library for LooprAI products. Based out of Material UI.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptionsproperty like this:
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
- Replace
plugin:@typescript-eslint/recommendedtoplugin:@typescript-eslint/recommended-type-checkedorplugin:@typescript-eslint/strict-type-checked - Optionally add
plugin:@typescript-eslint/stylistic-type-checked - Install eslint-plugin-react and add
plugin:react/recommended&plugin:react/jsx-runtimeto theextendslist
Component Library
Ref: Creating a Component Library Fast(using Vite's library mode)
Commands
- Build the library:
npm run build-lib
Usage
This needs to be built and published to a package manager (npm, yarn, etc) eventually. For now, it can be used as a local dependency. by following these steps:
- Build the library:
npm run build-lib - follow the steps in Use npm pack to test your packages locally
More Info: TBD