diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 52484b9..0000000 --- a/.eslintignore +++ /dev/null @@ -1,4 +0,0 @@ -data -test/**/*.js -.eslintrc.json -node_modules/ diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 422f6d9..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "globals": { - "process": true - }, - "env": { - "browser": true, - "commonjs": true, - "es2021": true, - "mocha": true - }, - "extends": "eslint:recommended", - "parserOptions": { - "ecmaVersion": "latest" - }, - "rules": { - "linebreak-style": [ - "error", - "windows" - ], - "quotes": [ - "error", - "single" - ], - "semi": [ - "error", - "never" - ], - "camelcase": [ - "error", - { - "allow": [ - "market_hash_name", - "item_nameid" - ] - } - ], - "eqeqeq": [ - "error" - ], - "no-process-env": [ - "off" - ] - } -} diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..91a923a --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,39 @@ +export default [ + { + "rules": { + "linebreak-style": [ + "error", + "windows" + ], + "quotes": [ + "error", + "single" + ], + "semi": [ + "error", + "never" + ], + "camelcase": [ + "error", + { + "allow": [ + "market_hash_name", + "item_nameid" + ] + } + ], + "eqeqeq": [ + "error" + ], + "no-process-env": [ + "off" + ] + }, + "ignores": [ + "data", + "test/**/*.js", + "eslint.config.js", + "node_modules/" + ] + } +] diff --git a/package.json b/package.json index 271fa6d..7c5a4f4 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,8 @@ "type": "module", "scripts": { "test": "mocha --require dotenv/config --timeout 10000", - "fix": "eslint -c .eslintrc.json . --fix", - "lint": "eslint -c .eslintrc.json ." + "fix": "eslint -c eslint.config.js . --fix", + "lint": "eslint -c eslint.config.js ." }, "repository": { "type": "git",