Skip to content

Commit

Permalink
feat: add es2025 config (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Oct 26, 2024
1 parent 522acb8 commit 028a8d7
Show file tree
Hide file tree
Showing 4 changed files with 40 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 @@ -18,5 +18,6 @@ module.exports = {
es2022: require("./configs/es2022"),
es2023: require("./configs/es2023"),
es2024: require("./configs/es2024"),
es2025: require("./configs/es2025"),
es5: require("./configs/es5"),
}
7 changes: 7 additions & 0 deletions lib/configs/_override-2025.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict"

module.exports = {
parserOptions: {
ecmaVersion: 2025,
},
}
22 changes: 22 additions & 0 deletions lib/configs/es2025.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
"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-2025.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/es2025.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"use strict"

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

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

0 comments on commit 028a8d7

Please sign in to comment.