mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 12:32:34 +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} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
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: {
|
rules: {
|
||||||
'@next/next/no-img-element': 'off',
|
'@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: {
|
settings: {
|
||||||
next: {
|
next: {
|
||||||
|
|||||||
Reference in New Issue
Block a user