forked from decaffeinate/decaffeinate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
48 lines (48 loc) · 1.27 KB
/
.eslintrc.js
File metadata and controls
48 lines (48 loc) · 1.27 KB
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
43
44
45
46
47
48
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest/all',
'prettier',
'prettier/@typescript-eslint',
],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
},
env: {
node: true,
es6: true,
},
plugins: ['prettier', '@typescript-eslint/eslint-plugin', 'jest'],
reportUnusedDisableDirectives: true,
rules: {
'@typescript-eslint/array-type': ['error', { default: 'generic' }],
'@typescript-eslint/explicit-member-accessibility': 'off',
'@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true }],
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false }],
'no-unused-vars': 'off',
'prettier/prettier': ['error'],
},
overrides: [
{
files: 'test/**/*.{js,ts}',
env: {
jest: true,
},
rules: {
'jest/expect-expect': 'off',
'jest/no-if': 'off',
'jest/prefer-expect-assertions': 'off',
},
},
{
files: '{script,test}/**/*.{js,ts}',
rules: {
'no-console': 'off',
},
},
],
};