-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump eslint from 8.57.0 to 9.10.0 (#12833)
* Bump eslint from 8.57.0 to 9.10.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.57.0 to 9.10.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.57.0...v9.10.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Removed .eslintignore as it's no longer supported and we don't need it anyway * [WIP] jsx files keep getting ignored by eslint :( * fix * fix linting issues * Merged eslint.config.a11y.js with eslint.config.js --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mavis Ou <[email protected]>
- Loading branch information
1 parent
98f19de
commit 413a359
Showing
8 changed files
with
311 additions
and
279 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
var config = { | ||
"plugins": ["stylelint-prettier"], | ||
"rules": { | ||
"color-named": "never", | ||
"color-no-hex": true, | ||
"declaration-property-value-disallowed-list": [ | ||
{ | ||
"/.*/": [ | ||
/rgba{0,1}\(/i, | ||
/hsla{0,1}\(/i, | ||
/hwb\(/i, | ||
/gray\(/i | ||
] | ||
}, | ||
{ | ||
"message": "Custom colors are not allowed. Please use brand colors listed in _colors.scss." | ||
} | ||
] | ||
} | ||
}; | ||
var config = { | ||
plugins: ["stylelint-prettier"], | ||
rules: { | ||
"color-named": "never", | ||
"color-no-hex": true, | ||
"declaration-property-value-disallowed-list": [ | ||
{ | ||
"/.*/": [/rgba{0,1}\(/i, /hsla{0,1}\(/i, /hwb\(/i, /gray\(/i], | ||
}, | ||
{ | ||
message: | ||
"Custom colors are not allowed. Please use brand colors listed in _colors.scss.", | ||
}, | ||
], | ||
}, | ||
}; | ||
|
||
module.exports = config; | ||
module.exports = config; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
const eslintPluginPrettier = require("eslint-plugin-prettier"); | ||
const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended"); | ||
const eslintPluginReact = require("eslint-plugin-react"); | ||
const jsxA11y = require("eslint-plugin-jsx-a11y"); | ||
|
||
module.exports = [ | ||
{ | ||
files: ["**/*.js", "**/*.jsx"], | ||
plugins: { | ||
prettier: eslintPluginPrettier, | ||
react: eslintPluginReact, | ||
"jsx-a11y": jsxA11y, | ||
}, | ||
languageOptions: { | ||
globals: { | ||
es6: "writable", | ||
}, | ||
parserOptions: { | ||
sourceType: "module", | ||
ecmaVersion: 2020, | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
trailingComma: "es5", | ||
endOfLine: "auto", | ||
}, | ||
], | ||
"react/jsx-uses-vars": "error", | ||
}, | ||
}, | ||
eslintPluginPrettierRecommended, | ||
]; |
Oops, something went wrong.