Skip to content

Commit

Permalink
Merge pull request #1458 from prettier/eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton authored Mar 6, 2025
2 parents ed8a257 + 91d6bd9 commit 56a09fa
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 167 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

21 changes: 21 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import eslintJs from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import globals from "globals";

export default [
eslintJs.configs.recommended,
eslintConfigPrettier,
{
languageOptions: {
globals: {
...globals.builtin,
...globals.jest,
...globals.node
}
},
rules: {
"no-unused-vars": "off"
}
},
{ ignores: ["coverage"] }
];
33 changes: 9 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"main": "src/plugin.js",
"scripts": {
"checkFormat": "prettier --check '**/*'",
"checkFormat": "prettier . --check",
"lint": "eslint --cache .",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
},
Expand All @@ -23,29 +23,14 @@
"prettier": "^3.0.0"
},
"devDependencies": {
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^9.0.2",
"jest": "^29.5.0",
"prettier": "^3.1.0",
"pretty-quick": "^4.0.0"
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"prettier"
],
"env": {
"jest": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"no-undef": "off"
}
"@eslint/js": "^9.21.0",
"eslint": "^9.21.0",
"eslint-config-prettier": "^10.0.2",
"globals": "^16.0.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"prettier": "^3.5.3",
"pretty-quick": "^4.1.1"
},
"jest": {
"globalSetup": "./test/js/globalSetup.js",
Expand Down
Loading

0 comments on commit 56a09fa

Please sign in to comment.