mrfrys-node-server/.eslintrc.js
2021-05-04 10:27:21 +02:00

38 lines
962 B
JavaScript

module.exports = {
env: {
browser: true,
es6: true,
node: true,
jest: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
rules: {
'no-undef': ['error'],
eqeqeq: ['warn', 'smart'],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': [
'warn',
{ allowArgumentsExplicitlyTypedAsAny: true },
],
'no-unused-vars': 'warn',
'no-prototype-builtins': 'off',
'@typescript-eslint/ban-types': 'off',
'id-length': [
'warn',
{ exceptions: ['i', 'j', 't', 'Q', 'A', 'C', 'q', 'a', 'b', 'x', 'e'] },
],
'object-shorthand': ['warn', 'never'],
'prefer-const': 'warn',
},
root: true,
}