-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
63 lines (62 loc) · 1.46 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
55
56
57
58
59
60
61
62
63
const commonTSConfig = {
extends: [
'eslint:recommended',
'plugin:compat/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@stencil/recommended',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier', 'promise'],
rules: {
'@stencil/decorators-style': 0,
'@stencil/element-type': 0,
'@stencil/strict-boolean-conditions': 0,
'@stencil/strict-mutable': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-extra-semi': 0,
'prettier/prettier': 'error',
'react/jsx-no-bind': 0,
},
}
module.exports = {
env: { browser: true, amd: true, node: true, es6: true },
root: true,
extends: ['eslint:recommended'],
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
},
overrides: [
{
...commonTSConfig,
files: ['*.ts'],
},
{
...commonTSConfig,
files: ['src/liquid/**/*.ts', 'src/liquid/**/*.tsx'],
parserOptions: {
project: ['./tsconfig.json'],
},
},
{
...commonTSConfig,
files: [
'src/docs/**/*.ts',
'src/docs/**/*.tsx',
'src/liquid/**/test/*.ts',
],
parserOptions: {
project: ['./tsconfig.json'],
},
},
],
plugins: ['@babel'],
settings: {
react: {
version: '0',
},
},
}