Skip to content

Commit

Permalink
refactor(eslint): use cordova-eslint /w fix (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 authored Sep 1, 2020
1 parent b4a4c2a commit cd15b50
Show file tree
Hide file tree
Showing 10 changed files with 1,884 additions and 1,577 deletions.
23 changes: 23 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

root: true
extends: '@cordova/eslint-config/browser'

overrides:
- files: [tests/**/*.js]
extends: '@cordova/eslint-config/node-tests'
23 changes: 0 additions & 23 deletions .jscsrc

This file was deleted.

19 changes: 0 additions & 19 deletions .jshintrc

This file was deleted.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@
]
},
"scripts": {
"test": "npm run lint && npm run style",
"lint": "jshint www && jshint src && jshint tests",
"style": "jscs tests/tests.js"
"test": "npm run lint",
"lint": "eslint ."
},
"repository": "github:apache/cordova-plugin-file-transfer",
"bugs": "https://github.com/apache/cordova-plugin-file-transfer/issues",
Expand All @@ -39,7 +38,6 @@
}
},
"devDependencies": {
"jscs": "^2.6.0",
"jshint": "^2.8.0"
"@cordova/eslint-config": "^3.0.0"
}
}
Loading

0 comments on commit cd15b50

Please sign in to comment.