Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Replace eslint config with that of rollup
  • Loading branch information
lukastaegert committed Dec 11, 2018
commit 242338dd9848f467cf89b95822cf37c2b6cb6bdd
32 changes: 30 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
extends: airbnb/base
extends:
- eslint:recommended
- plugin:import/errors
- plugin:import/warnings
parserOptions:
ecmaVersion: 8
sourceType: module
env:
es6: true
node: true
rules:
prefer-template: 0
indent: [ 2, 2, { "SwitchCase": 1 } ]
semi: [ 2, "always" ]
keyword-spacing: [ 2, { "before": true, "after": true } ]
space-before-blocks: [ 2, "always" ]
no-mixed-spaces-and-tabs: [ 2, "smart-tabs" ]
no-cond-assign: 0
no-unused-vars: 2
object-shorthand: [ 2, "always" ]
no-const-assign: 2
no-class-assign: 2
no-this-before-super: 2
no-var: 2
no-unreachable: 2
valid-typeof: 2
quote-props: [ 2, "as-needed" ]
one-var: [ 2, "never" ]
prefer-arrow-callback: 2
prefer-const: [ 2, { "destructuring": "all" } ]
arrow-spacing: 2

153 changes: 0 additions & 153 deletions package-lock.json

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

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
"ava": "^0.25.0",
"coveralls": "^3.0.2",
"eslint": "^5.10.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-react": "^7.11.1",
"npm-run-all": "^4.1.5",
"nyc": "^13.1.0",
"rimraf": "^2.5.2",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export default function alias(options = {}) {

if (match) {
updatedId = match;
// To keep the previous behaviour we simply return the file path
// with extension
// To keep the previous behaviour we simply return the file path
// with extension
} else if (endsWith('.js', filePath)) {
updatedId = filePath;
} else {
Expand Down