mirror of
https://github.com/documenso/documenso.git
synced 2025-11-09 20:12:31 +10:00
feat: added new eslint rules
Signed-off-by: Adithya Krishna <adikrish@redhat.com>
This commit is contained in:
@ -1,9 +1,28 @@
|
||||
/** @type {import('eslint').Linter.Config} */
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ['@documenso/eslint-config'],
|
||||
extends: [
|
||||
'@documenso/eslint-config',
|
||||
'plugin:package-json/recommended',
|
||||
'plugin:import/recommended',
|
||||
],
|
||||
plugins: ['package-json', 'import', 'simple-import-sort'],
|
||||
rules: {
|
||||
'@next/next/no-img-element': 'off',
|
||||
'no-multi-spaces': [
|
||||
'error',
|
||||
{
|
||||
ignoreEOLComments: false,
|
||||
exceptions: {
|
||||
BinaryExpression: false,
|
||||
VariableDeclarator: false,
|
||||
ImportDeclaration: false,
|
||||
Property: false,
|
||||
},
|
||||
},
|
||||
],
|
||||
'import/named': 'off',
|
||||
'no-duplicate-imports': 'error',
|
||||
},
|
||||
settings: {
|
||||
next: {
|
||||
|
||||
Reference in New Issue
Block a user