Skip to content

Commit

Permalink
Merge branch 'next' into feature/naming-convetion-configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Hecht committed Jan 17, 2025
2 parents 4b26fbe + e56ed6f commit 4967dda
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 29 deletions.
29 changes: 10 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,23 @@
# [7.0.0-naming-convetion-configuration.1](https://github.com/Boehringer-Ingelheim/eslint-config/compare/v6.0.1...v7.0.0-naming-convetion-configuration.1) (2025-01-17)


### Bug Fixes
### Features

* **base:** switch some perfectionist references to flatconfig ([a6697cc](https://github.com/Boehringer-Ingelheim/eslint-config/commit/a6697cc2c6c11ff717732abe741d1300c6d3a608))
* **react:** [sort-jsx-props] use regex pattern for custom groups ([720df19](https://github.com/Boehringer-Ingelheim/eslint-config/commit/720df196a0b6f1e0c480f95b7e6c6fa47e82bac0))
* **scripts:** [repair] use exact rimraf version to not use a local and possible incompatible version ([059835d](https://github.com/Boehringer-Ingelheim/eslint-config/commit/059835d26311ea30a6dd5e837eb1a040dcad2b69))
* **shared-configurations:** [nextjs] ignore .next folder per default ([2f51caa](https://github.com/Boehringer-Ingelheim/eslint-config/commit/2f51caaf8b7ead38db9d753586f930ae91a8e3e5))
* **shared-configurations:** [react] remove redefined jsx-a11y plugin ([76e7fc4](https://github.com/Boehringer-Ingelheim/eslint-config/commit/76e7fc4f06caf252cc5bbcdbeb8fb4848c748e93))
* **shared-configurations:** make next.js configuration importable ([c6ca951](https://github.com/Boehringer-Ingelheim/eslint-config/commit/c6ca95150866af2c045a73b706ac3f034f34d7b6))
* **naming-convention:** adds a new shared configuration for enforcing naming conventions ([8f2fdf2](https://github.com/Boehringer-Ingelheim/eslint-config/commit/8f2fdf2afee4aed0a26ab4f3a98d22627daefe5b))

# [7.0.0-next.8](https://github.com/Boehringer-Ingelheim/eslint-config/compare/v7.0.0-next.7...v7.0.0-next.8) (2025-01-17)

### Features

* add basic typing to the index.js ([ce3fbb0](https://github.com/Boehringer-Ingelheim/eslint-config/commit/ce3fbb063150a162085df2f6e110460670612bb1))
* **base:** [typescript-eslint] update parserOptions to use projectService instead of project ([02ac930](https://github.com/Boehringer-Ingelheim/eslint-config/commit/02ac930eca6f1d9da4f2c724c1febebd9f3c2524))
* **deps:** update dependencies ([564b3ba](https://github.com/Boehringer-Ingelheim/eslint-config/commit/564b3ba9aec9ad1dbc80477438abfdfd82f69c6a))
* **deps:** update dependencies ([dfed600](https://github.com/Boehringer-Ingelheim/eslint-config/commit/dfed60091dfc8be82b1290841fbb864eda982762))
* migrates to flat-config ([b22a872](https://github.com/Boehringer-Ingelheim/eslint-config/commit/b22a872a1589516d571c8907e6ec30bb2b529f94))
* **naming-convention:** adds a new shared configuration for enforcing naming conventions ([8f2fdf2](https://github.com/Boehringer-Ingelheim/eslint-config/commit/8f2fdf2afee4aed0a26ab4f3a98d22627daefe5b))
* **shared-configurations:** [nextjs] enhance compatibility with react-refresh ([ba20ebd](https://github.com/Boehringer-Ingelheim/eslint-config/commit/ba20ebdced704db40602aa25d270496c06d18d7d))
* **shared-configurations:** add next.js configuration ([ca94532](https://github.com/Boehringer-Ingelheim/eslint-config/commit/ca9453226d898196c576073adc7af47869b551a4))
### Bug Fixes

* publishes type declarations ([a410e8e](https://github.com/Boehringer-Ingelheim/eslint-config/commit/a410e8eed04e5bde28eb6aa14be19858bb685cc9))

### BREAKING CHANGES
# [7.0.0-next.7](https://github.com/Boehringer-Ingelheim/eslint-config/compare/v7.0.0-next.6...v7.0.0-next.7) (2025-01-17)

* migrate to flat config
* drop support for legacy config

### Bug Fixes

* **base:** turn off import/no-unused-modules for now ([a8f15dc](https://github.com/Boehringer-Ingelheim/eslint-config/commit/a8f15dc3a35fc6e6d774d8e766985772009862f0))

# [7.0.0-next.6](https://github.com/Boehringer-Ingelheim/eslint-config/compare/v7.0.0-next.5...v7.0.0-next.6) (2025-01-15)

Expand Down
15 changes: 7 additions & 8 deletions configs/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,13 @@ module.exports = tseslint.config(

// eslint-plugin-import: https://github.com/import-js/eslint-plugin-import/tree/main/docs/rules
'import/no-cycle': 'error',
'import/no-unused-modules': [
'error',
{
missingExports: true,
src: ['.'],
unusedExports: true,
},
],
/**
* The rule is disabled for now as it is not compatible with flat-configs, without adding an artifical `.eslintrc` file.
*
* @see: https://github.com/import-js/eslint-plugin-import/issues/3079#issuecomment-2557191925
* @todo Enable rule, as soon as fix is available: https://github.com/Boehringer-Ingelheim/eslint-config/blob/9f028ed43bb5db11082a2982f249ddfe7eaf5c13/configs/base.js#L77
*/
'import/no-unused-modules': 'off',
'import/order': 'off', // disabled due to conflict with eslint-plugin-perfectionist
'import/prefer-default-export': 'off',

Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Config } from 'typescript-eslint';

type Configs = 'base' | 'local' | 'playwright' | 'prettier-disable' | 'react' | 'strict';
type Configs = 'base' | 'local' | 'nextjs' | 'playwright' | 'prettierDisable' | 'react' | 'strict';

declare module './index' {
const config: typeof import('typescript-eslint').config;
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
"license": "MIT",
"files": [
"configs",
"lib"
"lib",
"index.js",
"index.d.ts"
],
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"prepare": "husky",
"release": "dotenv -- semantic-release --no-ci",
Expand Down

0 comments on commit 4967dda

Please sign in to comment.