Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JoshuaKGoldberg merged 2 commits intomainfromrenovate/prettier-3.x
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes fromall 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 deletionsdocs/linting/Troubleshooting.mdx
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionsdocs/linting/typed-linting/Monorepos.mdx
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionsdocs/packages/Parser.mdx
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionpackage.json
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionspackages/ast-spec/tsconfig.json
View file
Open in desktop
Original file line numberDiff line numberDiff 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" }],
}
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionspackages/eslint-plugin-internal/tsconfig.json
View file
Open in desktop
Original file line numberDiff line numberDiff 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" }],
}
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,6 +4,6 @@
"module": "commonjs",
"strict": true,
"noUnusedLocals": true,
"noImplicitAny": true
}
"noImplicitAny": true,
},
}
4 changes: 2 additions & 2 deletionspackages/eslint-plugin-tslint/tsconfig.json
View file
Open in desktop
Original file line numberDiff line numberDiff 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 deletionspackages/eslint-plugin/docs/rules/ban-types.md
View file
Open in desktop
Original file line numberDiff line numberDiff 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
View file
Open in desktop
Original file line numberDiff line numberDiff 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
View file
Open in desktop
Original file line numberDiff line numberDiff 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
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp