generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
26 lines (25 loc) · 926 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import globals from 'globals';
import pluginJs from '@eslint/js';
// eslint-disable-next-line import/no-unresolved
import tseslint from 'typescript-eslint';
import pluginJest from 'eslint-plugin-jest';
import github from 'eslint-plugin-github';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ['**/*.spec.{js,mjs,cjs,ts}', '**/*.test.{js,mjs,cjs,ts}'], ...pluginJest.configs['flat/recommended'] },
github.getFlatConfigs().browser,
github.getFlatConfigs().recommended,
...github.getFlatConfigs().typescript,
eslintPluginPrettierRecommended,
{ files: ['**/*.{js,mjs,cjs,ts}'] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
'i18n-text/no-en': 'off',
},
},
{ ignores: ['dist/', '.yarn/', 'lib/'] },
];