|
|
@@ -1,20 +1,17 @@
|
|
|
module.exports = {
|
|
|
root: true,
|
|
|
env: {
|
|
|
- node: true,
|
|
|
+ node: true
|
|
|
},
|
|
|
- extends: [
|
|
|
- 'plugin:vue/essential',
|
|
|
- '@vue/airbnb',
|
|
|
- ],
|
|
|
+ extends: ["plugin:vue/essential", "@vue/airbnb"],
|
|
|
rules: {
|
|
|
- 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
|
- 'indent': ['error', 4],
|
|
|
- 'max-len': ["error", { "code": 200 }],
|
|
|
- 'no-param-reassign': ["error", { "props": true, "ignorePropertyModificationsFor": ["state", "Vue"] }],
|
|
|
+ "no-console": process.env.NODE_ENV === "production" ? "error" : "off",
|
|
|
+ "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
|
|
|
+ indent: ["error", 4],
|
|
|
+ "max-len": ["error", { code: 200 }],
|
|
|
+ "no-param-reassign": ["error", { props: true, ignorePropertyModificationsFor: ["state", "Vue"] }]
|
|
|
},
|
|
|
parserOptions: {
|
|
|
- parser: 'babel-eslint',
|
|
|
- },
|
|
|
+ parser: "babel-eslint"
|
|
|
+ }
|
|
|
};
|