Skip to content

Commit

Permalink
Flat ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
SnaBe committed Apr 6, 2024
1 parent e17031a commit 6a5ab7a
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 50 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

44 changes: 0 additions & 44 deletions .eslintrc.json

This file was deleted.

39 changes: 39 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -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/"
]
}
]
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6a5ab7a

Please sign in to comment.