[Enterprise Search] Add eslint warning for unsorted keys (#135070)

* Add eslint warning for unsorted keys

* Move rules to main .eslintrc.js file
This commit is contained in:
Byron Hulcher 2022-06-24 20:56:13 -04:00 committed by GitHub
parent 2c6eb5d6d6
commit 00712763d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1442,6 +1442,8 @@ module.exports = {
'import/newline-after-import': 'error',
'react-hooks/exhaustive-deps': 'off',
'react/jsx-boolean-value': ['error', 'never'],
'sort-keys': 1, // warning
'@typescript-eslint/member-ordering': [1, { default: { order: 'alphabetically' } }], // warning
'@typescript-eslint/no-unused-vars': [
'error',
{ vars: 'all', args: 'after-used', ignoreRestSiblings: true, varsIgnorePattern: '^_' },