Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit 242338d

Browse files
committed
Replace eslint config with that of rollup
1 parent 38ad09a commit 242338d

File tree

4 files changed

+32
-160
lines changed

4 files changed

+32
-160
lines changed

.eslintrc.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1-
extends: airbnb/base
1+
extends:
2+
- eslint:recommended
3+
- plugin:import/errors
4+
- plugin:import/warnings
5+
parserOptions:
6+
ecmaVersion: 8
7+
sourceType: module
8+
env:
9+
es6: true
10+
node: true
211
rules:
3-
prefer-template: 0
12+
indent: [ 2, 2, { "SwitchCase": 1 } ]
13+
semi: [ 2, "always" ]
14+
keyword-spacing: [ 2, { "before": true, "after": true } ]
15+
space-before-blocks: [ 2, "always" ]
16+
no-mixed-spaces-and-tabs: [ 2, "smart-tabs" ]
17+
no-cond-assign: 0
18+
no-unused-vars: 2
19+
object-shorthand: [ 2, "always" ]
20+
no-const-assign: 2
21+
no-class-assign: 2
22+
no-this-before-super: 2
23+
no-var: 2
24+
no-unreachable: 2
25+
valid-typeof: 2
26+
quote-props: [ 2, "as-needed" ]
27+
one-var: [ 2, "never" ]
28+
prefer-arrow-callback: 2
29+
prefer-const: [ 2, { "destructuring": "all" } ]
30+
arrow-spacing: 2
31+

package-lock.json

Lines changed: 0 additions & 153 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@
3838
"ava": "^0.25.0",
3939
"coveralls": "^3.0.2",
4040
"eslint": "^5.10.0",
41-
"eslint-config-airbnb": "^17.1.0",
4241
"eslint-plugin-import": "^2.14.0",
43-
"eslint-plugin-jsx-a11y": "^6.1.2",
44-
"eslint-plugin-react": "^7.11.1",
4542
"npm-run-all": "^4.1.5",
4643
"nyc": "^13.1.0",
4744
"rimraf": "^2.5.2",

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export default function alias(options = {}) {
7777

7878
if (match) {
7979
updatedId = match;
80-
// To keep the previous behaviour we simply return the file path
81-
// with extension
80+
// To keep the previous behaviour we simply return the file path
81+
// with extension
8282
} else if (endsWith('.js', filePath)) {
8383
updatedId = filePath;
8484
} else {

0 commit comments

Comments
 (0)