2023-06-09 18:21:18 +10:00
|
|
|
/** @type {import('eslint').Linter.Config} */
|
|
|
|
|
module.exports = {
|
|
|
|
|
root: true,
|
2023-08-28 08:14:42 +05:30
|
|
|
extends: [
|
|
|
|
|
'@documenso/eslint-config',
|
|
|
|
|
'plugin:package-json/recommended',
|
|
|
|
|
'plugin:import/recommended',
|
|
|
|
|
],
|
|
|
|
|
plugins: ['package-json', 'import', 'simple-import-sort'],
|
2023-06-09 18:21:18 +10:00
|
|
|
rules: {
|
|
|
|
|
'@next/next/no-img-element': 'off',
|
2023-08-28 08:14:42 +05:30
|
|
|
'no-multi-spaces': [
|
|
|
|
|
'error',
|
|
|
|
|
{
|
|
|
|
|
ignoreEOLComments: false,
|
|
|
|
|
exceptions: {
|
|
|
|
|
BinaryExpression: false,
|
|
|
|
|
VariableDeclarator: false,
|
|
|
|
|
ImportDeclaration: false,
|
|
|
|
|
Property: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
'import/named': 'off',
|
|
|
|
|
'no-duplicate-imports': 'error',
|
2023-06-09 18:21:18 +10:00
|
|
|
},
|
|
|
|
|
settings: {
|
|
|
|
|
next: {
|
|
|
|
|
rootDir: ['apps/*/'],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|