-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency eslint to v9 (#1825)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: george treviranus <[email protected]> Co-authored-by: Jonathan Zempel <[email protected]>
- Loading branch information
1 parent
5798864
commit e009570
Showing
70 changed files
with
698 additions
and
546 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/** | ||
* Copyright Zendesk, Inc. | ||
* | ||
* Use of this source code is governed under the Apache License, Version 2.0 | ||
* found at http://www.apache.org/licenses/LICENSE-2.0. | ||
*/ | ||
|
||
import prettierConfig from 'eslint-config-prettier'; | ||
import config from '@zendeskgarden/eslint-config'; | ||
import noticePlugin from '@zendeskgarden/eslint-config/plugins/notice.js'; | ||
import reactPlugin from '@zendeskgarden/eslint-config/plugins/react.js'; | ||
import typescriptPlugin from '@zendeskgarden/eslint-config/plugins/typescript.js'; | ||
import jestPlugin from '@zendeskgarden/eslint-config/plugins/jest.js'; | ||
import gardenLocalPlugin from 'eslint-plugin-garden-local'; | ||
|
||
const typescriptRules = { | ||
...typescriptPlugin.rules, | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'@typescript-eslint/naming-convention': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'logical-assignment-operators': 'off', | ||
'prefer-object-has-own': 'off', | ||
'react/prop-types': 'off' | ||
}; | ||
|
||
export default [ | ||
...config, | ||
noticePlugin, | ||
reactPlugin, | ||
prettierConfig, | ||
{ | ||
ignores: ['**/dist'] | ||
}, | ||
{ | ||
rules: { | ||
'sort-imports': 'off', | ||
'react/no-set-state': 'error' | ||
} | ||
}, | ||
{ | ||
files: ['packages/*/src/**/*.{ts,tsx}'], | ||
ignores: ['packages/.template/**/*.{ts,tsx}'], | ||
...typescriptPlugin, | ||
rules: { | ||
...typescriptRules | ||
} | ||
}, | ||
{ | ||
files: ['packages/*/src/**/*.{ts,tsx}'], | ||
ignores: ['packages/.template/**/*.{ts,tsx}', 'packages/*/src/**/*.spec.{ts,tsx}'], | ||
plugins: { | ||
'garden-local': gardenLocalPlugin | ||
}, | ||
rules: { | ||
'garden-local/require-default-theme': 'error' | ||
} | ||
}, | ||
{ | ||
files: ['packages/*/src/**/*.spec.{ts,tsx}'], | ||
ignores: ['packages/.template/**/*.spec.{ts,tsx}'], | ||
...typescriptPlugin, | ||
...jestPlugin, | ||
rules: { | ||
...typescriptRules, | ||
...jestPlugin.rules, | ||
'no-console': 'off', | ||
'react/button-has-type': 'off' | ||
} | ||
} | ||
]; |
Oops, something went wrong.