UNPKG

@codeverse/eslint-config

Version:
35 lines (28 loc) 826 B
module.exports = { parser: 'typescript-eslint-parser', parserOptions: { sourceType: 'module', jsx: true, }, plugins: ['typescript', 'prettier'], extends: [ 'eslint:recommended', 'typescript-recommended', 'plugin:prettier/recommended', ], rules: { strict: 0, 'no-undef': 'error', 'no-tabs': 'error', // This is configured specifically to play well with Prettier. The name is misleading, it *does* // allow `template-literal ${strings}`; it just advises you to convert them back into simple // single-quotes if there's no interpolation. quotes: ['warn', 'single', { avoidEscape: true, allowTemplateLiterals: false }], // Noisy rules. Open to debate about these! 'sort-keys': 'off', 'prettier/prettier': 'warn', }, env: { es6: true, }, };