Skip to content

Commit

Permalink
chore(deps-dev): bump eslint-config-standard-with-typescript from 35.…
Browse files Browse the repository at this point in the history
…0.0 to 36.0.0 (CycloneDX#1003)

* chore(deps-dev): bump eslint-config-standard-with-typescript

Bumps [eslint-config-standard-with-typescript](https://github.com/standard/eslint-config-standard-with-typescript) from 35.0.0 to 36.0.0.
- [Release notes](https://github.com/standard/eslint-config-standard-with-typescript/releases)
- [Changelog](https://github.com/standard/eslint-config-standard-with-typescript/blob/master/CHANGELOG.md)
- [Commits](mightyiam/eslint-config-love@v35.0.0...v36.0.0)

---
updated-dependencies:
- dependency-name: eslint-config-standard-with-typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* style: use standarfs for js

Signed-off-by: Jan Kowalleck <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jan Kowalleck <[email protected]>
  • Loading branch information
dependabot[bot] and jkowalleck authored Jul 5, 2023
1 parent dd307e3 commit 17ef860
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 35 deletions.
49 changes: 29 additions & 20 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
*/
module.exports = {
root: true,
/** @see https://github.com/standard/ts-standard */
extends: 'standard-with-typescript',
parserOptions: {
project: './tsconfig.json'
},
plugins: [
/* see https://github.com/lydell/eslint-plugin-simple-import-sort#readme */
'simple-import-sort',
Expand All @@ -38,30 +33,44 @@ module.exports = {
commonjs: true,
node: true
},
overrides: [
{
files: [
'*.spec.*',
'*.test.*'
],
env: {
jest: true,
commonjs: true,
node: true
}
}
],
rules: {
// region sort imports/exports
/** disable other sorters in favour of `simple-import-sort` **/
'import/order': 0,
'sort-imports': 0,
/** @see https://github.com/lydell/eslint-plugin-simple-import-sort/ */
/* @see https://github.com/lydell/eslint-plugin-simple-import-sort/ */
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
// endregion sort imports/exports
/* see https://github.com/Stuk/eslint-plugin-header#readme */
'header/header': ['error', '.license-header.js']
// endregion license-header
}
},
overrides: [
{
files: ['*.spec.*', '*.test.*'],
env: {
jest: true,
commonjs: true,
node: true
}
},
{
files: ['*.ts'],
extends: [
/* @see https://github.com/standard/ts-standard */
'standard-with-typescript'
],
parserOptions: {
project: './tsconfig.json'
}
},
{
files: ['*.js', '*.mjs', '*.cjs'],
extends: [
/* see https://www.npmjs.com/package/eslint-config-standard */
'standard'
]
}
]
}
67 changes: 53 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"@types/node": "ts5.1",
"@types/normalize-package-data": "^2.4.1",
"eslint": "^8.23.0",
"eslint-config-standard-with-typescript": "^35.0.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-standard-with-typescript": "^36.0.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"jest": "^29.5.0",
Expand Down

0 comments on commit 17ef860

Please sign in to comment.