-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified
typescript-eslint
configuration (#166)
- Loading branch information
Showing
5 changed files
with
303 additions
and
428 deletions.
There are no files selected for viewing
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,29 @@ | ||
import eslint from '@eslint/js'; | ||
// TODO: Add back `eslint-plugin-react-hooks once it supports the ESLint flat file format. | ||
// import reactHooks from 'eslint-plugin-react-hooks'; | ||
import globals from 'globals'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config( | ||
// ESLint. | ||
eslint.configs.recommended, | ||
|
||
// TypeScript. | ||
...tseslint.configs.strict, | ||
...tseslint.configs.stylistic, | ||
|
||
// Custom. | ||
{ | ||
files: ['**/*.{js,jsx,ts,tsx,mjs}'], | ||
ignores: ['**/dist'], | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: 'module', | ||
globals: globals.browser, | ||
}, | ||
rules: { | ||
'no-console': 'error', | ||
'@typescript-eslint/no-extraneous-class': 'off', | ||
}, | ||
} | ||
); |
Oops, something went wrong.