-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
54 lines (53 loc) · 1.17 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es2022: true,
node: true,
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
extends: [
'prettier',
'airbnb-base',
'eslint:recommended',
'plugin:solid/recommended',
'plugin:solid/typescript',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
lib: ['ESNext', 'DOM'],
ecmaFeatures: {
jsx: true,
},
},
plugins: ['@typescript-eslint', 'solid', '@typescript-eslint/tslint'],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'solid/reactivity': 'warn',
'solid/no-destructure': 'warn',
'solid/jsx-no-undef': 'error',
'import/extensions': 0,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'object-curly-newline': 'off',
'implicit-arrow-linebreak': 'off',
'arrow-parens': 'off',
'function-paren-newline': 'off',
'operator-linebreak': 'off',
'max-len': [
'warn',
{
code: 80,
},
],
},
ignorePatterns: ['dist'],
};