Skip to content

Commit cb5ee01

Browse files
authoredJul 9, 2018
Increase prettier line width to 100 (#20535)
* Increase prettier line width to 100 * Fix packages JS prettier * Change style guide to 100 width * Fix line-width in latest master changes
1 parent 433f8a9 commit cb5ee01

File tree

126 files changed

+383
-1275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+383
-1275
lines changed
 

‎.eslintrc.js

+7-13
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ const { readdirSync } = require('fs');
33
const dedent = require('dedent');
44

55
module.exports = {
6-
extends: [
7-
'@elastic/eslint-config-kibana',
8-
'@elastic/eslint-config-kibana/jest',
9-
],
6+
extends: ['@elastic/eslint-config-kibana', '@elastic/eslint-config-kibana/jest'],
107

118
settings: {
129
'import/resolver': {
@@ -82,15 +79,12 @@ module.exports = {
8279
forceNode: false,
8380
rootPackageName: 'kibana',
8481
kibanaPath: '.',
85-
pluginMap: readdirSync(resolve(__dirname, 'x-pack/plugins')).reduce(
86-
(acc, name) => {
87-
if (!name.startsWith('_')) {
88-
acc[name] = `x-pack/plugins/${name}`;
89-
}
90-
return acc;
91-
},
92-
{}
93-
),
82+
pluginMap: readdirSync(resolve(__dirname, 'x-pack/plugins')).reduce((acc, name) => {
83+
if (!name.startsWith('_')) {
84+
acc[name] = `x-pack/plugins/${name}`;
85+
}
86+
return acc;
87+
}, {}),
9488
},
9589
},
9690
},

‎.prettierrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"singleQuote": true,
3-
"trailingComma": "es5"
3+
"trailingComma": "es5",
4+
"printWidth": 100
45
}

0 commit comments

Comments
 (0)