-
-
Notifications
You must be signed in to change notification settings - Fork 297
/
Copy patheslint.config.mjs
42 lines (41 loc) · 1021 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
31
32
33
34
35
36
37
38
39
40
41
42
import appiumConfig from '@appium/eslint-config-appium-ts';
import reactPlugin from 'eslint-plugin-react';
import simpleImportSortPlugin from 'eslint-plugin-simple-import-sort';
import globals from 'globals';
export default [
...appiumConfig,
{
name: 'React Plugin',
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
...reactPlugin.configs.flat.recommended,
...reactPlugin.configs.flat['jsx-runtime'],
},
{
name: 'JS/TS Files',
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
document: 'readonly',
},
},
plugins: {
'simple-import-sort': simpleImportSortPlugin,
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'react/prop-types': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
},
},
{
name: 'Ignores',
ignores: ['**/*.xml', '**/*.html'],
},
];