Untitled
unknown
plain_text
2 years ago
3.2 kB
6
Indexable
{
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"plugin:eslint-comments/recommended"
],
"plugins": ["react", "@typescript-eslint", "jsx-a11y", "prettier", "import"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"ignorePatterns": ["**/node_modules/*", "**/dist/*"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/ban-ts-comment": ["error", { "ts-ignore": "allow-with-description" }],
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight"],
"aspects": ["invalidHref", "preferButton"]
}
],
"prettier/prettier": ["error", {}, { "usePrettierrc": true }],
"eslint-comments/require-description": ["error", { "ignore": [] }],
"no-console": ["error", { "allow": ["warn", "error"] }],
"import/order": [
"error",
{
"groups": ["builtin", "external", "parent", "sibling", "index", "object", "type"],
"pathGroups": [
{
"pattern": "@/**/**",
"group": "parent",
"position": "before"
}
],
"alphabetize": { "order": "asc" }
}
],
"no-restricted-imports": [
"error",
{
"patterns": ["../"]
}
],
"arrow-body-style": ["error", "as-needed"]
},
"settings": {
"react": {
"version": "detect"
}
}
}
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.tsdk": "node_modules\\typescript\\lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.preferences.importModuleSpecifier": "non-relative",
"vsicons.associations.folders": [
{
"icon": "redux",
"extensions": ["stores"],
"light": true,
"format": "FileFormat.svg"
},
{
"icon": "log",
"extensions": ["constants"],
"light": true,
"format": "FileFormat.svg"
}
]
}
{
"semi": false,
"endOfLine": "crlf",
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 120,
"jsxSingleQuote": true,
"plugins": ["prettier-plugin-tailwindcss"],
"overrides": [
{
"files": "*.json",
"options": {
"printWidth": 200
}
}
]
}
Editor is loading...