Skip to content

Instantly share code, notes, and snippets.

@dankochetov
Created August 9, 2022 10:18
Show Gist options
  • Save dankochetov/d002c8157b8dcae45186846dfa523b4b to your computer and use it in GitHub Desktop.
Save dankochetov/d002c8157b8dcae45186846dfa523b4b to your computer and use it in GitHub Desktop.
.xo-config.js
module.exports = {
prettier: true,
plugins: ['eslint-comments'],
rules: {
'import/extensions': 'off',
'unicorn/prefer-module': 'off',
'unicorn/filename-case': 'off',
'node/prefer-global/process': 'off',
'@typescript-eslint/naming-convention': 'off',
'import/order': 'off',
'import/no-cycle': 'off',
'node/prefer-global': 'off',
'func-names': 'off',
'unicorn/no-await-expression-member': 'off',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/no-unnecessary-type-arguments': 'off',
'@typescript-eslint/lines-between-class-members': 'off',
'unicorn/no-array-callback-reference': 'off',
'capitalized-comments': 'off',
'unicorn/prevent-abbreviations': 'off',
'node/prefer-global/buffer': 'off',
'object-shorthand': ['error', 'properties'],
'no-await-in-loop': 'off',
'max-params': 'off',
'unicorn/no-array-reduce': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'no-warning-comments': 'off',
'unicorn/prefer-object-from-entries': 'off',
'@typescript-eslint/prefer-includes': 'off',
'unicorn/prefer-ternary': 'off',
'@typescript-eslint/no-implicit-any-catch': 'off',
'no-useless-return': 'off',
'unicorn/no-array-for-each': 'off',
'no-implicit-coercion': 'off',
'@typescript-eslint/ban-types': 'off',
'no-constant-binary-expression': 'error',
'no-constant-condition': 'error',
'unicorn/numeric-separators-style': 'off',
'unicorn/prefer-node-protocol': 'off',
'@typescript-eslint/no-require-imports': 'off',
camelcase: 'off',
'eslint-comments/require-description': 'error',
"complexity": ["error", { "max": 25 }]
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment