forked from AxisCommunications/media-stream-library-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
43 lines (42 loc) · 918 Bytes
/
.eslintrc.cjs
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
43
// eslint-disable-next-line @typescript-eslint/no-require-imports
const rules = require('./.eslint-rules.cjs')
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
allowAutomaticSingleRunInference: true,
ecmaFeatures: { jsx: true },
ecmaVersion: 2022,
project: [
'./example-overlay-react/tsconfig.json',
'./overlay/tsconfig.json',
'./player/tsconfig.json',
'./streams/tsconfig.json',
'./tools/tsconfig.json',
'./tsconfig.eslint.json',
],
sourceType: 'module',
tsconfigRootDir: __dirname,
},
env: {
es6: true,
},
plugins: [
'@typescript-eslint',
'deprecation',
'react',
'react-hooks',
'simple-import-sort',
],
rules: {
...rules.base,
},
settings: {
react: { version: '18' },
},
ignorePatterns: [
'**/*.min.js*',
'**/__generated__/',
'**/dist/',
],
}