Skip to content

Commit 8d4353f

Browse files
committed
Fix lint
1 parent 4c02657 commit 8d4353f

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"extends": ["eslint-config-babel", "eslint-config-prettier"],
77
"plugins": ["prettier"],
88
"rules": {
9-
"prettier/prettier": ["error", { "trailingComma": "all" }]
9+
"prettier/prettier": "error"
1010
}
1111
}

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"arrowParens": "avoid",
3+
"trailingComma": "all",
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": false,
7+
"bracketSpacing": true,
8+
"jsxBracketSameLine": false,
9+
"tabWidth": 2,
10+
"printWidth": 80
11+
}

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ if (/^6\./.test(babel.version)) {
1919
);
2020
}
2121

22-
const {version} = require("../package.json");
22+
const { version } = require("../package.json");
2323
const cache = require("./cache");
2424
const transform = require("./transform");
2525
const injectCaller = require("./injectCaller");
2626

27-
const {isAbsolute} = require("path");
27+
const { isAbsolute } = require("path");
2828
const loaderUtils = require("loader-utils");
2929

3030
function subscribe(subscriber, metadata, context) {

0 commit comments

Comments
 (0)