Skip to content

Commit

Permalink
ESLint: Added indent rule (#2881)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored May 14, 2021
1 parent 9068680 commit 74edb4e
Show file tree
Hide file tree
Showing 24 changed files with 4,505 additions and 4,503 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ module.exports = {
'brace-style': ['warn', '1tbs', { allowSingleLine: true }],
'no-tabs': ['warn', { allowIndentationTabs: true }],
'no-var': 'error',
'one-var': ['warn', 'never'],
'quotes': ['warn', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'semi': 'warn',
'wrap-iife': 'warn',

// spaces
// spaces and indentation
'arrow-spacing': 'warn',
'block-spacing': 'warn',
'comma-spacing': 'warn',
'computed-property-spacing': 'warn',
'func-call-spacing': 'warn',
'generator-star-spacing': 'warn',
'indent': ['warn', 'tab', { SwitchCase: 1 }],
'key-spacing': 'warn',
'keyword-spacing': 'warn',
'no-multi-spaces': ['warn', { ignoreEOLComments: true }],
Expand Down
Loading

0 comments on commit 74edb4e

Please sign in to comment.