-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
47 lines (47 loc) · 1.28 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* @file .eslintrc.js
* @author dworac <mail@dworac.com>
*
* This eslint config is based on the Airbnb style guide. It includes support for typescript, prettier, jest and jsdoc.
*/
module.exports = {
extends: [
// Basic ESLint rules with typescript
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
// AirBnB style guide
'airbnb',
'airbnb-typescript',
// Prettier
'plugin:prettier/recommended',
// JSDoc
'plugin:jsdoc/recommended',
// React
"plugin:react/recommended",
'plugin:react-hooks/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'jsdoc', 'react-refresh'],
root: true,
parserOptions: {
project: './tsconfig.json',
},
rules: {
'prettier/prettier': ['error', { endOfLine: 'auto' }],
'jsdoc/require-file-overview': 1,
'import/no-absolute-path': 0,
'react-refresh/only-export-components': 'warn',
},
settings: {
jsdoc: {
structuredTags: {
swagger: {
name: 'swagger',
},
openapi: {
name: 'swagger',
},
},
},
},
};