-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path.eslintrc.js
More file actions
26 lines (26 loc) · 968 Bytes
/
Copy path.eslintrc.js
File metadata and controls
26 lines (26 loc) · 968 Bytes
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
/** @type {import('eslint').Linter.Config} */
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
rules: {
'prettier/prettier': ['warn', { endOfLine: 'auto' }],
semi: ['warn', 'always'],
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'padding-line-between-statements': 'off',
'@typescript-eslint/padding-line-between-statements': [
'warn',
{
blankLine: 'always',
prev: ['if', 'for', 'while', 'switch', 'try'],
next: '*'
}
],
curly: ['warn', 'all']
}
};