forked from Addepar/ember-table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
31 lines (28 loc) · 871 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
module.exports = {
extends: ['@addepar', '@addepar/eslint-config/ember'],
parser: 'babel-eslint',
rules: {
'no-restricted-globals': 'off',
'ember/closure-actions': 'off',
'ember/avoid-leaking-state-in-ember-objects': 'off',
'ember-best-practices/require-dependent-keys': 'off',
'no-restricted-imports': [
'error',
{
paths: [
{
name: '@ember/object',
importNames: ['observer'],
message: 'For compatibility, use `import { observer } from "-private/utils/observer"`',
},
{
name: '@ember/object/observers',
importNames: ['addObserver', 'removeObserver'],
message:
'For compatibility, use `import { addObserver, removeObserver } from "-private/utils/observer"`',
},
],
},
],
},
};