generated from diva-e-aem/eds-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
37 lines (37 loc) · 937 Bytes
/
.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
module.exports = {
extends: ['@pro-vision/eslint-config-pv/typescript', '@pro-vision/eslint-config-pv/prettier'],
rules: {
'import/order': [
'error',
{
'newlines-between': 'always',
pathGroups: [
{
pattern: '{Blocks,Components,Directives,Services,Helpers,Constants,Types,Utils}/**/*',
group: 'internal',
},
],
pathGroupsExcludedImportTypes: [],
groups: [
'builtin',
'external',
'internal',
['index', 'sibling', 'parent']
],
},
],
'prefer-arrow-callback': 'off',
'import/extensions': [
2,
'always',
{
'': 'never',
ts: 'never',
},
],
'one-var': 'off',
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
},
};