Skip to content

Commit

Permalink
move env: node to the project's configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
resolritter committed Feb 13, 2024
1 parent 365d137 commit aeb0168
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const { getEslintConfiguration } = require("./src/eslint")

module.exports = getEslintConfiguration()
module.exports = { ...getEslintConfiguration(), env: { node: true } }
1 change: 0 additions & 1 deletion src/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ const getEslintTypescriptOverride = ({ rootDir }) => {

const getEslintConfiguration = ({ typescript } = {}) => {
return {
env: { node: true },
root: true,
extends: baseExtends,
plugins: basePlugins,
Expand Down

0 comments on commit aeb0168

Please sign in to comment.