-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format JavaScript with Prettier through ESLint (#1906)
This is a stepping stone towards retiring TSLint and using ESLint for all source files.
- Loading branch information
1 parent
eae5417
commit 75fee43
Showing
1,172 changed files
with
26,742 additions
and
22,309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
es |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module.exports = { | ||
settings: { | ||
"import/resolver": { | ||
node: { | ||
extensions: [".js"] | ||
}, | ||
webpack: { | ||
config: "./src-docs/webpack.config.js" | ||
} | ||
} | ||
}, | ||
extends: [ | ||
"@elastic/eslint-config-kibana", | ||
// Prettier options need to come last, in order to override other style | ||
// rules. | ||
"prettier/react", | ||
"prettier/standard", | ||
"plugin:prettier/recommended" | ||
], | ||
plugins: [ | ||
"prettier", | ||
"local" | ||
], | ||
rules: { | ||
"prefer-template": "error", | ||
"local/i18n": "error" | ||
}, | ||
env: { | ||
jest: true | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
plugins: [ | ||
require('autoprefixer')({ browsers: ['last 2 versions'] }), | ||
require('postcss-inline-svg')({ relative: true, path: __dirname }) | ||
] | ||
require('postcss-inline-svg')({ relative: true, path: __dirname }), | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
export { | ||
toggleTheme, | ||
} from './theme_actions'; | ||
export { toggleTheme } from './theme_actions'; | ||
|
||
export { | ||
toggleLocale, | ||
} from './locale_actions'; | ||
export { toggleLocale } from './locale_actions'; |
14 changes: 5 additions & 9 deletions
14
src-docs/src/components/guide_locale_selector/guide_locale_selector.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
export { | ||
GuidePage, | ||
} from './guide_page'; | ||
export { GuidePage } from './guide_page'; | ||
|
||
export { | ||
GuidePageChrome, | ||
} from './guide_page_chrome'; | ||
export { GuidePageChrome } from './guide_page_chrome'; |
Oops, something went wrong.