mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-05 22:33:07 +00:00
39 lines
843 B
JavaScript
39 lines
843 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
browser: true,
|
|
es2020: true,
|
|
},
|
|
globals: {
|
|
indexedDB: 'readonly',
|
|
IDBDatabase: 'readonly',
|
|
localStorage: 'readonly',
|
|
},
|
|
extends: [
|
|
'eslint:recommended',
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
},
|
|
plugins: ['@typescript-eslint'],
|
|
rules: {
|
|
// General rules
|
|
'no-console': 'off',
|
|
'prefer-const': 'error',
|
|
'no-var': 'error',
|
|
'object-shorthand': 'error',
|
|
'prefer-template': 'error',
|
|
'no-unused-vars': 'off', // Turn off base rule
|
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'@typescript-eslint/no-explicit-any': 'warn',
|
|
},
|
|
ignorePatterns: [
|
|
'dist/',
|
|
'node_modules/',
|
|
'*.js',
|
|
'*.d.ts',
|
|
],
|
|
}; |