-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy path.eslintrc.js
More file actions
24 lines (24 loc) · 680 Bytes
/
Copy path.eslintrc.js
File metadata and controls
24 lines (24 loc) · 680 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
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
mocha: true,
node: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
},
extends: ['eslint:recommended', 'google', 'plugin:@typescript-eslint/eslint-recommended', 'plugin:@typescript-eslint/recommended'],
rules: {
'prettier/prettier': 'error',
'arrow-parens': ['error', 'always'],
'max-len': ['error', { code: 140, ignoreUrls: true }],
'object-curly-spacing': ['off'],
// eslint-disable-next-line prettier/prettier
'indent': ['error', 2, { SwitchCase: 1 }],
},
ignorePatterns: ['lib'],
plugins: ['prettier'],
};