forked from eclipsesource/jsonforms-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
33 lines (33 loc) · 1.14 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
/**
* ---------------------------------------------------------------------
* Copyright (c) 2021 EclipseSource Munich
* Licensed under MIT
* https://github.com/eclipsesource/jsonforms-editor/blob/master/LICENSE
* ---------------------------------------------------------------------
*/
module.exports = {
// prettier must always be the last entry to ensure all rules are compatible
extends: ['react-app', 'prettier'],
plugins: ['header', 'simple-import-sort', 'prettier'],
rules: {
'prettier/prettier': ['error', { endOfLine: 'auto' }],
// use sorting of simple-import-sort and disable others
'sort-imports': 'off',
'import/order': 'off',
'simple-import-sort/sort': 'error',
// header
'header/header': [
2,
'block',
[
'*',
' * ---------------------------------------------------------------------',
' * Copyright (c) 2021 EclipseSource Munich',
' * Licensed under MIT',
' * https://github.com/eclipsesource/jsonforms-editor/blob/master/LICENSE',
' * ---------------------------------------------------------------------',
' ',
],
],
},
};