-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc.js
61 lines (61 loc) · 1.28 KB
/
.eslintrc.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
useJSXTextNode: true,
project: './tsconfig.json',
},
env: {
node: true,
},
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier/@typescript-eslint',
],
plugins: ['graphql', '@typescript-eslint'],
// add your custom rules here
rules: {
'@typescript-eslint/camelcase': 0,
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'es5',
printWidth: 100,
},
],
'import/extensions': [
'error',
'always',
{
js: 'never',
ts: 'never',
mjs: 'never',
gql: 'never',
graphql: 'never',
},
],
'no-console': 0,
'import/prefer-default-export': 0,
'import/no-dynamic-require': 0,
'no-underscore-dangle': 0,
'no-param-reassign': 0,
},
settings: {
'import/core-modules': ['aws-sdk', 'path', 'aws-lambda'],
'import/resolver': {
webpack: {
config: {
resolve: {
extensions: ['.js', '.ts', '.gql', 'mjs', '.graphql'],
alias: {
'@': __dirname + '/src',
},
},
},
},
},
},
};