-
Notifications
You must be signed in to change notification settings - Fork 0
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
build(deps): bump eslint-config-prettier from 9.0.0 to 9.1.0 #1277
Merged
github-actions
merged 1 commit into
main
from
dependabot/npm_and_yarn/eslint-config-prettier-9.1.0
Dec 18, 2023
Merged
build(deps): bump eslint-config-prettier from 9.0.0 to 9.1.0 #1277
github-actions
merged 1 commit into
main
from
dependabot/npm_and_yarn/eslint-config-prettier-9.1.0
Dec 18, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 9.0.0 to 9.1.0. - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md) - [Commits](prettier/eslint-config-prettier@v9.0.0...v9.1.0) --- updated-dependencies: - dependency-name: eslint-config-prettier dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Diff between eslint-config-prettier 9.0.0 and 9.1.0diff --git a/bin/cli.js b/bin/cli.js
index v9.0.0..v9.1.0 100755
--- a/bin/cli.js
+++ b/bin/cli.js
@@ -10,7 +10,9 @@
// with no local eslint-config-prettier installation.
const localRequire = (request) =>
- require(require.resolve(request, {
- paths: [process.cwd(), ...require.resolve.paths("eslint")],
- }));
+ require(
+ require.resolve(request, {
+ paths: [process.cwd(), ...require.resolve.paths("eslint")],
+ })
+ );
let experimentalApi = {};
diff --git a/index.js b/index.js
index v9.0.0..v9.1.0 100644
--- a/index.js
+++ b/index.js
@@ -3,82 +3,22 @@
const includeDeprecated = !process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED;
+const specialRule = 0;
+
module.exports = {
rules: {
// The following rules can be used in some cases. See the README for more
- // information. (These are marked with `0` instead of `"off"` so that a
- // script can distinguish them.)
- "curly": 0,
- "lines-around-comment": 0,
- "max-len": 0,
- "no-confusing-arrow": 0,
- "no-mixed-operators": 0,
- "no-tabs": 0,
- "no-unexpected-multiline": 0,
- "quotes": 0,
- "@typescript-eslint/lines-around-comment": 0,
- "@typescript-eslint/quotes": 0,
- "babel/quotes": 0,
- "vue/html-self-closing": 0,
- "vue/max-len": 0,
+ // information. These are marked with `0` instead of `"off"` so that a
+ // script can distinguish them. Note that there are a few more of these
+ // in the deprecated section below.
+ "curly": specialRule,
+ "no-unexpected-multiline": specialRule,
+ "@typescript-eslint/lines-around-comment": specialRule,
+ "@typescript-eslint/quotes": specialRule,
+ "babel/quotes": specialRule,
+ "unicorn/template-indent": specialRule,
+ "vue/html-self-closing": specialRule,
+ "vue/max-len": specialRule,
// The rest are rules that you never need to enable when using Prettier.
- "array-bracket-newline": "off",
- "array-bracket-spacing": "off",
- "array-element-newline": "off",
- "arrow-parens": "off",
- "arrow-spacing": "off",
- "block-spacing": "off",
- "brace-style": "off",
- "comma-dangle": "off",
- "comma-spacing": "off",
- "comma-style": "off",
- "computed-property-spacing": "off",
- "dot-location": "off",
- "eol-last": "off",
- "func-call-spacing": "off",
- "function-call-argument-newline": "off",
- "function-paren-newline": "off",
- "generator-star-spacing": "off",
- "implicit-arrow-linebreak": "off",
- "indent": "off",
- "jsx-quotes": "off",
- "key-spacing": "off",
- "keyword-spacing": "off",
- "linebreak-style": "off",
- "max-statements-per-line": "off",
- "multiline-ternary": "off",
- "newline-per-chained-call": "off",
- "new-parens": "off",
- "no-extra-parens": "off",
- "no-extra-semi": "off",
- "no-floating-decimal": "off",
- "no-mixed-spaces-and-tabs": "off",
- "no-multi-spaces": "off",
- "no-multiple-empty-lines": "off",
- "no-trailing-spaces": "off",
- "no-whitespace-before-property": "off",
- "nonblock-statement-body-position": "off",
- "object-curly-newline": "off",
- "object-curly-spacing": "off",
- "object-property-newline": "off",
- "one-var-declaration-per-line": "off",
- "operator-linebreak": "off",
- "padded-blocks": "off",
- "quote-props": "off",
- "rest-spread-spacing": "off",
- "semi": "off",
- "semi-spacing": "off",
- "semi-style": "off",
- "space-before-blocks": "off",
- "space-before-function-paren": "off",
- "space-in-parens": "off",
- "space-infix-ops": "off",
- "space-unary-ops": "off",
- "switch-colon-spacing": "off",
- "template-curly-spacing": "off",
- "template-tag-spacing": "off",
- "wrap-iife": "off",
- "wrap-regex": "off",
- "yield-star-spacing": "off",
"@babel/object-curly-spacing": "off",
"@babel/semi": "off",
@@ -173,49 +113,101 @@
...(includeDeprecated && {
+ // Removed in version 0.10.0.
+ // https://eslint.org/docs/latest/rules/space-unary-word-ops
+ "space-unary-word-ops": "off",
+
// Removed in version 1.0.0.
- // https://eslint.org/docs/latest/rules/generator-star
+ // https://github.com/eslint/eslint/issues/1898
"generator-star": "off",
- // Deprecated since version 4.0.0.
- // https://github.com/eslint/eslint/pull/8286
- "indent-legacy": "off",
- // Removed in version 2.0.0.
- // https://eslint.org/docs/latest/rules/no-arrow-condition
- "no-arrow-condition": "off",
- // Removed in version 1.0.0.
- // https://eslint.org/docs/latest/rules/no-comma-dangle
"no-comma-dangle": "off",
- // Removed in version 1.0.0.
- // https://eslint.org/docs/latest/rules/no-reserved-keys
"no-reserved-keys": "off",
- // Removed in version 1.0.0.
- // https://eslint.org/docs/latest/rules/no-space-before-semi
"no-space-before-semi": "off",
- // Deprecated since version 3.3.0.
- // https://eslint.org/docs/rules/no-spaced-func
- "no-spaced-func": "off",
- // Removed in version 1.0.0.
- // https://eslint.org/docs/latest/rules/no-wrap-func
"no-wrap-func": "off",
- // Removed in version 1.0.0.
- // https://eslint.org/docs/latest/rules/space-after-function-name
"space-after-function-name": "off",
+ "space-before-function-parentheses": "off",
+ "space-in-brackets": "off",
+
// Removed in version 2.0.0.
- // https://eslint.org/docs/latest/rules/space-after-keywords
+ // https://github.com/eslint/eslint/issues/5032
+ "no-arrow-condition": "off",
"space-after-keywords": "off",
- // Removed in version 1.0.0.
- // https://eslint.org/docs/latest/rules/space-before-function-parentheses
- "space-before-function-parentheses": "off",
- // Removed in version 2.0.0.
- // https://eslint.org/docs/latest/rules/space-before-keywords
"space-before-keywords": "off",
- // Removed in version 1.0.0.
- // https://eslint.org/docs/latest/rules/space-in-brackets
- "space-in-brackets": "off",
- // Removed in version 2.0.0.
- // https://eslint.org/docs/latest/rules/space-return-throw-case
"space-return-throw-case": "off",
- // Removed in version 0.10.0.
- // https://eslint.org/docs/latest/rules/space-unary-word-ops
- "space-unary-word-ops": "off",
+
+ // Deprecated since version 3.3.0.
+ // https://eslint.org/docs/rules/no-spaced-func
+ "no-spaced-func": "off",
+
+ // Deprecated since version 4.0.0.
+ // https://github.com/eslint/eslint/pull/8286
+ "indent-legacy": "off",
+
+ // Deprecated since version 8.53.0.
+ // https://eslint.org/blog/2023/10/deprecating-formatting-rules/
+ "array-bracket-newline": "off",
+ "array-bracket-spacing": "off",
+ "array-element-newline": "off",
+ "arrow-parens": "off",
+ "arrow-spacing": "off",
+ "block-spacing": "off",
+ "brace-style": "off",
+ "comma-dangle": "off",
+ "comma-spacing": "off",
+ "comma-style": "off",
+ "computed-property-spacing": "off",
+ "dot-location": "off",
+ "eol-last": "off",
+ "func-call-spacing": "off",
+ "function-call-argument-newline": "off",
+ "function-paren-newline": "off",
+ "generator-star-spacing": "off",
+ "implicit-arrow-linebreak": "off",
+ "indent": "off",
+ "jsx-quotes": "off",
+ "key-spacing": "off",
+ "keyword-spacing": "off",
+ "linebreak-style": "off",
+ "lines-around-comment": specialRule,
+ "max-len": specialRule,
+ "max-statements-per-line": "off",
+ "multiline-ternary": "off",
+ "new-parens": "off",
+ "newline-per-chained-call": "off",
+ "no-confusing-arrow": specialRule,
+ "no-extra-parens": "off",
+ "no-extra-semi": "off",
+ "no-floating-decimal": "off",
+ "no-mixed-operators": specialRule,
+ "no-mixed-spaces-and-tabs": "off",
+ "no-multi-spaces": "off",
+ "no-multiple-empty-lines": "off",
+ "no-tabs": specialRule,
+ "no-trailing-spaces": "off",
+ "no-whitespace-before-property": "off",
+ "nonblock-statement-body-position": "off",
+ "object-curly-newline": "off",
+ "object-curly-spacing": "off",
+ "object-property-newline": "off",
+ "one-var-declaration-per-line": "off",
+ "operator-linebreak": "off",
+ "padded-blocks": "off",
+ "quote-props": "off",
+ "quotes": specialRule,
+ "rest-spread-spacing": "off",
+ "semi": "off",
+ "semi-spacing": "off",
+ "semi-style": "off",
+ "space-before-blocks": "off",
+ "space-before-function-paren": "off",
+ "space-in-parens": "off",
+ "space-infix-ops": "off",
+ "space-unary-ops": "off",
+ "switch-colon-spacing": "off",
+ "template-curly-spacing": "off",
+ "template-tag-spacing": "off",
+ "wrap-iife": "off",
+ "wrap-regex": "off",
+ "yield-star-spacing": "off",
+
// Deprecated since version 7.0.0.
// https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#700---2017-05-06
diff --git a/bin/validators.js b/bin/validators.js
index v9.0.0..v9.1.0 100644
--- a/bin/validators.js
+++ b/bin/validators.js
@@ -49,4 +49,27 @@
},
+ "unicorn/template-indent"({ options }) {
+ if (options.length === 0) {
+ return false;
+ }
+
+ const { comments = [], tags = [] } = options[0] || {};
+
+ return (
+ Array.isArray(comments) &&
+ Array.isArray(tags) &&
+ !(
+ comments.includes("GraphQL") ||
+ comments.includes("HTML") ||
+ tags.includes("css") ||
+ tags.includes("graphql") ||
+ tags.includes("gql") ||
+ tags.includes("html") ||
+ tags.includes("markdown") ||
+ tags.includes("md")
+ )
+ );
+ },
+
"vue/html-self-closing"({ options }) {
if (options.length === 0) {
diff --git a/package.json b/package.json
index v9.0.0..v9.1.0 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
"name": "eslint-config-prettier",
- "version": "9.0.0",
+ "version": "9.1.0",
"license": "MIT",
"author": "Simon Lydell",
Command detailsnpm diff --diff=eslint-config-prettier@9.0.0 --diff=eslint-config-prettier@9.1.0 --diff-unified=2 See also the Reported by ybiquitous/npm-diff-action@v1.5.0 (Node.js 20.10.0 and npm 10.2.5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dependencies
Pull requests that update a dependency file
javascript
Pull requests that update Javascript code
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps eslint-config-prettier from 9.0.0 to 9.1.0.
Changelog
Sourced from eslint-config-prettier's changelog.
Commits
40c7f3d
eslint-config-prettier v9.1.04110dff
Merge pull request #271 from prettier/deprecated6d0bd92
Update tests to handle newly deprecated rules4c876b9
Move rules deprecated in ESLint 8.53.0 to the deprecated section24445c0
Use specialRule constant7827196
Group deprecated and removed rules by version48f804c
Roll back to ESLint 8.52.0 for now16f03b8
Update Prettierb06d618
Update npm packages25fc427
turn offunicorn/template-indent
(#269)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)