Skip to content

Commit df7b71e

Browse files
committed
fix: lint
1 parent 2555814 commit df7b71e

File tree

6 files changed

+108
-101
lines changed

6 files changed

+108
-101
lines changed

.eslintrc.js

Lines changed: 29 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,86 +6,79 @@ module.exports = {
66
'airbnb/hooks',
77
'airbnb-typescript',
88
'prettier',
9-
"plugin:@typescript-eslint/recommended"
9+
'plugin:@typescript-eslint/recommended',
1010
],
1111
parser: '@typescript-eslint/parser',
1212
parserOptions: {
13-
project: './tsconfig.json'
13+
project: './tsconfig.json',
1414
},
1515
plugins: [
1616
'@typescript-eslint',
1717
'prettier',
1818
'prefer-arrow',
1919
'autofix',
20-
'unused-imports'
20+
'unused-imports',
2121
],
2222
settings: {
2323
'import/resolver': {
2424
node: {
2525
extensions: ['.js', '.jsx', '.ts', '.tsx'],
26-
paths: ['./']
27-
}
28-
}
26+
paths: ['./'],
27+
},
28+
},
2929
},
3030
env: {
31-
es6: true
31+
es6: true,
3232
},
3333
rules: {
34-
"no-console": "off",
35-
"@typescript-eslint/lines-between-class-members": "off",
36-
"@typescript-eslint/no-explicit-any": "off",
37-
"@typescript-eslint/no-useless-constructor": "off",
38-
"@typescript-eslint/no-throw-literal": "off",
34+
'no-console': 'off',
35+
'@typescript-eslint/lines-between-class-members': 'off',
36+
'@typescript-eslint/no-explicit-any': 'off',
37+
'@typescript-eslint/no-useless-constructor': 'off',
38+
'@typescript-eslint/no-throw-literal': 'off',
3939
'unused-imports/no-unused-vars-ts': [
4040
'warn',
4141
{
4242
vars: 'all',
4343
varsIgnorePattern: '^_',
4444
args: 'after-used',
45-
argsIgnorePattern: '^_'
46-
}
45+
argsIgnorePattern: '^_',
46+
},
4747
],
4848
'autofix/no-debugger': 'error',
4949
'prefer-destructuring': [
5050
'error',
5151
{
5252
array: false,
53-
object: true
53+
object: true,
5454
},
5555
{
56-
enforceForRenamedProperties: false
57-
}
56+
enforceForRenamedProperties: false,
57+
},
5858
],
5959
'prefer-arrow/prefer-arrow-functions': [
60-
"warn",
60+
'warn',
6161
{
62-
"disallowPrototype": true,
63-
"singleReturnOnly": false,
64-
"classPropertiesAllowed": false
65-
}
62+
disallowPrototype: true,
63+
singleReturnOnly: false,
64+
classPropertiesAllowed: false,
65+
},
6666
],
6767
'import/prefer-default-export': 0,
6868
'react/jsx-props-no-spreading': 0,
6969
'@typescript-eslint/no-use-before-define': [
7070
'error',
71-
{ variables: false, classes: true, functions: true }
71+
{ variables: false, classes: true, functions: true },
7272
],
7373
'no-param-reassign': 0,
74-
'no-underscore-dangle': [
75-
'error',
76-
{ allowAfterThis: true, allow: ['_id'] }
77-
],
78-
quotes: [2, 'single', { avoidEscape: true }],
74+
'no-underscore-dangle': ['error', { allowAfterThis: true, allow: ['_id'] }],
75+
'quotes': [2, 'single', { avoidEscape: true }],
7976
'no-use-before-define': 0,
8077
'import/no-extraneous-dependencies': [
8178
'error',
8279
{
83-
devDependencies: [
84-
'storybook/**',
85-
'storybook/**/**/**',
86-
'stories/**'
87-
]
88-
}
80+
devDependencies: ['storybook/**', 'storybook/**/**/**', 'stories/**'],
81+
},
8982
],
9083
'global-require': 0,
9184
'react/require-default-props': 'off',
@@ -98,6 +91,6 @@ module.exports = {
9891
'no-promise-executor-return': 'off',
9992
'@typescript-eslint/default-param-last': 'off',
10093
'@typescript-eslint/naming-convention': 'off',
101-
'@typescript-eslint/return-await': 'off'
102-
}
94+
'@typescript-eslint/return-await': 'off',
95+
},
10396
};

0 commit comments

Comments
 (0)