-
Notifications
You must be signed in to change notification settings - Fork 132
/
.eslintrc.js
56 lines (56 loc) · 1.49 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
module.exports = {
env: {
node: true,
es6: true
},
root: true,
extends: [
'plugin:@coorpacademy/coorpacademy/core',
'plugin:@coorpacademy/coorpacademy/es20XX',
'plugin:@coorpacademy/coorpacademy/prettier',
'plugin:@coorpacademy/coorpacademy/lodash-fp'
],
parserOptions: {
ecmaVersion: 2020,
allowImportExportEverywhere: true
},
plugins: ['@coorpacademy/coorpacademy'],
settings: {},
rules: {
'fp/no-class': 'off',
'import/dynamic-import-chunkname': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'no-console': 'off',
'no-param-reassign': 'off',
'no-shadow': ['error', {allow: ['toString']}],
'node/no-extraneous-require': [
'error',
{allowModules: ['ava', 'aws-sdk', '@serverless/utils']}
],
'node/no-missing-import': 'off',
'node/no-missing-require': 'off',
'node/no-unsupported-features/es-syntax': [
'error',
{version: '>=16.0.0', ignores: ['dynamicImport']}
],
'promise/no-native': 'off',
'unicorn/consistent-function-scoping': 'off',
'unicorn/no-await-expression-member': 'off',
'unicorn/no-unreadable-array-destructuring': 'off'
},
overrides: [
{
files: ['packages/**/.*/**/*.test.js', 'packages/**/*.test.js'],
rules: {
'import/no-extraneous-dependencies': 'off'
}
},
{
files: ['ava.config.js'],
rules: {
'node/no-unsupported-features/es-syntax': 'off'
}
}
]
};