-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: GitHub Action <[email protected]>
- Loading branch information
1 parent
45253be
commit fe8057e
Showing
14 changed files
with
333 additions
and
243 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import globals from 'globals' | ||
|
||
import path from 'path' | ||
import {fileURLToPath} from 'url' | ||
import {FlatCompat} from '@eslint/eslintrc' | ||
import pluginJs from '@eslint/js' | ||
import prettierConfig from 'eslint-config-prettier' | ||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended' | ||
|
||
|
||
// mimic CommonJS variables -- not needed if using CommonJS | ||
const __filename = fileURLToPath(import.meta.url) | ||
const __dirname = path.dirname(__filename) | ||
const compat = new FlatCompat({ baseDirectory: __dirname, recommendedConfig: pluginJs.configs.recommended }) | ||
|
||
export default [ | ||
{ languageOptions: { globals: globals.browser }}, | ||
{ | ||
ignores: [ | ||
'dist/**', | ||
'lib/**', | ||
'node_modules/**', | ||
'jest.config.js', | ||
'coverage/**' | ||
] | ||
}, | ||
...compat.extends("standard-with-typescript").map((config) => ({ | ||
...config, | ||
files: ["**/*.tsx", "**/*.ts"], | ||
rules: { | ||
...config.rules, | ||
"@typescript-eslint/semi": ["error", "always"], | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-floating-promises": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/strict-boolean-expressions": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/prefer-ts-expect-error": "off", | ||
"no-import-assign": "off", | ||
}, | ||
})), | ||
prettierConfig, // Turns off all ESLint rules that have the potential to interfere with Prettier rules. | ||
eslintPluginPrettierRecommended, | ||
] |
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
Oops, something went wrong.