Skip to content

Commit

Permalink
chore(deps): update linting packages (carbon-design-system#11248)
Browse files Browse the repository at this point in the history
Closes carbon-design-system#10375

This removes local linting packages in favor of hosted ones.

**New**

- add `eslint-config-carbon` and `stylelint-config-carbon` linting packages

**Changed**

- update styles to use CSS logical properties
- update lint configs
- `packages/storybook-images` folder moved to `packages/web-components/.storybook/`
- various configs moved to package.json and standalone files removed

**Removed**
- local lint packages removed
  - `eslint-config-ibmdotcom`
  - `eslint-plugin-ibmdotcom-import-rules`
  - `eslint-plugin-react-prop-type-comments`
  - `stylelint-config-ibmdotcom`

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
  • Loading branch information
kennylam committed Mar 11, 2024
1 parent 775f96f commit e51d2f8
Show file tree
Hide file tree
Showing 1,171 changed files with 8,843 additions and 11,945 deletions.
22 changes: 0 additions & 22 deletions .commitlintrc

This file was deleted.

93 changes: 17 additions & 76 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,79 +1,20 @@
node_modules

# carbon-web-components
packages/carbon-web-components/coverage
packages/carbon-web-components/dist
packages/carbon-web-components/es
packages/carbon-web-components/examples
packages/carbon-web-components/umd
packages/carbon-web-components/lib
packages/carbon-web-components/node_modules
packages/carbon-web-components/storybook-static
packages/carbon-web-components/src/internal/vendor
packages/carbon-web-components/tests/e2e/dist
packages/carbon-web-components/tests/e2e/cypress
packages/carbon-web-components/tests/e2e-storybook/cypress

# react
packages/react/coverage
packages/react/es
packages/react/examples
packages/react/umd
packages/react/lib
packages/react/node_modules
packages/react/storybook-static
packages/react/ssr-tests/nextjs/.next
packages/react/src/internal/vendor
packages/react/tests/e2e/dist
packages/react/tests/e2e/cypress
packages/react/tests/e2e-storybook/cypress

# storybook-addon-theme
packages/storybook-addon-theme/es
packages/storybook-addon-theme/node_modules
# build folders
build
coverage
dist
es
lib
umd
packages/*/examples/*
storybook-static*

# services
packages/services/coverage
packages/services/docs
packages/services/es
packages/services/umd
packages/services/lib
packages/services/node_modules
packages/services/src/internal/vendor

# services-store
packages/services-store/es
packages/services-store/lib

# styles
packages/styles/dist
packages/styles/es
packages/styles/umd
packages/styles/lib
packages/styles/node_modules
packages/styles/src/carbon-stories
packages/styles/src/carbon-tools
packages/styles/storybook-static
node_modules

# utilities
packages/utilities/coverage
packages/utilities/docs
packages/utilities/es
packages/utilities/umd
packages/utilities/lib
packages/utilities/node_modules
# components
cypress
packages/web-components/src/components/masthead
packages/carbon-web-components/**/*-story.ts
__stories__
*.d.ts

# web-components
packages/web-components/coverage
packages/web-components/dist
packages/web-components/es
packages/web-components/examples
packages/web-components/umd
packages/web-components/lib
packages/web-components/node_modules
packages/web-components/storybook-static
packages/web-components/storybook-static-react
packages/web-components/src/internal/vendor
packages/web-components/tests/e2e/dist
packages/web-components/tests/e2e/cypress
packages/web-components/tests/e2e-storybook/cypress
packages/**/src/internal/vendor
119 changes: 0 additions & 119 deletions .eslintrc

This file was deleted.

46 changes: 46 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* Copyright IBM Corp. 2018, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

module.exports = {
extends: ['eslint-config-carbon', 'plugin:lit/recommended'],
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 11,
},
overrides: [
{
files: ['**/*.ts'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/no-non-null-assertion': 0,
'jsdoc/check-tag-names': [
'error',
{ definedTags: ['category', 'csspart', 'element', 'slot'] },
],
'lit/no-native-attributes': 0,
},
},
{
files: ['**/*_steps.js', '**/*.steps.js', '**/tests/**'],
globals: {
aChecker: true,
after: true,
before: true,
beforeAll: true,
beforeEach: true,
cy: true,
describe: true,
afterAll: true,
afterEach: true,
it: true,
expect: true,
page: true,
},
},
],
};
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
packages/*/build/
packages/*/examples/*/build/
packages/*/tests/e2e/dist/
packages/carbon-web-components/scss/
storybook-static*
es
lib
!packages/eslint-plugin-react-prop-type-comments/lib
!packages/eslint-plugin-ibmdotcom-import-rules/lib
dist
umd
css
Expand All @@ -25,6 +25,8 @@ logs
pids
*.pid
*.seed
custom-elements.json
.env

# Certificates
*.crt
Expand Down
15 changes: 0 additions & 15 deletions .lintstagedrc

This file was deleted.

10 changes: 2 additions & 8 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,5 @@
**/jsdocs/**
**/carbon-stories/**
**/carbon-tools/**
packages/web-components/scss/**/*.scss

# Ignore until linting packages upgraded to latest Carbon
packages/carbon-web-components/**/*.scss
packages/styles/scss/components/masthead/_masthead-megamenu.scss
packages/styles/scss/components/masthead/_masthead-search.scss
packages/styles/scss/components/search-with-typeahead/_search-with-typeahead.scss
packages/styles/scss/components/tabs-extended/_tabs-extended.scss
**/packages/web-components/scss/**
**/packages/carbon-web-components/scss/**
5 changes: 0 additions & 5 deletions .stylelintrc

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/meow-npm-9.0.0-8b2707248e-3d0f199b9c.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit e51d2f8

Please sign in to comment.