Skip to content

Commit

Permalink
Minor repo improvements (OctoLinker#379)
Browse files Browse the repository at this point in the history
* Use js file extension for eslintrc file

* Fix eslintrc qutoes

* Move babel config into own file
  • Loading branch information
stefanbuck authored Oct 5, 2017
1 parent 3a5a798 commit e4bd3de
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 63 deletions.
26 changes: 26 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"plugins": [
[
"transform-runtime",
{
"helpers": false,
"polyfill": false
}
],
"transform-object-rest-spread"
],
"presets": [
[
"env",
{
"targets": {
"browsers": [
"last 3 Chrome versions",
"last 3 Firefox versions",
"last 3 Opera versions"
]
}
}
]
]
}
37 changes: 0 additions & 37 deletions .eslintrc

This file was deleted.

37 changes: 37 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = {
extends: ['airbnb-base', 'plugin:import/errors'],
plugins: ['mocha'],
env: {
browser: true,
mocha: true
},
rules: {
'func-names': 0,
'id-length': [1, {'exceptions': ['$']}],
'new-cap': [2, {'capIsNewExceptions': ['Deferred']}],
'max-len': 0,
'no-prototype-builtins': 0,
'import/extensions': 0,
'import/prefer-default-export': 0,
'no-underscore-dangle': 0,
'no-useless-escape': 0,
'class-methods-use-this': 0,
'no-param-reassign': 0,
'no-restricted-syntax': 0,
'consistent-return': 0,
'array-callback-return': 0,
'mocha/no-exclusive-tests': 2,
'mocha/no-skipped-tests': 2,
'mocha/no-pending-tests': 2,
'mocha/handle-done-callback': 2,
'mocha/no-global-tests': 2,
'mocha/no-return-and-callback': 2,
'mocha/no-sibling-hooks': 2,
'mocha/no-identical-title': 2,
'mocha/no-top-level-hooks': 2
},
globals: {
fixture: true,
chrome: true,
}
}
26 changes: 0 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,6 @@
"firefox-open": "npm run firefox-build && npm run firefox-launch --",
"firefox-launch": "web-ext run --source-dir dist --pref startup.homepage_welcome_url=https://github.com/OctoLinker/browser-extension/blob/master/package.json"
},
"babel": {
"plugins": [
[
"transform-runtime",
{
"helpers": false,
"polyfill": false
}
],
"transform-object-rest-spread"
],
"presets": [
[
"env",
{
"targets": {
"browsers": [
"last 3 Chrome versions",
"last 3 Firefox versions",
"last 3 Opera versions"
]
}
}
]
]
},
"dependencies": {
"JSONPath": "^0.11.2",
"babel-runtime": "^6.26.0",
Expand Down

0 comments on commit e4bd3de

Please sign in to comment.