This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
people/src/frontend/app/desk/.eslintrc.js
Anthony LC 4999472005 🚀(app-desk) generate app Desk with nextjs
Generate the app with nextjs, includes:
- typescript
- eslint
- prettier
- css modules
2024-01-10 11:14:16 +01:00

55 lines
1.2 KiB
JavaScript

module.exports = {
extends: [
'next',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
],
settings: {
next: {
rootDir: 'src/frontend/app/desk',
},
},
rules: {
'@typescript-eslint/no-explicit-any': 'error',
'block-scoped-var': 'error',
'no-alert': 'error',
'import/no-duplicates': ['error', { considerQueryString: false }],
'import/order': [
'error',
{
alphabetize: {
order: 'asc',
},
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
],
pathGroups: [
{
pattern: '+@/**',
group: 'internal',
},
],
pathGroupsExcludedImportTypes: ['builtin'],
'newlines-between': 'always',
},
],
'no-unused-vars': [
'error',
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'sort-imports': [
'error',
{
ignoreDeclarationSort: true,
},
],
},
};