Skip to content

Commit

Permalink
chore: upgrade eslint to v9.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bumblehead committed Sep 14, 2024
1 parent c93c2af commit 27f9124
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

32 changes: 32 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const js = require('@eslint/js');
const unicorn = require('eslint-plugin-unicorn');
const xolass = require('eslint-config-xo-lass');

module.exports = [
js.configs.recommended,
unicorn.configs['flat/recommended'],
{
ignores: ['!.*.js'],
languageOptions: {
ecmaVersion: 2022,
sourceType: 'commonjs',
globals: {
console: true,
setTimeout: true,

__dirname: true,
before: true,
after: true,
beforeEach: true,
describe: true,
it: true
}
},
rules: {
...xolass.rules,
'promise/prefer-await-to-then': 0,
'logical-assignment-operators': 0,
'arrow-body-style': 0
}
}
];
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"@ladjs/env": "^4.0.0",
"eslint": "^8.39.0",
"eslint": "^9.10.0",
"eslint-config-xo-lass": "^2.0.1",
"eslint-plugin-unicorn": "55.0.0",
"fixpack": "^4.0.0",
"husky": "^8.0.3",
"jsdoc-to-markdown": "^8.0.0",
Expand All @@ -40,8 +41,7 @@
"nyc": "^17.0.0",
"remark-cli": "11",
"remark-preset-github": "^4.0.4",
"supertest": "^7.0.0",
"xo": "0.53.1"
"supertest": "^7.0.0"
},
"engines": {
"node": ">= 18"
Expand All @@ -66,7 +66,7 @@
"bench": "make -C bench",
"coverage": "nyc npm run test",
"docs": "NODE_ENV=test jsdoc2md -t ./lib/API_tpl.hbs --src ./lib/*.js >| API.md",
"lint": "xo --fix && remark . -qfo && fixpack",
"lint": "eslint . && remark . -qfo && fixpack",
"prepare": "husky install",
"pretest": "npm run lint",
"test": "mocha test/**/*.js",
Expand Down

0 comments on commit 27f9124

Please sign in to comment.