-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypescript.js
37 lines (37 loc) · 976 Bytes
/
typescript.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
module.exports = {
extends: ['./base.js'],
overrides: [
{
env: { browser: true, es6: true, node: true },
extends: [
'./base.js',
'standard-with-typescript',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'plugin:import/typescript',
],
files: ['**/*.ts', '**/*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
project: './tsconfig.json',
sourceType: 'module',
},
plugins: ['prettier', '@typescript-eslint'],
rules: {
'@typescript-eslint/semi': ['error'],
'@typescript-eslint/strict-boolean-expressions': 'off',
'jsdoc/require-param-type': 'off',
'prettier/prettier': [
'error',
{
semi: false,
singleQuote: true,
},
],
semi: 'off',
},
},
],
}