frontend client for gemstone. decentralised workplace app
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: lint rule for using our text component

serenity a5f261ea 09a74f90

+15
+15
eslint.config.js
··· 5 5 const tseslint = require("typescript-eslint"); 6 6 const { defineConfig, globalIgnores } = require("eslint/config"); 7 7 8 + const restrictedImportPaths = [ 9 + { 10 + name: "react-native", 11 + importNames: ["Text"], 12 + message: 13 + "Don't use base React Native's Text component. Instead, use the Text component exported by @/components/primitives/Text", 14 + }, 15 + ]; 16 + 8 17 module.exports = defineConfig([ 9 18 globalIgnores(["*.config.*", "dist/*"]), 10 19 expoConfig, ··· 22 31 rules: { 23 32 "@typescript-eslint/consistent-type-imports": "error", 24 33 "@typescript-eslint/array-type": ["error", { default: "generic" }], 34 + "no-restricted-imports": [ 35 + "error", 36 + { 37 + paths: restrictedImportPaths, 38 + }, 39 + ], 25 40 }, 26 41 languageOptions: { 27 42 parserOptions: { projectService: true, tsconfigRootDir: __dirname },