Listen to and share the music in the Atmosphere. musicsky.up.railway.app/
nextjs atproto music typescript react
3
fork

Configure Feed

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

refactor: simplify eslint config and fix .well-known tsconfig include

Remove redundant import-x recommended/typescript presets that overlapped
with eslint-config-next's built-in import plugin. Register import-x
directly for the single no-cycle rule. Merge scattered rule blocks and
explicitly include .well-known directory in tsconfig for project service.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: mejsiejdev <mejsiejdev@gmail.com>

authored by

mejsiejdev
Claude Opus 4.6
and committed by tangled.org baff87c2 ba93ab1e

+8 -10
+6 -9
eslint.config.mjs
··· 2 2 import nextVitals from "eslint-config-next/core-web-vitals"; 3 3 import nextTs from "eslint-config-next/typescript"; 4 4 import eslintConfigPrettier from "eslint-config-prettier/flat"; 5 - import { flatConfigs as importXConfigs } from "eslint-plugin-import-x"; 5 + import importXPlugin from "eslint-plugin-import-x"; 6 6 7 7 const eslintConfig = defineConfig([ 8 8 ...nextVitals, 9 9 ...nextTs, 10 - importXConfigs.recommended, 11 - importXConfigs.typescript, 12 10 { 13 11 files: ["**/*.ts", "**/*.tsx"], 14 12 languageOptions: { ··· 17 15 tsconfigRootDir: import.meta.dirname, 18 16 }, 19 17 }, 18 + plugins: { 19 + "import-x": importXPlugin, 20 + }, 20 21 rules: { 21 22 "@typescript-eslint/no-floating-promises": "error", 22 23 "@typescript-eslint/no-misused-promises": "error", ··· 24 25 "@typescript-eslint/no-unnecessary-condition": "error", 25 26 "@typescript-eslint/switch-exhaustiveness-check": "error", 26 27 "@typescript-eslint/prefer-nullish-coalescing": "error", 28 + "import-x/no-cycle": "error", 27 29 }, 28 30 }, 29 31 { ··· 45 47 "no-var": "error", 46 48 "prefer-const": "error", 47 49 "no-nested-ternary": "error", 48 - "import-x/no-cycle": "error", 50 + "arrow-body-style": ["error", "as-needed"], 49 51 }, 50 52 }, 51 53 globalIgnores([ ··· 56 58 "src/lib/lexicons/**", 57 59 ]), 58 60 eslintConfigPrettier, 59 - { 60 - rules: { 61 - "arrow-body-style": ["error", "as-needed"], 62 - }, 63 - }, 64 61 ]); 65 62 66 63 export default eslintConfig;
+2 -1
tsconfig.json
··· 31 31 "**/*.tsx", 32 32 ".next/types/**/*.ts", 33 33 ".next/dev/types/**/*.ts", 34 - "**/*.mts" 34 + "**/*.mts", 35 + "src/app/.well-known/**/*.ts" 35 36 ], 36 37 "exclude": ["node_modules", "src/lib/lexicons"] 37 38 }