-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
58 lines (47 loc) · 1.28 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
54
55
56
57
58
/**
* Copyright 2023 Design Barn Inc.
*/
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',
'no-case-declarations': 'off',
// Disable project specific
'func-style': 'off',
// Disable the async generator warning
'no-restricted-syntax': 'off',
// Disable deprecation testing
'deprecation/deprecation': 'off',
'no-undefined': 'off',
'import/extensions': 'off',
'no-invalid-this': 'off',
},
};