Skip to content

Commit fb18435

Browse files
committed
updated eslint configuration
1 parent 139265c commit fb18435

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.eslintrc.js

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
module.exports = {
2+
root: true,
23
env: {
34
node: true,
45
browser: true,
5-
es6: true,
66
},
7-
extends: ["@vue/airbnb", "airbnb-base", "plugin:vue/essential", "plugin:prettier/recommended"],
8-
// globals: {
9-
// Atomics: "readonly",
10-
// SharedArrayBuffer: "readonly",
11-
// },
7+
extends: ["plugin:vue/essential", "@vue/airbnb", "plugin:prettier/recommended"],
128
parserOptions: {
139
parser: "babel-eslint",
14-
ecmaVersion: 2020,
15-
sourceType: "module",
1610
},
17-
plugins: ["vue"],
11+
// plugins: ["vue"],
1812
rules: {
1913
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
2014
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
@@ -35,7 +29,7 @@ module.exports = {
3529
{
3630
arrowParens: "always",
3731
bracketSpacing: true,
38-
printWidth: 100,
32+
printWidth: 80,
3933
semi: true,
4034
tabWidth: 3,
4135
trailingComma: "all",

babel.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
module.exports = {
2-
presets: ["@vue/app"],
2+
// presets: ["@vue/app"],
3+
presets: [
4+
"@vue/cli-plugin-babel/preset",
5+
// "@vue/app"
6+
],
37
};

0 commit comments

Comments
 (0)