Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit 097815e

Browse files
committed
Update eslint rules. Fix source accordingly.
1 parent 54d12eb commit 097815e

File tree

5 files changed

+9
-14
lines changed

5 files changed

+9
-14
lines changed

.eslintrc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"parser": "babel-eslint",
33
"extends": "eslint:recommended",
44
"env": {
5+
"browser": true,
56
"es6": true,
67
"node": true
78
},
@@ -10,13 +11,13 @@
1011
"modules": true
1112
},
1213
"rules": {
13-
"indent": [2, 4, {"SwitchCase": 1}],
14-
"no-console": 1,
15-
"no-const-assign": 2,
16-
"no-tabs": 1,
17-
"no-unused-vars": [1, {"vars": "all", "args": "none"}],
18-
"no-var": 1,
19-
"prefer-const": 1,
20-
"no-trailing-spaces": 1
14+
"indent": ["error", 4, {"SwitchCase": 1}],
15+
"no-console": ["error"],
16+
"no-const-assign": ["error"],
17+
"no-tabs": ["error"],
18+
"no-unused-vars": ["error", {"vars": "all", "args": "none"}],
19+
"no-var": ["error"],
20+
"prefer-const": ["error"],
21+
"no-trailing-spaces": ["error"]
2122
}
2223
}

src/hwcrypto.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/*global window location*/
21
'use strict'
32

43
// JavaScript library as described in

src/interfaces/DigiDocExtension.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*global window navigator*/
22
import NotImplementedPlugin from '../NotImplementedPlugin'
3-
import * as CONSTANTS from '../constants'
43
import { hasExtensionFor } from '../utils'
54

65
const digidoc_chrome = 'TokenSigning'

src/interfaces/DigiDocPlugin.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
/*global navigator*/
21
import { hasPluginFor, loadPluginFor, _debug } from '../utils'
32
import * as CONSTANTS from '../constants'
43
import NotImplementedPlugin from '../NotImplementedPlugin'
54

6-
//
75
const digidoc_mime = 'application/x-digidoc'
86

97
function code2str(err) {

src/utils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/*global navigator window document XMLHttpRequest*/
2-
31
import * as CONSTANTS from './constants'
42

53
// Returns "true" if a plugin is present for the MIME

0 commit comments

Comments
 (0)