Skip to content

chore(deps): update dependency prettier to v3.2.4 #8357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/linting/Troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -240,22 +240,22 @@ For example, you can ban enums (or some variation of) using one of the following
// ban all enums
{
"selector": "TSEnumDeclaration",
"message": "My reason for not using any enums at all"
"message": "My reason for not using any enums at all",
},

// ban just const enums
{
"selector": "TSEnumDeclaration[const=true]",
"message": "My reason for not using const enums"
"message": "My reason for not using const enums",
},

// ban just non-const enums
{
"selector": "TSEnumDeclaration:not([const=true])",
"message": "My reason for not using non-const enums"
}
]
}
"message": "My reason for not using non-const enums",
},
],
},
}
```

Expand Down
6 changes: 3 additions & 3 deletions docs/linting/typed-linting/Monorepos.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ If its `include` paths cannot include all files to be linted, we suggest creatin
"extends": "./tsconfig.json",
"compilerOptions": {
// ensure that nobody can accidentally use this config for a build
"noEmit": true
"noEmit": true,
},
"include": [
// whatever paths you intend to lint
"src",
"test",
"tools"
]
"tools",
],
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/packages/Parser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ This option allows you to provide a path to your project's `tsconfig.json`. **Th
// etc

// if you have a mixed JS/TS codebase, don't forget to include your JS files
"src/**/*.js"
]
"src/**/*.js",
],
}
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"ncp": "^2.0.0",
"netlify": "^13.1.9",
"nx": "17.2.8",
"prettier": "3.1.0",
"prettier": "3.2.4",
"pretty-format": "^29.6.2",
"raw-loader": "^4.0.2",
"rimraf": "^5.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/ast-spec/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"extends": "./tsconfig.build.json",
"compilerOptions": {
"composite": false,
"rootDir": "."
"rootDir": ".",
},
"include": ["src", "typings", "tests", "tools", "**/fixtures/**/config.ts"],
"exclude": ["**/fixtures/**/fixture.ts", "**/fixtures/**/fixture.tsx"],
"references": [{ "path": "../typescript-estree/tsconfig.build.json" }]
"references": [{ "path": "../typescript-estree/tsconfig.build.json" }],
}
4 changes: 2 additions & 2 deletions packages/eslint-plugin-internal/tests/fixtures/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"strict": true,
"esModuleInterop": true,
"lib": ["es2015", "es2017", "esnext"],
"experimentalDecorators": true
"experimentalDecorators": true,
},
"include": ["file.ts"]
"include": ["file.ts"],
}
4 changes: 2 additions & 2 deletions packages/eslint-plugin-internal/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"compilerOptions": {
"composite": false,
"target": "ES2022",
"rootDir": "."
"rootDir": ".",
},
"include": ["src", "typings", "tests"],
"references": [{ "path": "../utils/tsconfig.build.json" }]
"references": [{ "path": "../utils/tsconfig.build.json" }],
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"module": "commonjs",
"strict": true,
"noUnusedLocals": true,
"noImplicitAny": true
}
"noImplicitAny": true,
},
}
4 changes: 2 additions & 2 deletions packages/eslint-plugin-tslint/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"extends": "./tsconfig.build.json",
"compilerOptions": {
"composite": false,
"rootDir": "."
"rootDir": ".",
},
"include": ["src", "tests"],
"exclude": ["tests/fixtures"],
"references": [{ "path": "../utils/tsconfig.build.json" }]
"references": [{ "path": "../utils/tsconfig.build.json" }],
}
10 changes: 5 additions & 5 deletions packages/eslint-plugin/docs/rules/ban-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ Example configuration:
// add a custom message, AND tell the plugin how to fix it
"OldAPI": {
"message": "Use NewAPI instead",
"fixWith": "NewAPI"
"fixWith": "NewAPI",
},

// un-ban a type that's banned by default
"{}": false
"{}": false,
},
"extendDefaults": true
}
]
"extendDefaults": true,
},
],
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ If you are working on a codebase within which you lint non-TypeScript code (i.e.
{
"rules": {
// disable the rule for all files
"@typescript-eslint/explicit-function-return-type": "off"
"@typescript-eslint/explicit-function-return-type": "off",
},
"overrides": [
{
// enable the rule specifically for TypeScript files
"files": ["*.ts", "*.mts", "*.cts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-function-return-type": "error"
}
}
]
"@typescript-eslint/explicit-function-return-type": "error",
},
},
],
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ If you are working on a codebase within which you lint non-TypeScript code (i.e.
{
"rules": {
// disable the rule for all files
"@typescript-eslint/explicit-member-accessibility": "off"
"@typescript-eslint/explicit-member-accessibility": "off",
},
"overrides": [
{
// enable the rule specifically for TypeScript files
"files": ["*.ts", "*.mts", "*.cts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-member-accessibility": "error"
}
}
]
"@typescript-eslint/explicit-member-accessibility": "error",
},
},
],
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ If you are working on a codebase within which you lint non-TypeScript code (i.e.
{
"rules": {
// disable the rule for all files
"@typescript-eslint/explicit-module-boundary-types": "off"
"@typescript-eslint/explicit-module-boundary-types": "off",
},
"overrides": [
{
// enable the rule specifically for TypeScript files
"files": ["*.ts", "*.mts", "*.cts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "error"
}
}
]
"@typescript-eslint/explicit-module-boundary-types": "error",
},
},
],
}
```

Expand Down
Loading