Skip to content

Commit

Permalink
Simplify eslint config/dependencies + delint
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrrl committed Apr 25, 2022
1 parent f866211 commit 0955241
Show file tree
Hide file tree
Showing 6 changed files with 564 additions and 582 deletions.
9 changes: 5 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ module.exports = {
rules: {
'comma-dangle': ['error', 'never'],
'max-len': ['error', { code: 100 }],
camelcase: 'off', // Off for destructuring
'async-await/space-after-async': 2,
'async-await/space-after-await': 2,
eqeqeq: 2,
'camelcase': ['error', {
'ignoreDestructuring': true,
'ignoreImports': true,
'allow': ['access_type', 'redirect_uris'],
}],
'guard-for-in': 'off',
'no-var': 'off', // ES3
'no-unused-vars': 'off' // functions aren't used.
Expand Down
2 changes: 1 addition & 1 deletion advanced/docs.gs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function insertAndStyleText(documentId, text) {
startIndex: 1,
endIndex: text.length + 1
},
text_style: {
textStyle: {
fontSize: {
magnitude: 12,
unit: 'PT'
Expand Down
6 changes: 3 additions & 3 deletions data-studio/auth.gs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ function resetAuth() {
* Resets the auth service.
*/
function resetAuth() {
var user_tokenProperties = PropertiesService.getUserProperties();
user_tokenProperties.deleteProperty('dscc.username');
user_tokenProperties.deleteProperty('dscc.password');
var userTokenProperties = PropertiesService.getUserProperties();
userTokenProperties.deleteProperty('dscc.username');
userTokenProperties.deleteProperty('dscc.password');
}
// [END apps_script_data_studio_auth_reset_user_token]

Expand Down
13 changes: 0 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"devDependencies": {
"eslint": "8.12.0",
"eslint-config-google": "0.14.0",
"eslint-plugin-async-await": "0.0.0",
"eslint-plugin-googleappsscript": "1.0.4"
},
"scripts": {
Expand Down
Loading

0 comments on commit 0955241

Please sign in to comment.