kakawa/.eslintrc.json
2024-10-08 10:05:58 +05:30

49 lines
1.2 KiB
JSON

{
"extends": [
"prettier",
"next/core-web-vitals",
"next/typescript",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:@next/next/recommended"
],
"plugins": ["prettier", "eslint-plugin-import", "@typescript-eslint"],
"rules": {
"lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
],
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"newlines-between": "always"
}
], // Optionally, disable the default ESLint sort rule if you're using it
"no-duplicate-imports": "error",
"prettier/prettier": "error",
"react/no-unescaped-entities": "error",
"react/react-in-jsx-scope": "off",
"react/prop-types": [2, { "ignore": ["className", "position"] }],
"import/no-deprecated": "warn",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
},
"env": {
"browser": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
}
}
}