Skip to content

Commit

Permalink
feat: add es2024 config (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Oct 25, 2024
1 parent a6cc3ac commit 6d59446
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ module.exports = {
es2021: require("./configs/es2021"),
es2022: require("./configs/es2022"),
es2023: require("./configs/es2023"),
es2024: require("./configs/es2024"),
es5: require("./configs/es5"),
}
7 changes: 7 additions & 0 deletions lib/configs/_override-2024.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict"

module.exports = {
parserOptions: {
ecmaVersion: 2024,
},
}
21 changes: 21 additions & 0 deletions lib/configs/es2024.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
"use strict"

module.exports = {
extends: [
require.resolve("./_base.js"),
require.resolve("./_override-2015.js"),
require.resolve("./_override-2016.js"),
require.resolve("./_override-2017.js"),
require.resolve("./_override-2018.js"),
require.resolve("./_override-2019.js"),
require.resolve("./_override-2020.js"),
require.resolve("./_override-2021.js"),
require.resolve("./_override-2022.js"),
require.resolve("./_override-2023.js"),
require.resolve("./_override-2024.js"),
require.resolve("./_override-ts.js"),
require.resolve("./_override-vue.js"),
require.resolve("./_override-mocha.js"),
require.resolve("./_override-special.js"),
],
}
10 changes: 10 additions & 0 deletions tests/lib/configs/es2024.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"use strict"

const config = require("../../../lib/configs/es2024")
const Rules = require("./_rules")

describe("'es2024.js'", () => {
it("should be a valid config.", () => {
Rules.validateConfig(config, "es2024.js")
})
})

0 comments on commit 6d59446

Please sign in to comment.