module.exports = { env: { node: true }, extends: [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react/recommended", "plugin:prettier/recommended" ], parser: "@typescript-eslint/parser", root: true, plugins: ["simple-import-sort"], rules: { "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/no-empty-interface": "off", "prettier/prettier": ["warn", { usePrettierrc: true }], "react/react-in-jsx-scope": "off", "@typescript-eslint/no-unused-vars": ["warn"], "simple-import-sort/exports": "warn", "simple-import-sort/imports": [ "warn", { groups: [ // Side effect imports. ["^\\u0000"], // Packages `react` related packages come first. ["^react", "^@?\\w"], // Internal packages. ["^(@prism)(/.*|$)"], // Environment variables ["^(@env)(/.*|$)"], // Parent imports. Put `..` last. ["^\\.\\.(?!/?$)", "^\\.\\./?$"], // Other relative imports. Put same-folder imports and `.` last. ["^\\./(?=.*/)(?!/?$)", "^\\.(?!/?$)", "^\\./?$"], // Style imports. ["^.+\\.?(css)$"] ] } ] } };