-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.mjs
More file actions
41 lines (39 loc) · 826 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
41 lines (39 loc) · 826 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
34
35
36
37
38
39
40
41
import globals from 'globals';
import jest from 'eslint-plugin-jest';
import react from 'eslint-plugin-react';
import prettier from 'eslint-config-prettier';
import reactHooks from 'eslint-plugin-react-hooks';
import tsEsLint from '@typescript-eslint/eslint-plugin';
import tsEsLintParser from '@typescript-eslint/parser';
export default [
{
files: ['src/**/*.{ts,tsx}', 'demo/**/*.{ts,tsx}', '__tests__/**/*.{ts,tsx}'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.jest
},
parser: tsEsLintParser,
parserOptions: {
project: 'tsconfig-lint.json',
sourceType: 'module'
}
},
plugins: {
jest,
react,
prettier,
reactHooks,
tsEsLint
},
rules: {
'no-console': 'error'
},
settings: {
react: {
version: '19'
}
}
}
];