Change all eslint rules to errors so they'll hit on CI

This commit is contained in:
Alex Corn 2021-07-29 03:15:38 -04:00
parent a4de664759
commit e252efc455
No known key found for this signature in database
GPG Key ID: E51989A3E7A27FDF

View File

@ -12,17 +12,17 @@ module.exports = {
// Use tabs for indentation and require 'case' in switch to be indented 1 level (default 0)
indent: ['error', 'tab', {SwitchCase: 1}],
// Single quotes for strings
quotes: ['warn', 'single'],
quotes: ['error', 'single'],
// Always require semicolons
semi: ['error', 'always'],
// Don't use 'var'
'no-var': 'warn',
'no-var': 'error',
// Only use quotes in object literal keys as needed
'quote-props': ['warn', 'as-needed'],
'quote-props': ['error', 'as-needed'],
// Don't allow trailing spaces after a line
'no-trailing-spaces': 'warn',
'no-trailing-spaces': 'error',
// Require spaces before and after keywords (like "if")
'keyword-spacing': 'warn',
'keyword-spacing': 'error',
// Don't allow unused variables, but allow unused function args (e.g. in callbacks) and global vars
'no-unused-vars': ['error', {vars: 'local', args: 'none'}]
}