Files
payload/examples/auth/nextjs/eslint-config/rules/style.js
2023-02-15 18:49:08 -05:00

16 lines
491 B
JavaScript

module.exports = {
rules: {
'prefer-named-exports': 'off',
'prefer-destructuring': 'off',
'comma-dangle': ['error', 'always-multiline'],
'class-methods-use-this': 'off',
'function-paren-newline': ['error', 'consistent'],
'eol-last': ['error', 'always'],
'no-restricted-syntax': 'off',
'no-await-in-loop': 'off',
'no-console': ['warn', { allow: ['warn', 'error'] }],
'space-infix-ops': 'off',
'@typescript-eslint/space-infix-ops': 'warn',
},
}