Since this is an internal repository, you need to install it slightly different than usual:
yarn add -D eslint-plugin-sort-imports@https://github.com/i-celeste-aurora/eslint-plugin-sort-imports// your other imports
import sortImports from 'eslint-plugin-sort-imports';
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
export default [
{
files: ['**/*.{js,mjs,cjs,ts,mts,jsx,tsx}'],
// ... your other settings
},
{
plugins: {
// ... your other plugins
'sort-imports': sortImports
},
rules: {
// ... your other rules
'sort-imports/sort-rule': 'error'
}
}
];Just run your lint