-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.cjs
53 lines (43 loc) · 1.24 KB
/
.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
44
45
46
47
48
49
50
51
52
53
module.exports = {
root: true,
plugins: ['@lottiefiles'],
extends: [
'plugin:@lottiefiles/esnext',
'plugin:@lottiefiles/typescript',
'plugin:@lottiefiles/typescript-typechecking',
'plugin:@lottiefiles/nodejs',
'plugin:@lottiefiles/prettier',
],
overrides: [
{
files: ['*.ts', '*.tsx', '*.cts', '*.mts'],
parserOptions: {
project: ['./packages/*/tsconfig.json', './tsconfig.json'],
tsconfigRootDir: __dirname,
},
},
// Allow code in bin and scripts folders to do CLI things
{
files: ['**/@(bin|scripts|examples)/**/*.@(js|ts|cjs|mjs|cts|mts)'],
rules: {
'no-console': 'off',
'node/shebang': 'off',
},
},
],
rules: {
'default-param-last': 'off',
'@typescript-eslint/default-param-last': ['error'],
'@typescript-eslint/prefer-for-of': 'off',
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/member-ordering': 'off',
// Disable the LottieFiles header rule
'header/header': 'off',
// Disable the async generator warning
'no-restricted-syntax': 'off',
// Disable deprecation testing
'deprecation/deprecation': 'off',
'no-undefined': 'off',
'import/extensions': 'off',
},
};