2019-09-02 07:29:49 +00:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2019-09-05 07:34:18 +00:00
|
|
|
|
2019-09-02 07:29:49 +00:00
|
|
|
env: {
|
|
|
|
node: true
|
|
|
|
},
|
2019-09-05 07:34:18 +00:00
|
|
|
|
2019-09-02 07:29:49 +00:00
|
|
|
extends: ["plugin:vue/essential", "@vue/prettier", "@vue/typescript"],
|
2019-09-05 07:34:18 +00:00
|
|
|
|
2019-09-02 07:29:49 +00:00
|
|
|
rules: {
|
2019-09-21 09:19:16 +00:00
|
|
|
"no-console":
|
|
|
|
process.env.NODE_ENV === "production"
|
|
|
|
? ["error", { allow: ["info", "warn", "error"] }]
|
|
|
|
: "off",
|
2019-09-02 07:29:49 +00:00
|
|
|
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
|
|
|
|
},
|
2019-09-05 07:34:18 +00:00
|
|
|
|
2019-09-02 07:29:49 +00:00
|
|
|
parserOptions: {
|
|
|
|
parser: "@typescript-eslint/parser"
|
2019-09-05 07:34:18 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
overrides: [
|
|
|
|
{
|
2019-09-20 14:41:24 +00:00
|
|
|
files: ["**/__tests__/*.{j,t}s?(x)"],
|
2019-09-05 07:34:18 +00:00
|
|
|
env: {
|
|
|
|
jest: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-09-02 07:29:49 +00:00
|
|
|
};
|