Skip to content

Commit

Permalink
WRN-12748: Update eslint 8 related modules (#262)
Browse files Browse the repository at this point in the history
* update eslint 8

* eslint 8 changes strict package exports(#14706), call another method

* revert js changes

* Update package.json

* restore eslintrc.js - 'prettier' (included 'prettier/babel', 'prettier/react')

* Update package.json

Co-authored-by: Mikyung Kim <mikyung27.kim@lge.com>

Co-authored-by: Mikyung Kim <mikyung27.kim@lge.com>
  • Loading branch information
hong6316 and MikyungKim committed Apr 1, 2022
1 parent c63c563 commit cea44d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}],
Expand Down
2 changes: 1 addition & 1 deletion commands/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,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-webpack-plugin": "^3.1.1",
"expose-loader": "^3.1.0",
Expand Down

0 comments on commit cea44d4

Please sign in to comment.