Skip to content

Commit

Permalink
Bump eslint from 8.57.0 to 9.17.0 (#1323)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Dec 23, 2024
1 parent f1a6785 commit a40f07e
Show file tree
Hide file tree
Showing 6 changed files with 339 additions and 1,196 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

18 changes: 0 additions & 18 deletions .eslintrc.js

This file was deleted.

40 changes: 40 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import globals from "globals";
import vue from "eslint-plugin-vue";
import jest from 'eslint-plugin-jest';

export default [
{
files: ["**/*.{js,mjs,cjs,vue}"]
},
{
ignores: ["output/"]
},
{
languageOptions: { globals: globals.browser }
},
{
plugins: { jest },
rules: {
...jest.configs.recommended.rules,
},
},
...vue.configs["flat/essential"],
{
rules: {
semi: ['error', 'always'], // Enforce semicolons
curly: ['error', 'multi'], // Enforce curly braces only for multi-line blocks
'jest/valid-title': 'off', // To be removed
'jest/no-standalone-expect': 'off', // To be removed
'jest/no-disabled-tests': 'off', // To be removed
'jest/no-conditional-expect': 'off', // To be removed
'jest/valid-expect': 'off', // To be removed
'jest/no-test-prefixes': 'off', // To be removed
'jest/no-export': 'off', // To be removed
'jest/no-alias-methods': 'off', // To be removed
'jest/expect-expect': 'off', // To be removed
'jest/valid-describe-callback': 'off', // To be removed
'vue/require-v-for-key': 'off', // To be removed
'vue/no-reserved-component-names': 'off', // To be removed
}
}
];
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
"@fortawesome/fontawesome-free": "^6.7.2",
"concurrently": "^9.1.0",
"copy-webpack-plugin": "^12.0.2",
"eslint": "^8.57.0",
"eslint": "^9.17.0",
"eslint-config-standard": "^15.0.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-standard": "^5.0.0",
"eslint-plugin-jest": "^28.10.0",
"eslint-plugin-vue": "^9.32.0",
"globals": "^15.14.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"tachyons": "^4.12.0",
Expand All @@ -21,8 +20,8 @@
},
"scripts": {
"build": "./node_modules/.bin/webpack",
"lint": "eslint content spec --ext .js",
"lint:fix": "eslint content spec --ext .js --fix",
"lint": "eslint content spec",
"lint:fix": "eslint content spec --fix",
"live": "concurrently 'bundle exec nanoc live' 'bundle exec rake compile'",
"test": "jest",
"test:watch": "jest --watch"
Expand Down
2 changes: 1 addition & 1 deletion spec/search/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

const fs = require('fs');
const path = require('path');
const subject = eval( // eslint-disable-line no-eval
const subject = eval(
fs.readFileSync(path.join(__dirname, '/../../templates/search.js.erb'))
.toString()
.replace(/<%= articles %>/, '[]')
Expand Down
Loading

0 comments on commit a40f07e

Please sign in to comment.