Skip to content

Commit 78ca9bc

Browse files
committed
[pkg] Update eslint to version 9.2.0
1 parent 2f26a41 commit 78ca9bc

File tree

4 files changed

+28
-19
lines changed

4 files changed

+28
-19
lines changed

.eslintrc.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.lintstagedrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"*.js": "eslint --fix",
3-
"*.{json,md,ts,yml,yaml}": "prettier --write"
3+
"*.{js,json,md,ts,yml,yaml}": "prettier --write"
44
}

eslint.config.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
'use strict';
2+
3+
const pluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
4+
const globals = require('globals');
5+
const js = require('@eslint/js');
6+
7+
module.exports = [
8+
js.configs.recommended,
9+
{
10+
ignores: ['coverage/', 'node_modules/'],
11+
languageOptions: {
12+
ecmaVersion: 'latest',
13+
globals: {
14+
...globals.mocha,
15+
...globals.node
16+
}
17+
},
18+
rules: {
19+
'no-var': 'error',
20+
'prefer-const': 'error'
21+
}
22+
},
23+
pluginPrettierRecommended
24+
];

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
"devDependencies": {
2626
"c8": "^7.3.0",
2727
"chai": "^4.1.2",
28-
"eslint": "^8.0.0",
28+
"eslint": "^9.2.0",
2929
"eslint-config-prettier": "^9.0.0",
3030
"eslint-plugin-prettier": "^5.0.0",
31+
"globals": "^15.2.0",
3132
"husky": "^8.0.1",
3233
"json-bigint": "^1.0.0",
3334
"lint-staged": "^15.2.0",
@@ -40,7 +41,7 @@
4041
"test": "c8 --reporter=lcov --reporter=text mocha",
4142
"test:types": "tsd",
4243
"watch": "mocha -w",
43-
"lint": "eslint --ignore-path .gitignore . && prettier --check --ignore-path .gitignore \"**/*.{json,md,ts,yaml,yml}\"",
44+
"lint": "eslint . && prettier --check --ignore-path .gitignore \"**/*.{json,md,ts,yaml,yml}\"",
4445
"prepare": "husky install"
4546
},
4647
"repository": "MONEI/Shopify-api-node",

0 commit comments

Comments
 (0)