UNPKG

@bob-obringer/eslint-plugin

Version:
34 lines (33 loc) 937 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.react = void 0; exports.react = { extends: ["plugin:@bob-obringer/recommended", "plugin:react/recommended"], plugins: ["react-hooks"], settings: { react: { version: "detect", }, }, rules: { "react/react-in-jsx-scope": "off", "no-restricted-imports": [ "error", { patterns: [ { group: ["./..*"], message: "Path's beginning with `./..` are not allowed.", }, ], paths: [ { name: "react", importNames: ["default"], message: "No need to import React directly. ", }, ], }, ], }, };