Skip to content

Commit

Permalink
Add missing turbo config, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
GeKorm committed Nov 29, 2024
1 parent 62b4d42 commit b64004d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-hounds-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@repo/eslint-config': patch
---

Add missing turbo config, fix typo, ignore CHANGELOG
4 changes: 3 additions & 1 deletion packages/eslint-config/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -47,6 +48,7 @@ export default tseslint.config(
{
ignores: ignorePatterns
},
{ ...turboConfig[0], files: codeFiles },
{
plugins: {
'simple-import-sort': simpleImportSort
Expand Down Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/eslint-config/src/ignorePatterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const ignorePatterns = [
'out/',
'build',
'dist/',
'**/CHANGELOG.md',
'packages/', // Prevent linting from workspace roots
'.turbo',
'.vercel',
Expand Down
22 changes: 19 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
Expand All @@ -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

Expand All @@ -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:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b64004d

Please sign in to comment.