Repository navigation
Release: 2.0.0
Release Note
- Enhanced performance, security and maintainability
- Added support of ESLint 9+
Migration to ESlint 9+
If you are using ESLint 9 or later, you can use the plugin without any additional configuration. Just install it and add it to your ESLint configuration.
import eslintPluginPath from 'eslint-plugin-path';
export default [
{
files: ['*.{js,ts,jsx,tsx}'],
plugins: {
path: eslintPluginPath,
},
rules: {
'path/no-relative-imports': [
'error',
{
maxDepth: 2,
suggested: false,
},
],
},
},
];