mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 14:46:04 +02:00
update .eslintrc.js
This commit is contained in:
+25
-11
@@ -2,7 +2,7 @@ module.exports = {
|
|||||||
root: true,
|
root: true,
|
||||||
env: {
|
env: {
|
||||||
browser: true,
|
browser: true,
|
||||||
node: true,
|
commonjs: true,
|
||||||
es2020: true
|
es2020: true
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
@@ -11,12 +11,7 @@ module.exports = {
|
|||||||
VRCXStorage: 'readonly',
|
VRCXStorage: 'readonly',
|
||||||
SQLite: 'readonly',
|
SQLite: 'readonly',
|
||||||
LogWatcher: 'readonly',
|
LogWatcher: 'readonly',
|
||||||
Discord: 'readonly',
|
Discord: 'readonly'
|
||||||
Noty: 'readonly',
|
|
||||||
Vue: 'readonly',
|
|
||||||
VueLazyload: 'readonly',
|
|
||||||
DataTables: 'readonly',
|
|
||||||
ELEMENT: 'readonly'
|
|
||||||
},
|
},
|
||||||
extends: 'eslint:all',
|
extends: 'eslint:all',
|
||||||
rules: {
|
rules: {
|
||||||
@@ -44,7 +39,12 @@ module.exports = {
|
|||||||
'no-bitwise': 0,
|
'no-bitwise': 0,
|
||||||
'no-console': 0,
|
'no-console': 0,
|
||||||
'no-continue': 0,
|
'no-continue': 0,
|
||||||
'no-empty': ['error', { allowEmptyCatch: true }],
|
'no-empty': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
allowEmptyCatch: true
|
||||||
|
}
|
||||||
|
],
|
||||||
'no-magic-numbers': 0,
|
'no-magic-numbers': 0,
|
||||||
'no-mixed-operators': 0,
|
'no-mixed-operators': 0,
|
||||||
'no-param-reassign': 0,
|
'no-param-reassign': 0,
|
||||||
@@ -56,19 +56,33 @@ module.exports = {
|
|||||||
'no-underscore-dangle': 0,
|
'no-underscore-dangle': 0,
|
||||||
'no-var': 0,
|
'no-var': 0,
|
||||||
'no-warning-comments': 0,
|
'no-warning-comments': 0,
|
||||||
'object-curly-spacing': ['error', 'always'],
|
'object-curly-spacing': [
|
||||||
|
'error',
|
||||||
|
'always'
|
||||||
|
],
|
||||||
'object-property-newline': 0,
|
'object-property-newline': 0,
|
||||||
'one-var': 0,
|
'one-var': 0,
|
||||||
'padded-blocks': 0,
|
'padded-blocks': 0,
|
||||||
'prefer-arrow-callback': 0,
|
'prefer-arrow-callback': 0,
|
||||||
'prefer-destructuring': 0,
|
'prefer-destructuring': 0,
|
||||||
'prefer-named-capture-group': 0,
|
'prefer-named-capture-group': 0,
|
||||||
quotes: ['error', 'single', { avoidEscape: true }],
|
quotes: [
|
||||||
|
'error',
|
||||||
|
'single',
|
||||||
|
{
|
||||||
|
avoidEscape: true
|
||||||
|
}
|
||||||
|
],
|
||||||
'quote-props': 0,
|
'quote-props': 0,
|
||||||
'require-unicode-regexp': 0,
|
'require-unicode-regexp': 0,
|
||||||
'sort-keys': 0,
|
'sort-keys': 0,
|
||||||
'sort-vars': 0,
|
'sort-vars': 0,
|
||||||
'space-before-function-paren': ['error', { named: 'never' }],
|
'space-before-function-paren': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
named: 'never'
|
||||||
|
}
|
||||||
|
],
|
||||||
strict: 0,
|
strict: 0,
|
||||||
'vars-on-top': 0
|
'vars-on-top': 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user