generated from y1j2x34/rollup-jest-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
36 lines (34 loc) · 1.15 KB
/
.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
module.exports = {
parser: '@typescript-eslint/parser',
overrides: [
{
files: ['*.ts', '*.tsx'],
extends: [
// Use the recommended rules from the @typescript-eslint/eslint-plugin
'plugin:@typescript-eslint/recommended'
],
parserOptions: {
project: ['./tsconfig.json', './__tests__/tsconfig.json', './build/tsconfig.json', './examples/tsconfig.json']
},
rules: {
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'error'
}
},
{
files: ['*.mjs', '*.js', '*.jsx', '*.es', '*.ts']
}
],
plugins: ['@typescript-eslint', 'prettier'],
rules: {
'prettier/prettier': 'error',
'no-var-require': 'off',
'no-console': 'off',
'no-bitwise': 'off',
quotes: ['error', 'single'],
'max-len': ['error', 130],
'arrow-parens': 'off'
}
};