{ "env": { "browser": true, "commonjs": true, "es2021": true, "node": true // add this line to allow Node.js-specific globals }, "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": "latest", "sourceType": "module" // add this line to allow 'import' and 'export' statements }, "rules": { // allow importing ts extensions "sort-imports": ["error", { "ignoreCase": true, "ignoreDeclarationSort": true, "ignoreMemberSort": false, "memberSyntaxSortOrder": ["none", "all", "multiple", "single"] }], "import/extensions": [ "error", "ignorePackages", { "js": "never", "ts": "never", "tsx": "never" } ] }, "plugins": ["import"] }