mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00

* fixed paths to match refactored backend * fixed some paths according to new backend * fixed auth urls for new endpoints * fixed urls * fixed error handling * fixes * fixed error handling on user form * fixed error handling on oauth * using fallback: true on node pages * type button for comment attach buttons * fixed return types of social delete * changed the way we upload user avatars
50 lines
1.2 KiB
JavaScript
50 lines
1.2 KiB
JavaScript
module.exports = {
|
|
extends: ['plugin:react/recommended', 'plugin:@next/next/recommended'],
|
|
rules: {
|
|
'react/prop-types': 0,
|
|
'react/display-name': 0,
|
|
'react/react-in-jsx-scope': 0,
|
|
'@next/next/no-img-element': 0,
|
|
'import/order': [
|
|
'error',
|
|
{
|
|
alphabetize: { order: 'asc' },
|
|
'newlines-between': 'always',
|
|
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'unknown'],
|
|
pathGroups: [
|
|
{
|
|
pattern: 'react',
|
|
group: 'builtin',
|
|
position: 'before',
|
|
},
|
|
{ pattern: '~/**', group: 'internal' },
|
|
{ pattern: './**', group: 'sibling' },
|
|
],
|
|
pathGroupsExcludedImportTypes: ['react'],
|
|
},
|
|
],
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
paths: [
|
|
{
|
|
name: 'ramda',
|
|
message:
|
|
'import from \'~/utils/ramda\' instead',
|
|
},
|
|
],
|
|
},
|
|
]
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 7,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['import', 'react-hooks'],
|
|
parser: '@typescript-eslint/parser',
|
|
settings: {
|
|
react: {
|
|
version: '17',
|
|
},
|
|
},
|
|
};
|