Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit 2fc244c

Browse files
authored
chore(deps-dev): update prettier & eslint deps (#788)
* chore(deps-dev): extract eslint-config-carbon-base * chore(deps-dev): update prettier deps chore: demo * chore: run yarn format * chore: format .ts files * chore(deps-dev): update eslint deps
1 parent 013259f commit 2fc244c

File tree

204 files changed

+1674
-2190
lines changed

Some content is hidden

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

204 files changed

+1674
-2190
lines changed

.eslintrc.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,29 @@
1010
const restrictedGlobals = require('eslint-restricted-globals');
1111

1212
module.exports = {
13+
extends: ['airbnb-base', 'plugin:prettier/recommended'],
1314
plugins: ['babel'],
1415
parser: 'babel-eslint',
1516
parserOptions: {
1617
ecmaVersion: 6,
1718
sourceType: 'script',
1819
},
19-
extends: ['carbon-base'],
2020
env: {
2121
node: true,
2222
es6: true,
23+
browser: true,
2324
},
2425
rules: {
26+
'max-len': [2, 130, 4],
27+
'no-param-reassign': [
28+
2,
29+
{
30+
props: false,
31+
},
32+
],
33+
'no-plusplus': 0,
34+
'no-underscore-dangle': 0,
35+
'prefer-rest-params': 0,
2536
'no-restricted-globals': ['error', 'isFinite'].concat(restrictedGlobals),
2637
'no-unused-expressions': 0,
2738
'babel/no-unused-expressions': 2,

.storybook/container.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license
33
*
4-
* Copyright IBM Corp. 2020
4+
* Copyright IBM Corp. 2020, 2021
55
*
66
* This source code is licensed under the Apache-2.0 license found in the
77
* LICENSE file in the root directory of this source tree.
@@ -28,8 +28,7 @@ const container = ({ hasMainTag, children }: { hasMainTag?: boolean; children: T
2828
name="main-content"
2929
data-floating-menu-container
3030
role="${hasMainTag ? 'none' : 'main'}"
31-
class="bx--body bx-ce-demo-devenv--container"
32-
>
31+
class="bx--body bx-ce-demo-devenv--container">
3332
${children}
3433
</div>
3534
`;
-10.8 KB
Binary file not shown.
-5.27 KB
Binary file not shown.
5.22 KB
Binary file not shown.
-295 KB
Binary file not shown.
296 KB
Binary file not shown.
-15.6 KB
Binary file not shown.
15.4 KB
Binary file not shown.
-124 KB
Binary file not shown.

0 commit comments

Comments
 (0)