@codeverse/eslint-config
Version:
Codeverse's shared linter configuration
35 lines (28 loc) • 826 B
JavaScript
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,
},
};