@hermeznetwork/eslint-config-hermez
Version:
Shared ESLint config for all the frontends projects in Hermez
28 lines (27 loc) • 695 B
JavaScript
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
},
settings: {
react: {
version: "17",
},
},
plugins: ["@typescript-eslint", "react", "react-hooks"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
],
ignorePatterns: ["/node_modules", "/build/", "/public/"],
rules: {
"react/prop-types": "off",
"react/display-name": "off",
"react/jsx-curly-brace-presence": "warn"
},
};