-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
eslint.config.mjs
30 lines (24 loc) · 963 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
27
28
29
30
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import jestPlugin from 'eslint-plugin-jest';
import prettierConfig from 'eslint-config-prettier';
// https://typescript-eslint.io/getting-started/
export default tseslint.config(
{
// config with just ignores is the replacement for `.eslintignore`
ignores: ['**/build/**', '**/dist/**', 'coverage', 'docker'],
},
// Turns off all rules that are unnecessary or might conflict with Prettier.
prettierConfig,
// recommended eslint config
eslint.configs.recommended,
// strict: a superset of recommended that includes more opinionated rules which may also catch bugs.
...tseslint.configs.strict,
// stylistic: additional rules that enforce consistent styling without significantly catching bugs or changing logic.
...tseslint.configs.stylistic,
// ESLint plugin for Jest
{
files: ['**/*.spec.ts'],
...jestPlugin.configs['flat/recommended']
}
);