Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 32b95bb

Browse files
committedSep 24, 2021
chore: upgrade eslint
1 parent 229c437 commit 32b95bb

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed
 

‎package.json

+10-7
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@
6969
"autoprefixer": "^9.1.5",
7070
"chai": "^3.5.0",
7171
"cross-env": "^7.0.3",
72-
"eslint": "^4.19.1",
73-
"eslint-config-airbnb-base": "^13.1.0",
74-
"eslint-formatter-friendly": "^6.0.0",
75-
"eslint-loader": "^2.1.0",
76-
"eslint-plugin-import": "^2.14.0",
77-
"eslint-plugin-vue": "^4.7.1",
72+
"eslint": "^7.32.0",
73+
"eslint-config-airbnb-base": "^14.2.1",
74+
"eslint-formatter-friendly": "^7.0.0",
75+
"eslint-plugin-import": "^2.24.2",
76+
"eslint-plugin-vue": "^7.18.0",
7877
"focus-visible": "^4.1.5",
7978
"husky": "^0.14.3",
8079
"karma": "^3.0.0",
@@ -128,13 +127,17 @@
128127
"extends": [
129128
"airbnb-base",
130129
"plugin:vue/essential"
131-
]
130+
],
131+
"parserOptions": {
132+
"ecmaVersion": 2020
133+
}
132134
},
133135
"eslintIgnore": [
134136
"build",
135137
"dev",
136138
"dist",
137139
"test/unit/coverage",
140+
"test/unit",
138141
"scripts"
139142
]
140143
}

‎src/entry.esm.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// Import vue component
32
import component from './components/InfiniteLoading.vue';
43

‎src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const scrollBarStorage = {
108108
* @return {String}
109109
*/
110110
export function kebabCase(str) {
111-
return str.replace(/[A-Z]/g, s => `-${s.toLowerCase()}`);
111+
return str.replace(/[A-Z]/g, (s) => `-${s.toLowerCase()}`);
112112
}
113113

114114
/**

0 commit comments

Comments
 (0)
Please sign in to comment.