Skip to content

Commit e9aff32

Browse files
committed
update eslint-config-prettier
1 parent e1df12f commit e9aff32

4 files changed

Lines changed: 11 additions & 22 deletions

File tree

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"codecov": "^3.6.5",
6565
"eslint": "^7.3.1",
6666
"eslint-config-airbnb-base": "^14.1.0",
67-
"eslint-config-prettier": "^6.11.0",
67+
"eslint-config-prettier": "^7.0.0",
6868
"eslint-plugin-import": "^2.20.2",
6969
"jest": "^26.0.1",
7070
"jest-mock-now": "^1.3.0",

src/nodes/AssemblyMemberAccess.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ const {
55
} = require('prettier/standalone');
66

77
const AssemblyMemberAccess = {
8-
print: ({ path, print }) => {
9-
return concat([
8+
print: ({ path, print }) =>
9+
concat([
1010
path.call(print, 'expression'),
1111
'.',
1212
path.call(print, 'memberName')
13-
]);
14-
}
13+
])
1514
};
1615

1716
module.exports = AssemblyMemberAccess;

src/nodes/FileLevelConstant.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ const {
55
} = require('prettier/standalone');
66

77
const FileLevelConstant = {
8-
print: ({ node, path, print }) => {
9-
return concat([
8+
print: ({ node, path, print }) =>
9+
concat([
1010
path.call(print, 'typeName'),
1111
' constant ',
1212
node.name,
1313
' = ',
1414
path.call(print, 'initialValue'),
1515
';'
16-
]);
17-
}
16+
])
1817
};
1918

2019
module.exports = FileLevelConstant;

0 commit comments

Comments
 (0)