@bob-obringer/eslint-plugin
Version:
ESLint plugin for Bob Obringer's projects
32 lines (31 loc) • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.next = void 0;
exports.next = {
extends: ["next/core-web-vitals", "plugin:@bob-obringer/recommended"],
rules: {
"@bob-obringer/next-prefer-named-exports": "error",
"no-restricted-imports": [
"error",
{
patterns: [
{
group: [".*"],
message: "Relative imports not allowed, use absolute imports instead. ",
},
],
paths: [
{
name: "react",
importNames: ["default"],
message: "No need to import React directly. ",
},
{
name: "next/router",
message: "Use `next/navigation` instead. ",
},
],
},
],
},
};