@locale-labs/miniapp-builder 0.1.9 → 0.2.0-dev.53.be8dbe4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ // Config ESLint compartida para miniapps. La miniapp la consume con:
2
+ // export { default } from '@locale-labs/miniapp-builder/configs/eslint.config.mjs';
3
+ // Los plugins se resuelven desde las deps del builder (la miniapp solo necesita eslint).
4
+ import globals from 'globals';
5
+ import pluginJs from '@eslint/js';
6
+ import tseslint from 'typescript-eslint';
7
+ import eslintConfigPrettier from 'eslint-config-prettier';
8
+
9
+ export default [
10
+ {
11
+ ignores: ['build/', 'dist/', 'node_modules/', 'server/', 'test/', 'supabase/functions/'],
12
+ },
13
+ {
14
+ files: ['src/**/*.{js,mjs,cjs,ts,tsx}'],
15
+ languageOptions: {
16
+ globals: globals.browser,
17
+ },
18
+ },
19
+ pluginJs.configs.recommended,
20
+ ...tseslint.configs.recommended,
21
+ eslintConfigPrettier,
22
+ ];
@@ -0,0 +1,7 @@
1
+ {
2
+ "semi": true,
3
+ "singleQuote": true,
4
+ "tabWidth": 2,
5
+ "trailingComma": "es5",
6
+ "printWidth": 100
7
+ }
@@ -0,0 +1,11 @@
1
+ // Config default para miniapps. Si la miniapp tiene su propio tailwind.config.*
2
+ // en la raíz, el builder usa ese en vez de este.
3
+ /** @type {import('tailwindcss').Config} */
4
+ module.exports = {
5
+ // Relativo al cwd (la raíz de la miniapp), no a este archivo.
6
+ content: ['./src/**/*.{html,js,ts,tsx}'],
7
+ theme: {
8
+ extend: {},
9
+ },
10
+ plugins: [],
11
+ };
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "module": "ESNext",
6
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
7
+ "skipLibCheck": true,
8
+ "moduleResolution": "bundler",
9
+ "allowImportingTsExtensions": true,
10
+ "resolveJsonModule": true,
11
+ "isolatedModules": true,
12
+ "noEmit": true,
13
+ "strict": true,
14
+ "noUnusedLocals": true,
15
+ "noUnusedParameters": true,
16
+ "noFallthroughCasesInSwitch": true
17
+ }
18
+ }