Skip to content

Commit

Permalink
Merge pull request #765 from dxw/renovate/major-eslint-monorepo
Browse files Browse the repository at this point in the history
Update dependency eslint to v9
  • Loading branch information
renovate[bot] authored Sep 27, 2024
2 parents 6e0b229 + 2402fa7 commit 858a5bf
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 94 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ RUN \
shellcheck \
yarn

COPY .eslintignore ${APP_HOME}/.eslintignore
COPY eslint.config.mjs ${APP_HOME}/eslint.config.mjs
COPY .eslintrc.json ${APP_HOME}/.eslintrc.json
COPY .prettierignore ${APP_HOME}/.prettierignore
COPY .prettierrc ${APP_HOME}/.prettierrc
Expand Down
23 changes: 23 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["log/", "tmp/", "vendor/", "public/assets", "coverage"],
}, ...compat.extends("eslint:recommended", "prettier"), {
languageOptions: {
globals: {
...globals.browser,
},
},
}];
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
},
"dependencies": {},
"devDependencies": {
"eslint": "^8.18.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.11.1",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.0.0",
"globals": "^15.9.0",
"prettier": "^3.0.0",
"stylelint": "^15.0.0",
"stylelint-config-prettier": "^9.0.3",
Expand Down
Loading

0 comments on commit 858a5bf

Please sign in to comment.