Skip to content

Commit

Permalink
feat(eslint-plugin): update dependencies and remove unused plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
bryceosterhaus committed Jun 24, 2024
1 parent 970a0ba commit 2407184
Show file tree
Hide file tree
Showing 3 changed files with 841 additions and 26 deletions.
5 changes: 1 addition & 4 deletions projects/eslint-plugin/configs/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

const config = {
env: {
es6: true,
es2023: true,
},
extends: ['eslint:recommended', require.resolve('eslint-config-prettier')],
overrides: [
Expand Down Expand Up @@ -70,12 +70,10 @@ const config = {
],
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'@typescript-eslint/eslint-plugin',
'no-for-of-loops',
'no-only-tests',
'notice',
'promise',
Expand Down Expand Up @@ -141,7 +139,6 @@ const config = {
'no-constant-condition': ['error', {checkLoops: false}],
'no-control-regex': 'off',
'no-eval': 'error',
'no-for-of-loops/no-for-of-loops': 'off',
'no-only-tests/no-only-tests': 'error',
'no-return-assign': ['error', 'always'],
'no-unused-expressions': 'error',
Expand Down
14 changes: 8 additions & 6 deletions projects/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
"dependencies": {
"@typescript-eslint/eslint-plugin": "4.30.0",
"@typescript-eslint/parser": "4.30.0",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-no-for-of-loops": "^1.0.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-no-only-tests": "^2.1.0",
"eslint-plugin-notice": "0.9.10",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "7.23.1",
"eslint-plugin-react-hooks": "4.2.0",
"eslint-plugin-promise": "6.2.0",
"eslint-plugin-react": "7.34.3",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-sort-destructure-keys": "^1.3.5"
},
"devDependencies": {
"eslint": "^8.0.0"
},
"description": "ESLint plugin for the Liferay JavaScript Style",
"files": [
".eslintrc.js",
Expand All @@ -31,7 +33,7 @@
"main": "index.js",
"name": "@liferay/eslint-plugin",
"peerDependencies": {
"eslint": ">=4.1.1",
"eslint": "*",
"typescript": "*"
},
"peerDependenciesMeta": {
Expand Down
Loading

0 comments on commit 2407184

Please sign in to comment.