forked from e2b-dev/E2B
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
26 lines (26 loc) · 852 Bytes
/
.eslintrc.cjs
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
module.exports = {
env: {
node: true,
browser: true,
es6: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
ignorePatterns: ['dist/', 'node_modules/', '*.gen.ts'],
plugins: ['@typescript-eslint', 'unused-imports', '@stylistic/ts'],
rules: {
'@typescript-eslint/member-ordering': 'error',
'@typescript-eslint/ban-ts-comment': 'off', // "move fast" mode
'@typescript-eslint/no-explicit-any': 'off', // "move fast" mode
'linebreak-style': ['error', 'unix'],
'unused-imports/no-unused-imports': 'error',
// No double quotes
quotes: ['error', 'single', { avoidEscape: true }],
// No extra semicolon
'@stylistic/ts/semi': ['error', 'never'],
},
}