-
Notifications
You must be signed in to change notification settings - Fork 56
/
.eslintrc.js
42 lines (37 loc) · 1020 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
38
39
40
41
42
const {getESLintConfig, deepMerge} = require('ocular-dev-tools');
const defaultConfig = getESLintConfig({react: '16.8.2'});
// Make any changes to default config here
const config = deepMerge(defaultConfig, {
env: {
browser: true,
es2020: true,
node: true
},
overrides: [
{
// scripts use devDependencies
files: ['**/test/**/*.ts', '**/scripts/**/*.js', '*.config.js', '*.config.local.js'],
rules: {
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'@typescript-eslint/ban-ts-comment': 0 // We do need our ts-ignores
}
},
{
files: ['modules/**/*.ts', 'modules/**/*.js'],
rules: {
'import/no-unresolved': 0,
'@typescript-eslint/ban-ts-comment': 0 // We do need our ts-ignores
}
},
{
files: ['examples/**/*.js'],
rules: {
'import/no-unresolved': 0
}
}
]
});
// Uncomment to log the eslint config
// console.debug(config);
module.exports = config;