Skip to content

Commit

Permalink
[pkg] Update eslint to version 9.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed May 13, 2024
1 parent 2f26a41 commit 78ca9bc
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 19 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.js": "eslint --fix",
"*.{json,md,ts,yml,yaml}": "prettier --write"
"*.{js,json,md,ts,yml,yaml}": "prettier --write"
}
24 changes: 24 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use strict';

const pluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
const globals = require('globals');
const js = require('@eslint/js');

module.exports = [
js.configs.recommended,
{
ignores: ['coverage/', 'node_modules/'],
languageOptions: {
ecmaVersion: 'latest',
globals: {
...globals.mocha,
...globals.node
}
},
rules: {
'no-var': 'error',
'prefer-const': 'error'
}
},
pluginPrettierRecommended
];
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
"devDependencies": {
"c8": "^7.3.0",
"chai": "^4.1.2",
"eslint": "^8.0.0",
"eslint": "^9.2.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"globals": "^15.2.0",
"husky": "^8.0.1",
"json-bigint": "^1.0.0",
"lint-staged": "^15.2.0",
Expand All @@ -40,7 +41,7 @@
"test": "c8 --reporter=lcov --reporter=text mocha",
"test:types": "tsd",
"watch": "mocha -w",
"lint": "eslint --ignore-path .gitignore . && prettier --check --ignore-path .gitignore \"**/*.{json,md,ts,yaml,yml}\"",
"lint": "eslint . && prettier --check --ignore-path .gitignore \"**/*.{json,md,ts,yaml,yml}\"",
"prepare": "husky install"
},
"repository": "MONEI/Shopify-api-node",
Expand Down

0 comments on commit 78ca9bc

Please sign in to comment.