diff --git a/.eslintrc.js b/.eslintrc.js index 6984ef5a..2eba0dad 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,7 +2,7 @@ module.exports = { env: { node: true }, - extends: ['enact', 'plugin:prettier/recommended'], + extends: ['enact', 'plugin:prettier/recommended', 'prettier'], plugins: ['import'], rules: { 'import/no-unresolved': ['error', {commonjs: true, caseSensitive: true}], diff --git a/commands/lint.js b/commands/lint.js index 51d11238..243f920e 100755 --- a/commands/lint.js +++ b/commands/lint.js @@ -55,7 +55,7 @@ function eslint({strict = false, local = false, fix = false, eslintArgs = []} = } return new Promise((resolve, reject) => { const opts = {env: process.env, cwd: process.cwd()}; - const child = cp.fork(require.resolve('eslint/bin/eslint'), args, opts); + const child = cp.fork(path.join(require.resolve('eslint'), '..', '..', 'bin', 'eslint'), args, opts); child.on('close', code => { if (code !== 0) { reject(); diff --git a/package.json b/package.json index d451bdd3..68e67470 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "dotenv": "^16.0.0", "dotenv-expand": "^8.0.3", "enzyme": "3.11.0", - "eslint": "7.32.0", + "eslint": "^8.12.0", "eslint-config-enact": "^3.1.3", "eslint-plugin-babel": "^5.3.1", "eslint-plugin-enact": "^0.2.3",