1
1
var path = require ( 'path' ) ;
2
2
3
3
module . exports = {
4
- "extends" : [
5
- "@plotly/eslint-config-dash/typescript" ,
6
-
4
+ extends : [
5
+ 'eslint:recommended' ,
6
+ 'prettier' ,
7
+ 'plugin:@typescript-eslint/eslint-recommended' ,
8
+ 'plugin:@typescript-eslint/recommended'
9
+ ] ,
10
+ plugins : [
11
+ 'react' ,
12
+ 'import' ,
13
+ '@typescript-eslint'
7
14
] ,
8
- "parserOptions" : {
9
- "project" : path . join ( __dirname , "tsconfig.json" ) ,
15
+ env : {
16
+ browser : true
17
+ } ,
18
+ parserOptions : {
19
+ project : path . join ( __dirname , "tsconfig.json" )
10
20
} ,
11
- "rules" : {
12
- "no-constant-condition" : 0 ,
13
- "no-prototype-builtins" : 0 ,
14
- "@typescript-eslint/no-var-requires" : 0
21
+ rules : {
22
+ 'arrow-parens' : [ 2 , 'as-needed' ] ,
23
+ 'comma-dangle' : [ 2 , 'never' ] ,
24
+ 'no-constant-condition' : 0 ,
25
+ 'no-prototype-builtins' : 0 ,
26
+ 'no-unused-expressions' : 2 ,
27
+ 'no-unused-vars' : 0 ,
28
+ 'prefer-arrow-callback' : 2 ,
29
+ 'quote-props' : [ 2 , 'as-needed' ] ,
30
+ 'quotes' : [ 2 , 'single' , { 'avoidEscape' : true } ] ,
31
+ '@typescript-eslint/ban-types' : 0 ,
32
+ '@typescript-eslint/explicit-module-boundary-types' : 0 ,
33
+ '@typescript-eslint/array-type' : 0 ,
34
+ '@typescript-eslint/eofline' : 0 ,
35
+ '@typescript-eslint/max-classes-per-file' : 0 ,
36
+ '@typescript-eslint/max-line-length' : 0 ,
37
+ '@typescript-eslint/member-access' : 0 ,
38
+ '@typescript-eslint/member-ordering' : 0 ,
39
+ '@typescript-eslint/no-conditional-assignment' : 0 ,
40
+ '@typescript-eslint/no-empty' : 0 ,
41
+ '@typescript-eslint/no-empty-function' : 0 ,
42
+ '@typescript-eslint/no-empty-interface' : 0 ,
43
+ '@typescript-eslint/no-explicit-any' : 0 ,
44
+ '@typescript-eslint/no-unused-vars' : [ 2 , { 'argsIgnorePattern' : '_' } ] ,
45
+ '@typescript-eslint/no-var-requires' : 0 ,
46
+ '@typescript-eslint/object-literal-sort-keys' : 0 ,
47
+ '@typescript-eslint/object-literal-shorthand' : 0 ,
48
+ '@typescript-eslint/ordered-imports' : 0 ,
49
+ '@typescript-eslint/prefer-const' : 0 ,
50
+ '@typescript-eslint/prefer-for-of' : 0 ,
51
+ '@typescript-eslint/space-before-function-paren' : [ 0 , 'always' ] ,
52
+ '@typescript-eslint/unified-signatures' : 0 ,
53
+ '@typescript-eslint/variable-name' : 0
15
54
}
16
- } ;
55
+ } ;
0 commit comments