forked from superdesk/superdesk-planning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
31 lines (29 loc) · 803 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
const sharedConfigs = require('superdesk-code-style');
module.exports = Object.assign({}, sharedConfigs, {
parser: '@typescript-eslint/parser',
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-unused-vars': 0,
'no-undef': 0,
'comma-dangle': 0,
'camelcase': 0,
'no-prototype-builtins': 0, // allow hasOwnProperty
},
},
{
files: ['*.js', '*.jsx'],
rules: {
'no-empty-pattern': 0,
'no-prototype-builtins': 0, // allow hasOwnProperty
},
},
{
files: ['*.d.ts'],
rules: {
'spaced-comment': 0,
},
},
],
});