Skip to content

Commit

Permalink
Bump eslint from 8.57.0 to 9.10.0 (#12833)
Browse files Browse the repository at this point in the history
* 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
dependabot[bot] and mmmavis authored Sep 12, 2024
1 parent 98f19de commit 413a359
Show file tree
Hide file tree
Showing 8 changed files with 311 additions and 279 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintrc.a11y.json

This file was deleted.

23 changes: 0 additions & 23 deletions .eslintrc.json

This file was deleted.

38 changes: 17 additions & 21 deletions .stylelintrc-colors.js
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;
7 changes: 3 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ services:

# Frontend config
- ./source:/app/source
- ./eslint.config.a11y.js:/app/eslint.config.a11y.js
- ./eslint.config.js:/app/eslint.config.js
- ./.editorconfig:/app/.editorconfig
- ./.eslintignore:/app/.eslintignore
- ./.eslintrc.a11y.json:/app/.eslintrc.a11y.json
- ./.eslintrc.json:/app/.eslintrc.json
- ./.prettierignore:/app/.prettierignore
- ./.prettierrc:/app/.prettierrc
- ./.stylelintrc:/app/.stylelintrc
Expand All @@ -81,6 +80,6 @@ services:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- postgres_data:/var/lib/postgresql/data/

volumes:
postgres_data:
38 changes: 38 additions & 0 deletions eslint.config.js
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,
];
Loading

0 comments on commit 413a359

Please sign in to comment.