icns-frontend/.eslintrc.js

46 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-11-30 10:36:59 +00:00
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:import/typescript",
2022-11-30 14:58:48 +00:00
"next/core-web-vitals",
2022-11-30 10:36:59 +00:00
],
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",
},
},
};