-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 1.34 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
module.exports = {
extends: ['alloy', 'alloy/typescript', 'eslint:recommended'],
env: {
node: true,
},
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'arrow-parens': 'off',
'class-methods-use-this': 'off',
'comma-dangle': ['error', 'always-multiline'],
'eol-last': ['error', 'always'],
'import/extensions': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-named-as-default': 'off',
'import/no-unresolved': 'off',
'indent': ['error', 4],
'jsx-a11y/label-has-associated-control': 'off',
'key-spacing': ['error'],
'linebreak-style': ['error', process.platform === 'win32' ? 'windows' : 'unix'],
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'max-len': ['error', { code: 256 }],
'newline-before-return': 'off',
'no-console': 'off',
'no-debugger': 'off',
'no-multiple-empty-lines': 'off',
'no-prototype-builtins': 'off',
'no-trailing-spaces': ['error', { ignoreComments: true, skipBlankLines: true }],
'no-underscore-dangle': 'off',
'padded-blocks': ['error', 'never'],
'quotes': ['error', 'single'],
'require-jsdoc': 'off',
'semi': 'error',
'space-in-parens': 'off',
},
};