Skip to content

Release: 2.0.0

Choose a tag to compare

@qdanik qdanik released this 06 Apr 18:05
· 16 commits to main since this release
1b9bd46

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,
        },
      ],
    },
  },
];