forked from threlte/three-inspect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
74 lines (73 loc) · 2.12 KB
/
.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
module.exports = {
env: {
browser: true,
es2022: true,
node: true,
worker: true,
},
extends: [
'eslint:all',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/strict',
],
ignorePatterns: ['*.d.ts'],
overrides: [],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
project: ['./tsconfig.json'],
sourceType: 'module',
tsconfigRootDir: __dirname,
},
plugins: [
'@typescript-eslint',
],
root: true,
rules: {
'array-bracket-newline': ['error', 'consistent'],
'array-element-newline': 'off',
'arrow-body-style': 'off',
'camelcase': ['error', { properties: 'never' }],
'comma-dangle': ['error', {
arrays: 'always-multiline',
exports: 'never',
functions: 'never',
imports: 'never',
objects: 'always-multiline',
}],
'complexity': ['error', { max: 50 }],
'default-case': 'off',
'default-last-param': 'off',
'dot-location': ['error', 'property'],
'func-names': 'off',
'function-call-argument-newline': ['error', 'consistent'],
'id-length': 'off',
'indent': ['error', 2],
'init-declarations': 'off',
'linebreak-style': ['error', 'unix'],
'lines-around-comment': 'off',
'lines-between-class-members': 'off',
'max-len': ['error', { code: 140 }],
'max-lines': 'off',
'max-lines-per-function': 'off',
'max-params': 'off',
'max-statements': 'off',
'multiline-ternary': ['error', 'always-multiline'],
'no-bitwise': 'off',
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-continue': 'off',
'no-extra-parens': 'off',
'no-magic-numbers': 'off',
'no-ternary': 'off',
'no-undefined': 'off',
'object-curly-spacing': ['error', 'always'],
'object-property-newline': ['error', { allowAllPropertiesOnSameLine: true }],
'one-var': ['error', 'never'],
'padded-blocks': ['error', 'never'],
'prefer-destructuring': 'off',
'quote-props': ['error', 'consistent-as-needed'],
'quotes': ['error', 'single'],
'semi': ['error', 'never'],
'@typescript-eslint/prefer-for-of': 'off',
},
}