-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 5308--sidepanel-ai-docs
- Loading branch information
Showing
14 changed files
with
455 additions
and
312 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,25 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'header-max-length': [2, 'always', 72], | ||
'body-max-line-length': [2, 'always', 80], | ||
'scope-case': [0, 'always', 'lower-case'], | ||
'type-enum': [ | ||
2, | ||
'always', | ||
[ | ||
'build', | ||
'ci', | ||
'chore', | ||
'docs', | ||
'feat', | ||
'fix', | ||
'perf', | ||
'refactor', | ||
'revert', | ||
'style', | ||
'test', | ||
], | ||
], | ||
}, | ||
}; |
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,60 @@ | ||
module.exports = { | ||
parser: '@babel/eslint-parser', | ||
parserOptions: { | ||
babelOptions: { | ||
presets: ['@babel/preset-react'], | ||
}, | ||
}, | ||
plugins: ['ssr-friendly'], | ||
ignorePatterns: ['packages/ibm-products-web-components/**/*'], | ||
extends: ['carbon', 'plugin:ssr-friendly/recommended'], | ||
rules: { | ||
'react/display-name': [0], | ||
'react/forbid-component-props': [ | ||
2, | ||
{ | ||
forbid: [ | ||
{ | ||
propName: 'style', | ||
disallowedFor: ['Datagrid', 'Carousel', 'Checklist', 'Coachmark'], | ||
message: 'Avoid using style prop', | ||
}, | ||
], | ||
}, | ||
], | ||
'react/forbid-dom-props': [ | ||
2, | ||
{ | ||
forbid: [ | ||
{ | ||
propName: 'style', | ||
disallowedFor: ['Datagrid', 'Carousel', 'Checklist', 'Coachmark'], | ||
message: 'Avoid using style prop', | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
plugins: ['@typescript-eslint'], | ||
extends: ['plugin:@typescript-eslint/recommended'], | ||
parser: '@typescript-eslint/parser', | ||
rules: { | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'error', | ||
{ | ||
args: 'after-used', | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
}, | ||
], | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
}, | ||
}, | ||
], | ||
}; |
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,11 @@ | ||
module.exports = { | ||
root: true, | ||
extends: ['stylelint-config-ibm-products'], | ||
extends: ['stylelint-config-carbon'], | ||
rules: { | ||
'import-notation': 'string', | ||
'max-nesting-depth': null, | ||
'scss/no-global-function-names': null, | ||
'csstools/use-logical': null, | ||
'scss/load-no-partial-leading-underscore': null, | ||
'scss/double-slash-comment-inline': null, | ||
'no-duplicate-selectors': null, | ||
}, | ||
}; |
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 |
---|---|---|
|
@@ -117,139 +117,14 @@ | |
"//resolutions:http-signature": "package 'request' deprecated but still used, asks for http-signature ~1.2.0 which indirectly has vulnerabilities", | ||
"//resolutions:minimist": "https://security.snyk.io/vuln/SNYK-JS-MINIMIST-2429795 (version <=1.2.5)", | ||
"resolutions": { | ||
"cheerio": "1.0.0-rc.10", | ||
"body-parser": "1.20.3", | ||
"braces": "^3.0.3", | ||
"cheerio": "1.0.0-rc.10", | ||
"cross-spawn": "7.0.6", | ||
"micromatch": "4.0.8", | ||
"ws": "^8.17.1", | ||
"@carbon/ibm-products-styles": "^2.49.0" | ||
}, | ||
"eslintConfig": { | ||
"parser": "@babel/eslint-parser", | ||
"parserOptions": { | ||
"babelOptions": { | ||
"presets": [ | ||
"@babel/preset-react" | ||
] | ||
} | ||
}, | ||
"plugins": [ | ||
"ssr-friendly" | ||
], | ||
"ignorePatterns": [ | ||
"packages/ibm-products-web-components/**/*" | ||
], | ||
"extends": [ | ||
"carbon", | ||
"plugin:ssr-friendly/recommended" | ||
], | ||
"rules": { | ||
"react/display-name": [ | ||
0 | ||
], | ||
"react/forbid-component-props": [ | ||
2, | ||
{ | ||
"forbid": [ | ||
{ | ||
"propName": "style", | ||
"disallowedFor": [ | ||
"Datagrid", | ||
"Carousel", | ||
"Checklist", | ||
"Coachmark" | ||
], | ||
"message": "Avoid using style prop" | ||
} | ||
] | ||
} | ||
], | ||
"react/forbid-dom-props": [ | ||
2, | ||
{ | ||
"forbid": [ | ||
{ | ||
"propName": "style", | ||
"disallowedFor": [ | ||
"Datagrid", | ||
"Carousel", | ||
"Checklist", | ||
"Coachmark" | ||
], | ||
"message": "Avoid using style prop" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.ts", | ||
"*.tsx" | ||
], | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"rules": { | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
"args": "after-used", | ||
"argsIgnorePattern": "^_", | ||
"varsIgnorePattern": "^_" | ||
} | ||
], | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/ban-ts-comment": "off" | ||
} | ||
} | ||
] | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
], | ||
"rules": { | ||
"header-max-length": [ | ||
2, | ||
"always", | ||
72 | ||
], | ||
"body-max-line-length": [ | ||
2, | ||
"always", | ||
80 | ||
], | ||
"scope-case": [ | ||
0, | ||
"always", | ||
"lower-case" | ||
], | ||
"type-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"build", | ||
"ci", | ||
"chore", | ||
"docs", | ||
"feat", | ||
"fix", | ||
"perf", | ||
"refactor", | ||
"revert", | ||
"style", | ||
"test" | ||
] | ||
] | ||
} | ||
}, | ||
"lint-staged": { | ||
"!(examples/**/*)**/*.{js,jsx,ts,tsx}": [ | ||
"npx prettier --cache --write", | ||
|
@@ -270,18 +145,5 @@ | |
"dependencies": { | ||
"stylelint-plugin-carbon-tokens": "2.8.0" | ||
}, | ||
"stylelint": { | ||
"extends": [ | ||
"stylelint-config-carbon" | ||
], | ||
"rules": { | ||
"max-nesting-depth": null, | ||
"scss/no-global-function-names": null, | ||
"csstools/use-logical": null, | ||
"scss/load-no-partial-leading-underscore": null, | ||
"scss/double-slash-comment-inline": null, | ||
"no-duplicate-selectors": null | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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
Oops, something went wrong.