forked from godaddy/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
34 lines (34 loc) · 1010 Bytes
/
index.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
module.exports = {
extends: [
require('./extends')('eslint-config-godaddy-react'),
'plugin:eslint-plugin-react/recommended'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
overrides: [
{
files: ['*.js', '*.json', '*.jsx', '*.ts', '*.tsx'],
rules: {
// note you must disable the base rule as it can report incorrect errors (in typescript)
// (because of imported types being incorrectly reported as unused)
// eslint-disable-next-line max-len
// See https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
vars: 'all',
args: 'after-used',
ignoreRestSiblings: false
}
]
}
},
{
files: ['*.ts', '*.tsx'],
rules: {
'react/prop-types': 'off'
}
}
]
};