-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add eslint-plugin-no-attribute-string-literals (#5086)
* chore: add eslint-plugin-no-attribute-string-literals * chore: update workshop eslint configs for i18n adds "no-attribute-string-literals/no-attribute-string-literals": "off"
- Loading branch information
1 parent
56e8030
commit 60a8a4d
Showing
31 changed files
with
358 additions
and
238 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/changeIndicators/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/components/collapseMenu/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/components/commandList/__tests__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/components/commandList/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/components/image/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/components/previewCard/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/components/previews/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/components/rovingFocus/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/components/textWithTone/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/components/userAvatar/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/form/components/formField/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/form/inputs/PortableText/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/form/inputs/PortableText/_legacyDefaultParts/__tests__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/form/inputs/files/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/store/_legacy/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
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
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
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/studio/components/navbar/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/core/studio/components/navbar/search/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
packages/sanity/src/desk/components/pane/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"rules": { | ||
"no-nested-ternary": "off", | ||
"i18next/no-literal-string": "off" | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/desk/panes/document/statusBar/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
7 changes: 4 additions & 3 deletions
7
packages/sanity/src/desk/panes/document/timeline/__workshop__/.eslintrc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"i18next/no-literal-string": "off" | ||
} | ||
"rules": { | ||
"i18next/no-literal-string": "off", | ||
"no-attribute-string-literals/no-attribute-string-literals": "off" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5145,7 +5145,7 @@ array-unique@^0.3.2: | |
resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" | ||
integrity sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ== | ||
|
||
array.prototype.findlastindex@^1.2.3: | ||
array.prototype.findlastindex@^1.2.2, array.prototype.findlastindex@^1.2.3: | ||
version "1.2.3" | ||
resolved "https://registry.yarnpkg.com/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz#b37598438f97b579166940814e2c0493a4f50207" | ||
integrity sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA== | ||
|
@@ -5156,7 +5156,7 @@ array.prototype.findlastindex@^1.2.3: | |
es-shim-unscopables "^1.0.0" | ||
get-intrinsic "^1.2.1" | ||
|
||
array.prototype.flat@^1.3.2: | ||
array.prototype.flat@^1.3.1, array.prototype.flat@^1.3.2: | ||
version "1.3.2" | ||
resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz#1476217df8cff17d72ee8f3ba06738db5b387d18" | ||
integrity sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA== | ||
|
@@ -7481,7 +7481,7 @@ eslint-config-sanity@^7.0.1: | |
resolved "https://registry.yarnpkg.com/eslint-config-sanity/-/eslint-config-sanity-7.0.1.tgz#591c75ce1d72ca53314b0460f8559b046354cb25" | ||
integrity sha512-hYHen7UnWrn3ldvhG0wNH/6kt+lD5O2VN5zR+KbQgCdsy/eWG2GWe9bw+rwOa+ihegy+2As6T7dtiW1m4AiXQA== | ||
|
||
[email protected], eslint-import-resolver-node@^0.3.6, eslint-import-resolver-node@^0.3.9: | ||
[email protected], eslint-import-resolver-node@^0.3.6, eslint-import-resolver-node@^0.3.7, eslint-import-resolver-node@^0.3.9: | ||
version "0.3.9" | ||
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz#d4eaac52b8a2e7c3cd1903eb00f7e053356118ac" | ||
integrity sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g== | ||
|
@@ -7597,6 +7597,11 @@ eslint-plugin-jsx-a11y@^6.7.1: | |
object.fromentries "^2.0.6" | ||
semver "^6.3.0" | ||
|
||
eslint-plugin-no-attribute-string-literals@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-no-attribute-string-literals/-/eslint-plugin-no-attribute-string-literals-1.0.0.tgz#8b09178922fa20047d1b23166f4e3839acc649f1" | ||
integrity sha512-agpa3mK8H3e/nvlGzgIPc8kz6/lQIK9M1CiEQO5H3Rj3ujyhl39016oGz1wJjB4EKf2KoKowcfbUoWWh0G70Cw== | ||
|
||
eslint-plugin-prettier@^5.0.1: | ||
version "5.0.1" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.1.tgz#a3b399f04378f79f066379f544e42d6b73f11515" | ||
|
@@ -12171,7 +12176,7 @@ object.getownpropertydescriptors@^2.0.3: | |
es-abstract "^1.22.1" | ||
safe-array-concat "^1.0.0" | ||
|
||
object.groupby@^1.0.1: | ||
object.groupby@^1.0.0, object.groupby@^1.0.1: | ||
version "1.0.1" | ||
resolved "https://registry.yarnpkg.com/object.groupby/-/object.groupby-1.0.1.tgz#d41d9f3c8d6c778d9cbac86b4ee9f5af103152ee" | ||
integrity sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ== | ||
|