diff --git a/.changeset/dry-hounds-juggle.md b/.changeset/dry-hounds-juggle.md new file mode 100644 index 0000000..d40524f --- /dev/null +++ b/.changeset/dry-hounds-juggle.md @@ -0,0 +1,5 @@ +--- +'@repo/eslint-config': patch +--- + +Add missing turbo config, fix typo, ignore CHANGELOG diff --git a/packages/eslint-config/eslint.config.js b/packages/eslint-config/eslint.config.js index bf26986..f998dff 100644 --- a/packages/eslint-config/eslint.config.js +++ b/packages/eslint-config/eslint.config.js @@ -14,6 +14,7 @@ import airbnbStrict from 'eslint-config-airbnb-base/rules/strict'; import airbnbStyle from 'eslint-config-airbnb-base/rules/style'; import airbnbVariables from 'eslint-config-airbnb-base/rules/variables'; import eslintConfigPrettier from 'eslint-config-prettier'; +import turboConfig from 'eslint-config-turbo/flat'; import importPlugin from 'eslint-plugin-import'; import jsdoc from 'eslint-plugin-jsdoc'; import node from 'eslint-plugin-n'; @@ -47,6 +48,7 @@ export default tseslint.config( { ignores: ignorePatterns }, + { ...turboConfig[0], files: codeFiles }, { plugins: { 'simple-import-sort': simpleImportSort @@ -179,7 +181,7 @@ export default tseslint.config( 'import/prefer-default-export': 0, 'lines-between-class-members': [2, 'always', { exceptAfterSingleLine: true }], 'n/no-extraneous-import': 0, // covered by other rules - 'n/ no-extraneous-require': 0, // covered by other rules + 'n/no-extraneous-require': 0, // covered by other rules 'n/no-missing-import': 0, // covered by other rules 'n/no-unpublished-import': [ 'error', diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index e25fe80..d3223aa 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -34,6 +34,7 @@ "@vitest/eslint-plugin": "^1.1.12", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^9.1.0", + "eslint-config-turbo": "^2.3.3", "eslint-import-resolver-node": "^0.3.9", "eslint-import-resolver-typescript": "^3.6.3", "eslint-plugin-import": "^2.31.0", diff --git a/packages/eslint-config/src/ignorePatterns.js b/packages/eslint-config/src/ignorePatterns.js index b2873f0..b17c63b 100644 --- a/packages/eslint-config/src/ignorePatterns.js +++ b/packages/eslint-config/src/ignorePatterns.js @@ -9,6 +9,7 @@ const ignorePatterns = [ 'out/', 'build', 'dist/', + '**/CHANGELOG.md', 'packages/', // Prevent linting from workspace roots '.turbo', '.vercel', diff --git a/yarn.lock b/yarn.lock index 136a1b4..fc5070b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1245,7 +1245,7 @@ __metadata: languageName: node linkType: hard -"@repo/eslint-config@npm:*, @repo/eslint-config@workspace:*, @repo/eslint-config@workspace:^, @repo/eslint-config@workspace:packages/eslint-config": +"@repo/eslint-config@npm:*, @repo/eslint-config@workspace:*, @repo/eslint-config@workspace:packages/eslint-config": version: 0.0.0-use.local resolution: "@repo/eslint-config@workspace:packages/eslint-config" dependencies: @@ -1260,6 +1260,7 @@ __metadata: eslint: "npm:^9.15.0" eslint-config-airbnb-base: "npm:^15.0.0" eslint-config-prettier: "npm:^9.1.0" + eslint-config-turbo: "npm:^2.3.3" eslint-import-resolver-node: "npm:^0.3.9" eslint-import-resolver-typescript: "npm:^3.6.3" eslint-plugin-import: "npm:^2.31.0" @@ -1277,6 +1278,10 @@ __metadata: typescript-eslint: "npm:^8.16.0" peerDependencies: eslint: 9.15.0 + typescript: ^5.6.0 + peerDependenciesMeta: + typescript: + optional: true languageName: unknown linkType: soft @@ -1299,7 +1304,7 @@ __metadata: version: 0.0.0-use.local resolution: "@repo/tsconfig@workspace:packages/tsconfig" dependencies: - "@repo/eslint-config": "workspace:^" + "@repo/eslint-config": "workspace:*" eslint: "npm:^9.15.0" typescript: "npm:^5.7.2" peerDependencies: @@ -2977,6 +2982,17 @@ __metadata: languageName: node linkType: hard +"eslint-config-turbo@npm:^2.3.3": + version: 2.3.3 + resolution: "eslint-config-turbo@npm:2.3.3" + dependencies: + eslint-plugin-turbo: "npm:2.3.3" + peerDependencies: + eslint: ">6.6.0" + checksum: 10c0/35f0e07e96eebaf7b65cfbaec28225004d78cab96e70d488d24c50219f9ddcbb2f57854c06818aaf4743501ee7c67723cf9e464a2ff177bd6aa72f4db9938349 + languageName: node + linkType: hard + "eslint-import-resolver-node@npm:^0.3.9": version: 0.3.9 resolution: "eslint-import-resolver-node@npm:0.3.9" @@ -3163,7 +3179,7 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-turbo@npm:^2.3.3": +"eslint-plugin-turbo@npm:2.3.3, eslint-plugin-turbo@npm:^2.3.3": version: 2.3.3 resolution: "eslint-plugin-turbo@npm:2.3.3" dependencies: