mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 08:23:08 +02:00
Update .eslintrc.js
This commit is contained in:
parent
de81437248
commit
2bf63b158c
1 changed files with 18 additions and 0 deletions
18
.eslintrc.js
18
.eslintrc.js
|
@ -11,15 +11,28 @@ module.exports = {
|
||||||
rules: {
|
rules: {
|
||||||
'indent': ['error', 'tab', {
|
'indent': ['error', 'tab', {
|
||||||
'SwitchCase': 1,
|
'SwitchCase': 1,
|
||||||
|
'MemberExpression': 'off',
|
||||||
'flatTernaryExpressions': true,
|
'flatTernaryExpressions': true,
|
||||||
|
'ArrayExpression': 'first',
|
||||||
|
'ObjectExpression': 'first',
|
||||||
}],
|
}],
|
||||||
'eol-last': ['error', 'always'],
|
'eol-last': ['error', 'always'],
|
||||||
'semi': ['error', 'always'],
|
'semi': ['error', 'always'],
|
||||||
'quotes': ['error', 'single'],
|
'quotes': ['error', 'single'],
|
||||||
|
'comma-dangle': ['error', 'always-multiline'],
|
||||||
'keyword-spacing': ['error', {
|
'keyword-spacing': ['error', {
|
||||||
'before': true,
|
'before': true,
|
||||||
'after': true,
|
'after': true,
|
||||||
}],
|
}],
|
||||||
|
'key-spacing': ['error', {
|
||||||
|
'beforeColon': false,
|
||||||
|
'afterColon': true,
|
||||||
|
}],
|
||||||
|
'space-infix-ops': ['error'],
|
||||||
|
'space-before-blocks': ['error', 'always'],
|
||||||
|
'object-curly-spacing': ['error', 'always'],
|
||||||
|
'nonblock-statement-body-position': ['error', 'beside'],
|
||||||
|
'no-multiple-empty-lines': ['error', { 'max': 1 }],
|
||||||
'no-multi-spaces': ['error'],
|
'no-multi-spaces': ['error'],
|
||||||
'no-var': ['error'],
|
'no-var': ['error'],
|
||||||
'prefer-arrow-callback': ['error'],
|
'prefer-arrow-callback': ['error'],
|
||||||
|
@ -28,5 +41,10 @@ module.exports = {
|
||||||
'no-constant-condition': ['warn'],
|
'no-constant-condition': ['warn'],
|
||||||
'no-empty-pattern': ['warn'],
|
'no-empty-pattern': ['warn'],
|
||||||
'@typescript-eslint/no-inferrable-types': ['warn'],
|
'@typescript-eslint/no-inferrable-types': ['warn'],
|
||||||
|
'@typescript-eslint/no-non-null-assertion': ['warn'],
|
||||||
|
'@typescript-eslint/explicit-function-return-type': ['warn'],
|
||||||
|
'@typescript-eslint/no-misused-promises': ['error', {
|
||||||
|
'checksVoidReturn': false,
|
||||||
|
}],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue