Files
smart-city-digital-twin-mar…/smart-app-city/frontend/node_modules/rtl-detect/.eslintrc.json
Eric FELIXINE e30ae8ed09 feat(smart-app): implement complete mobile app MVP
- App.tsx: full navigation (Auth stack + Main tabs with 5 screens)
- Auth: LoginScreen, RegisterScreen, ForgotPasswordScreen
- HomeScreen: dashboard with IoT metrics, weather widget, alerts, quick actions, sensors
- MapScreen: interactive map with layer toggles (6 layers)
- MarketplaceScreen: categories (6), products (5), search
- ChatScreen: AI chat with quick prompts (4), bot responses
- ProfileScreen: user info, stats, menu (9 items), logout
- AlertsScreen: alert list with severity, acknowledge
- SensorsScreen: sensor list with type filters (6 types), search
- ZonesScreen: zone cards with stats
- SettingsScreen: language picker (FR/EN/ES/DE), privacy, about
- Stores: iotStore (sensors, zones, alerts), notificationStore, uiStore + i18n
- Hooks: useSensors, useAlerts, useNotifications, useLocation
- Components: Card, Button, LoadingSpinner, ErrorBoundary, Header
- Services: iotService, notificationService (with axios API client)
- Utils: formatters (temp, AQI, noise, dates), validators (email, password, IBAN)
- Theme: colors.ts with full design system (Blue Ocean palette)
- Ditto: fixed MongoDB connection, new JWT secrets, official gateway image
2026-06-01 18:00:35 -04:00

165 lines
3.7 KiB
JSON

{
"env": {
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"camelcase": "off",
"consistent-return": "off",
"vars-on-top": "off",
"new-cap": "off",
"no-console": "off",
"no-constant-condition": "error",
"no-empty": "off",
"no-native-reassign": "off",
"no-underscore-dangle": "off",
"no-undef": [
"error",
{
"typeof": false
}
],
"no-process-exit": "off",
"no-unused-expressions": "off",
"no-regex-spaces": "off",
"no-catch-shadow": "off",
"no-lonely-if": "off",
"brace-style": [
"warn",
"stroustrup"
],
"no-shadow": [
"warn",
{
"allow": [
"err",
"done"
]
}
],
"no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^internals$",
"args": "none"
}
],
"one-var": [
"error",
"never"
],
"handle-callback-err": [
"error",
"^(e|err|error)$"
],
"array-bracket-spacing": "warn",
"dot-notation": "warn",
"eol-last": "warn",
"no-trailing-spaces": "warn",
"no-eq-null": "warn",
"no-extend-native": "warn",
"no-redeclare": "warn",
"no-loop-func": "warn",
"yoda": [
"warn",
"never"
],
"sort-vars": "warn",
"arrow-parens": [
"error",
"always"
],
"arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"quotes": [
"error",
"single"
],
"consistent-this": [
"error",
"self"
],
"new-parens": "error",
"no-array-constructor": "error",
"no-new-object": "error",
"no-spaced-func": "error",
"no-mixed-spaces-and-tabs": "error",
"keyword-spacing": [
"error",
{
"before": true,
"after": true
}
],
"semi": [
"error",
"always"
],
"semi-spacing": [
"error",
{
"before": false,
"after": true
}
],
"space-infix-ops": "error",
"space-unary-ops": [
"warn",
{
"words": true,
"nonwords": false
}
],
"strict": [
"error",
"global"
],
"eqeqeq": "error",
"curly": [
"error",
"all"
],
"no-eval": "error",
"no-else-return": "error",
"no-return-assign": "error",
"no-new-wrappers": "error",
"comma-dangle": [
"error",
"never"
],
"no-sparse-arrays": "error",
"no-ex-assign": "error",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"space-before-function-paren": [
"error",
{
"anonymous": "always",
"named": "never"
}
],
"func-style": [
"error",
"expression"
],
"object-curly-spacing": [
"error",
"always"
],
"no-unsafe-finally": "error",
"no-useless-computed-key": "error"
}
}