forked from LaconicNetwork/icns-frontend
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
module.exports = {
|
|
parser: "@typescript-eslint/parser",
|
|
extends: [
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:prettier/recommended",
|
|
"plugin:import/typescript",
|
|
"next/core-web-vitals",
|
|
],
|
|
plugins: ["react-hooks", "unicorn", "import"],
|
|
parserOptions: {
|
|
ecmaVersion: 2018,
|
|
sourceType: "module",
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
rules: {
|
|
"prettier/prettier": "error",
|
|
"react/prop-types": "off",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/self-closing-comp": "error",
|
|
"react/jsx-fragments": ["error", "element"],
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
"@typescript-eslint/no-use-before-define": "off",
|
|
"@typescript-eslint/no-empty-function": "warn",
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"@typescript-eslint/camelcase": "off",
|
|
"react-hooks/rules-of-hooks": "error",
|
|
"react-hooks/exhaustive-deps": "warn",
|
|
"unicorn/filename-case": [
|
|
"error",
|
|
{
|
|
case: "kebabCase",
|
|
},
|
|
],
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
};
|