1
- const errorInProduction = process . env . NODE_ENV === 'production' ? 'error' : 'off' ;
2
- const path = require ( 'path' ) ;
1
+ const path = require ( "path" ) ;
3
2
4
3
// const GenomeFeatureViewer = path.resolve(__dirname, '../GenomeFeatureComponent/dist/index.js');
5
4
// const GenomeFeatureViewerCSS = path.resolve(__dirname, '../GenomeFeatureComponent/dist/GenomeFeatureViewer.css');
6
- const GenomeFeatureViewer = path . resolve ( __dirname , 'node_modules/genomefeaturecomponent/dist/index.js' ) ;
7
- const GenomeFeatureViewerCSS = path . resolve ( __dirname , 'node_modules/genomefeaturecomponent/dist/GenomeFeatureViewer.css' ) ;
5
+ const GenomeFeatureViewer = path . resolve (
6
+ __dirname ,
7
+ "node_modules/genomefeaturecomponent/dist/index.js"
8
+ ) ;
9
+ const GenomeFeatureViewerCSS = path . resolve (
10
+ __dirname ,
11
+ "node_modules/genomefeaturecomponent/dist/GenomeFeatureViewer.css"
12
+ ) ;
8
13
9
14
module . exports = {
10
15
root : true ,
11
16
env : {
12
17
node : true ,
13
- browser : true
14
- } ,
15
- plugins : [
16
- 'import' ,
17
- 'vue'
18
- ] ,
19
- extends : [
20
- // 'plugin:import/errors',
21
- // 'plugin:import/warnings',
22
- 'plugin:vue/recommended' ,
23
- 'plugin:vue/essential' ,
24
- '@vue/standard' ,
25
- 'airbnb-base' ,
26
- ] ,
27
- rules : {
28
- 'no-plusplus' : 0 ,
29
- 'no-console' : errorInProduction ,
30
- 'no-debugger' : errorInProduction ,
31
- 'import/dynamic-import-chunkname' : 'error' ,
32
- 'brace-style' : [ 2 , '1tbs' ] ,
33
- 'padded-blocks' : 0 ,
34
- 'indent' : [ 2 , 2 , { 'SwitchCase' : 1 } ] ,
35
- 'spaced-comment' : 1 ,
36
- 'quotes' : [ 'error' , 'single' , { 'allowTemplateLiterals' : true } ] ,
37
- // 'import/prefer-default-export': 'off',
38
- // 'arrow-parens': ['error', 'as-needed'],
39
- // 'vue/html-self-closing': 0,
40
- // 'vue/html-indent': 1,
41
- 'global-require' : 0 ,
42
- 'no-unused-vars' : [ 0 , { 'argsIgnorePattern' : '^_' } ] ,
43
- 'quote-props' : [ 0 ] ,
44
- 'prefer-const' : [ 'error' , { 'destructuring' : 'all' } ] ,
45
- 'prefer-destructuring' : 0 ,
46
- 'prefer-arrow-callback' : 0 ,
47
- 'prefer-template' : 0 ,
48
- 'comma-dangle' : 0 ,
49
- 'max-len' : 0 ,
50
- 'standard/no-callback-literal' : 0 ,
51
- 'no-param-reassign' : 0 ,
52
- 'no-underscore-dangle' : 0 ,
53
- 'operator-linebreak' : 0 ,
54
- 'vue/max-attributes-per-line' : [ 'error' , {
55
- 'singleline' : 3 ,
56
- 'multiline' : {
57
- 'max' : 1 ,
58
- 'allowFirstLine' : false
59
- }
60
- } ]
18
+ browser : true ,
61
19
} ,
20
+ plugins : [ "import" , "vue" ] ,
21
+ extends : [ "plugin:vue/vue3-essential" , "eslint:recommended" , "@vue/prettier" ] ,
22
+ rules : { } ,
62
23
parserOptions : {
63
- parser : ' babel-eslint'
24
+ parser : " babel-eslint" ,
64
25
} ,
65
26
66
27
settings : {
@@ -71,17 +32,19 @@ module.exports = {
71
32
// So I'm using eslint-import-resolver-alias and duplicating the
72
33
// aliases here, which does work.
73
34
//
74
- 'import/resolver' : {
75
- alias : { // https://www.npmjs.com/package/eslint-import-resolver-alias
35
+ "import/resolver" : {
36
+ alias : {
37
+ // https://www.npmjs.com/package/eslint-import-resolver-alias
76
38
map : [
77
- [ '@' , path . resolve ( __dirname , ' src' ) ] ,
78
- [ ' vue$' , ' vue/dist/vue.runtime.esm.js' ] ,
79
- [ ' GenomeFeatureViewer$' , GenomeFeatureViewer ] ,
39
+ [ "@" , path . resolve ( __dirname , " src" ) ] ,
40
+ [ " vue$" , " vue/dist/vue.runtime.esm.js" ] ,
41
+ [ " GenomeFeatureViewer$" , GenomeFeatureViewer ] ,
80
42
] ,
81
43
} ,
82
- webpack : { // https://www.npmjs.com/package/eslint-import-resolver-webpack
44
+ webpack : {
45
+ // https://www.npmjs.com/package/eslint-import-resolver-webpack
83
46
// Does not work, but should
84
47
} ,
85
- }
48
+ } ,
86
49
} ,
87
50
} ;
0 commit comments