forked from monarch-initiative/monarch-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (43 loc) · 1.35 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
const path = require("path");
// const GenomeFeatureViewer = path.resolve(__dirname, '../GenomeFeatureComponent/dist/index.js');
// const GenomeFeatureViewerCSS = path.resolve(__dirname, '../GenomeFeatureComponent/dist/GenomeFeatureViewer.css');
const GenomeFeatureViewer = path.resolve(
__dirname,
"node_modules/genomefeaturecomponent/dist/index.js"
);
module.exports = {
root: true,
env: {
node: true,
browser: true,
},
plugins: ["import", "vue"],
extends: ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/prettier"],
rules: {},
parserOptions: {
parser: "babel-eslint",
},
settings: {
//
// eslint-import-resolver-webpack is supposed to allow the webpack
// aliases from webpack.config.js to be recognized as valid import
// locations, but it doesn't work.
// So I'm using eslint-import-resolver-alias and duplicating the
// aliases here, which does work.
//
"import/resolver": {
alias: {
// https://www.npmjs.com/package/eslint-import-resolver-alias
map: [
["@", path.resolve(__dirname, "src")],
["vue$", "vue/dist/vue.runtime.esm.js"],
["GenomeFeatureViewer$", GenomeFeatureViewer],
],
},
webpack: {
// https://www.npmjs.com/package/eslint-import-resolver-webpack
// Does not work, but should
},
},
},
};