-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
40 lines (37 loc) · 952 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
'use strict';
var fs = require('fs');
var path = require('path');
var ignoreFilePath = path.join(__dirname, '.gitignore');
module.exports = {
root: true,
extends: ['eslint:recommended'],
ignorePatterns: fs.readFileSync(ignoreFilePath, 'utf8').split('\n').filter(Boolean),
env: {
node: true,
browser: true,
},
overrides: [
{
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['plugin:@typescript-eslint/recommended'],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/ban-ts-comment': 0,
},
},
{
files: ['*.test.ts', '*.test.js'],
env: {
jest: true,
},
},
],
rules: {
'template-curly-spacing': 0,
'no-dupe-keys': 'error',
},
};