@smart-gate/eslint-config-smartgate
Version:
ESLint shareable config for the Smart Gate CO. projects style guide.
41 lines (40 loc) • 909 B
JavaScript
module.exports = {
env: {
node: true,
es2021: true,
browser: true,
},
plugins: ['import'],
extends: [
'google',
'eslint:recommended',
'@vue/eslint-config-typescript',
'plugin:vue/vue3-strongly-recommended',
],
ignorePatterns: ['*.json', '.*', 'env.d.ts'],
rules: {
'require-jsdoc': 'off',
'import/newline-after-import': ['error'],
'import/order': [
'warn',
{
// 'type' is omitted so type imports are adjacent to regular imports within their group
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'object',
],
alphabetize: {
order: 'asc',
// `import type` lines are ordered below `import`
orderImportKind: 'desc',
},
'newlines-between': 'never',
},
],
},
};