mlpcardgame/.eslintrc.js

31 lines
550 B
JavaScript
Raw Normal View History

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: {
"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: [
{
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
};