Skip to content

Commit 0955241

Browse files
committed
Simplify eslint config/dependencies + delint
1 parent f866211 commit 0955241

File tree

6 files changed

+564
-582
lines changed

6 files changed

+564
-582
lines changed

.eslintrc.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ module.exports = {
1010
rules: {
1111
'comma-dangle': ['error', 'never'],
1212
'max-len': ['error', { code: 100 }],
13-
camelcase: 'off', // Off for destructuring
14-
'async-await/space-after-async': 2,
15-
'async-await/space-after-await': 2,
16-
eqeqeq: 2,
13+
'camelcase': ['error', {
14+
'ignoreDestructuring': true,
15+
'ignoreImports': true,
16+
'allow': ['access_type', 'redirect_uris'],
17+
}],
1718
'guard-for-in': 'off',
1819
'no-var': 'off', // ES3
1920
'no-unused-vars': 'off' // functions aren't used.

advanced/docs.gs

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function insertAndStyleText(documentId, text) {
9595
startIndex: 1,
9696
endIndex: text.length + 1
9797
},
98-
text_style: {
98+
textStyle: {
9999
fontSize: {
100100
magnitude: 12,
101101
unit: 'PT'

data-studio/auth.gs

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ function resetAuth() {
133133
* Resets the auth service.
134134
*/
135135
function resetAuth() {
136-
var user_tokenProperties = PropertiesService.getUserProperties();
137-
user_tokenProperties.deleteProperty('dscc.username');
138-
user_tokenProperties.deleteProperty('dscc.password');
136+
var userTokenProperties = PropertiesService.getUserProperties();
137+
userTokenProperties.deleteProperty('dscc.username');
138+
userTokenProperties.deleteProperty('dscc.password');
139139
}
140140
// [END apps_script_data_studio_auth_reset_user_token]
141141

package-lock.json

-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"devDependencies": {
1818
"eslint": "8.12.0",
1919
"eslint-config-google": "0.14.0",
20-
"eslint-plugin-async-await": "0.0.0",
2120
"eslint-plugin-googleappsscript": "1.0.4"
2221
},
2322
"scripts": {

0 commit comments

Comments
 (0)