forked from rjbrooksjr/ts-tracking-number
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 1.04 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
37
module.exports = {
env: {
browser: true,
es2020: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier/@typescript-eslint',
"plugin:functional/external-recommended",
"plugin:functional/recommended"
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 11,
sourceType: 'module',
project: './tsconfig.json'
},
plugins: [
'@typescript-eslint',
'functional',
],
rules: {
'@typescript-eslint/ban-ts-comment': 0,
camelcase: ['error', { properties: 'never' }],
'comma-style': ['error', 'last'],
'eol-last': ['error', 'always'],
'max-len': ['error', { code: 120, tabWidth: 2 }],
'no-explicit-any': 0,
quotes: ['error', 'single'],
semi: ['error', 'always'],
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
},
};