fix: Move rules to root of project

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
Carlos Esteban Lopez
2022-12-07 13:35:21 -05:00
committed by Carlos Lopez
parent 287a91215b
commit 9ccbf26581
4 changed files with 22 additions and 10 deletions
+7 -1
View File
@@ -18,7 +18,7 @@ var path = require('path');
module.exports = {
root: true,
plugins: ['notice', 'testing-library'],
plugins: ['@spotify', 'notice', 'react', 'testing-library'],
rules: {
'notice/notice': [
'error',
@@ -45,6 +45,12 @@ module.exports = {
"CallExpression[arguments.length=0] > MemberExpression[property.name='toUpperCase']",
},
],
'react/forbid-elements': [
1,
{
forbid: [{ element: 'button', message: 'use MUI <Button> instead' }],
},
],
'testing-library/await-async-query': 'error',
'testing-library/await-async-utils': 'error',
'testing-library/no-await-sync-query': 'error',