mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed eslintrc
This commit is contained in:
parent
130dfa8974
commit
f8b3adc4e2
2 changed files with 35 additions and 20 deletions
47
.eslintrc.js
47
.eslintrc.js
|
@ -1,5 +1,11 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ['plugin:@typescript-eslint/recommended', 'prettier/@typescript-eslint', 'airbnb', 'airbnb-base'],
|
extends: [
|
||||||
|
'plugin:@typescript-eslint/recommended',
|
||||||
|
'prettier/@typescript-eslint',
|
||||||
|
'airbnb',
|
||||||
|
'airbnb-base',
|
||||||
|
'prettier',
|
||||||
|
],
|
||||||
parser: '@typescript-eslint/parser',
|
parser: '@typescript-eslint/parser',
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
ecmaFeatures: {
|
ecmaFeatures: {
|
||||||
|
@ -25,6 +31,18 @@ module.exports = {
|
||||||
'global-require': 1,
|
'global-require': 1,
|
||||||
'react/no-multi-comp': 1,
|
'react/no-multi-comp': 1,
|
||||||
'react/jsx-filename-extension': 0,
|
'react/jsx-filename-extension': 0,
|
||||||
|
'react/jsx-wrap-multilines': [
|
||||||
|
'warn',
|
||||||
|
{
|
||||||
|
declaration: 'parens',
|
||||||
|
assignment: 'parens',
|
||||||
|
return: 'parens',
|
||||||
|
arrow: 'parens',
|
||||||
|
condition: 'ignore',
|
||||||
|
logical: 'ignore',
|
||||||
|
prop: 'ignore',
|
||||||
|
},
|
||||||
|
],
|
||||||
'@typescript-eslint/camelcase': 0,
|
'@typescript-eslint/camelcase': 0,
|
||||||
'@typescript-eslint/interface-name-prefix': 0,
|
'@typescript-eslint/interface-name-prefix': 0,
|
||||||
camelcase: 0,
|
camelcase: 0,
|
||||||
|
@ -43,18 +61,21 @@ module.exports = {
|
||||||
'max-line-length': [true, 100],
|
'max-line-length': [true, 100],
|
||||||
// 'max-len': 100,
|
// 'max-len': 100,
|
||||||
// 'max-len': { "code": 100 },
|
// 'max-len': { "code": 100 },
|
||||||
'max-len': ["warn", { "code": 100 }],
|
'max-len': ['warn', { code: 100 }],
|
||||||
"template-curly-spacing": "off",
|
'template-curly-spacing': 'off',
|
||||||
"comma-dangle": ["warn", {
|
'comma-dangle': [
|
||||||
"arrays": "always-multiline",
|
'warn',
|
||||||
"objects": "always-multiline",
|
{
|
||||||
"imports": "always-multiline",
|
arrays: 'always-multiline',
|
||||||
"exports": "always-multiline",
|
objects: 'always-multiline',
|
||||||
"functions": "never"
|
imports: 'always-multiline',
|
||||||
}],
|
exports: 'always-multiline',
|
||||||
indent: "off",
|
functions: 'never',
|
||||||
"import/order": "off",
|
},
|
||||||
"arrow-parens": ["warn", "as-needed"],
|
],
|
||||||
|
indent: 'off',
|
||||||
|
'import/order': 'off',
|
||||||
|
'arrow-parens': ['warn', 'as-needed'],
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
document: false,
|
document: false,
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
import {
|
import { api, errorMiddleware, resultMiddleware, configWithToken } from '~/utils/api';
|
||||||
api,
|
|
||||||
authMiddleware,
|
|
||||||
errorMiddleware,
|
|
||||||
resultMiddleware,
|
|
||||||
configWithToken,
|
|
||||||
} from '~/utils/api';
|
|
||||||
import { API } from '~/constants/api';
|
import { API } from '~/constants/api';
|
||||||
import { IResultWithStatus } from '~/redux/types';
|
import { IResultWithStatus } from '~/redux/types';
|
||||||
import { userLoginTransform } from '~/redux/auth/transforms';
|
import { userLoginTransform } from '~/redux/auth/transforms';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue