1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 15:48:31 -04:00
jarv.is/.eslintrc.js

46 lines
1.1 KiB
JavaScript

module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: [
"@jakejarvis/eslint-config",
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
plugins: ["@typescript-eslint", "prettier"],
rules: {
"react/no-unescaped-entities": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-var-requires": "off",
"prettier/prettier": [
"error",
{
// normal .prettierrc config:
singleQuote: false,
tabWidth: 2,
printWidth: 120,
},
],
},
overrides: [
{
files: ["*.md", "*.mdx"],
extends: ["plugin:mdx/recommended"],
rules: {
"react/jsx-no-undef": "off",
"prettier/prettier": [
"error",
{
// normal .prettierrc config:
singleQuote: false,
tabWidth: 2,
printWidth: 120,
},
],
},
},
],
ignorePatterns: ["README.md"],
};