-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy patheslint.config.js
More file actions
33 lines (32 loc) · 877 Bytes
/
eslint.config.js
File metadata and controls
33 lines (32 loc) · 877 Bytes
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
31
32
33
import js from '@eslint/js';
import globals from 'globals';
import noOnlyTests from 'eslint-plugin-no-only-tests';
import tslint from 'typescript-eslint';
import eslintConfigPrettier from 'eslint-config-prettier/flat';
export default [
{
// https://github.com/eslint/eslint/discussions/18304#discussioncomment-9069706
ignores: ['node_modules/*', 'dist/*', 'coverage/*', 'public/*'],
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.mocha,
...globals.chai,
...globals.node,
},
},
rules: {
...js.configs.recommended.rules,
...tslint.configs.recommended.rules,
// turn this off for Prettier
'no-irregular-whitespace': 'off',
'no-only-tests/no-only-tests': 'error',
},
plugins: {
'no-only-tests': noOnlyTests,
},
},
eslintConfigPrettier,
];