forked from pabigot/buffer-layout
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.eslintrc.js
43 lines (43 loc) · 1.28 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
38
39
40
41
42
43
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'guard-for-in': 'off',
'prefer-rest-params': 'off',
'prefer-spread': 'off',
__temporary: 'off',
'arrow-parens': ['error', 'as-needed'],
camelcase: 'off',
curly: 'error',
eqeqeq: 'error',
'max-len': ['error', {code: 120, tabWidth: 2}],
'no-constant-condition': 'off',
'no-fallthrough': ['error', {commentPattern: 'FALLTHRU'}],
'no-implicit-coercion': 'off',
'no-irregular-whitespace': ['error', {skipComments: true}],
'no-multi-spaces': ['error', {ignoreEOLComments: true}],
'operator-linebreak': ['error', 'before'],
quotes: ['error', 'single', {
avoidEscape: true,
allowTemplateLiterals: true
}],
radix: ['error', 'as-needed'],
'require-jsdoc': 'off',
'spaced-comment': ['error', 'always', {line: {markers: ['#']}}],
'valid-jsdoc': 'off',
yoda: ['error', 'always', {exceptRange: true}]
},
parserOptions: {
project: './tsconfig.json',
}
};