Skip to content

Commit bab90f4

Browse files
authored
refactor(eslint): use cordova-eslint /w fix (#283)
1 parent a13a360 commit bab90f4

File tree

8 files changed

+1069
-839
lines changed

8 files changed

+1069
-839
lines changed

.eslintrc.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
root: true
19+
extends: "@cordova/eslint-config/browser"
20+
21+
overrides:
22+
- files: [tests/**/*.js]
23+
extends: "@cordova/eslint-config/node-tests"

.jshintrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"cordova-windows"
2525
],
2626
"scripts": {
27-
"test": "npm run jshint",
28-
"jshint": "jshint www && jshint src && jshint tests"
27+
"test": "npm run lint",
28+
"lint": "eslint ."
2929
},
3030
"author": "Apache Software Foundation",
3131
"license": "Apache-2.0",
@@ -43,6 +43,6 @@
4343
}
4444
},
4545
"devDependencies": {
46-
"jshint": "^2.6.0"
46+
"@cordova/eslint-config": "^3.0.0"
4747
}
4848
}

0 commit comments

Comments
 (0)