use-page-headings-tree
Version:
A React hook to get tree data from a list of heading nodes
29 lines (28 loc) • 561 B
JavaScript
module.exports = {
env: {
jest: true,
es6: true,
node: true,
},
extends: ["eslint:recommended", "plugin:react/recommended"],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: "module",
},
plugins: ["react", "react-hooks"],
rules: {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"jsx-quotes": "off",
},
};