Skip to content

Commit

Permalink
fix: temporal fix for eslint check also for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
raaymax committed Mar 31, 2024
1 parent c66f499 commit acac89f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 58 deletions.
60 changes: 4 additions & 56 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
root: true,
env: {
commonjs: true,
es2021: true,
es2023: true,
node: true,
},
parserOptions: {
Expand All @@ -27,7 +27,7 @@ module.exports = {
env: {
serviceworker: true,
browser: true,
es2021: true,
es2023: true,
},
parserOptions: {
ecmaVersion: 'latest',
Expand All @@ -50,7 +50,7 @@ module.exports = {
env: {
mocha: true,
browser: true,
es2021: true,
es2023: true,
},
parserOptions: {
ecmaVersion: 'latest',
Expand All @@ -72,64 +72,12 @@ module.exports = {
env: {
mocha: true,
commonjs: true,
es2021: true,
es2023: true,
},
rules: {
'global-require': ['off'],
},
},
{
files: [
'plugins/*/public/**/*.js',
],
extends: 'preact',
env: {
browser: true,
es2021: true,
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
globals: {
Chat: 'readonly',
Preact: 'readonly',
PreactHooks: 'readonly',
plugins: 'readonly',
},
rules: {
'jest/no-deprecated-functions': 'off',
'import/prefer-default-export': 'off',
'import/extensions': ['off'],
},
},
{
files: [
'packages/app/**/*.js',
'packages/app/**/*.ts',
'packages/app/**/*.tsx',
'packages/app/**/*.jsx',
],
extends: 'preact',
env: {
browser: true,
es2021: true,
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
globals: {
EMOJI: 'writable',
API_URL: 'readonly',
APP_URL: 'readonly',
},
rules: {
'jest/no-deprecated-functions': 'off',
'import/prefer-default-export': 'off',
'import/extensions': ['off'],
},
},
{
files: [
'**/*.ts',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dev:srv": "pnpm run --filter @quack/server dev",
"dev": "run-p dev:srv dev:web",
"test": "migrate-mongo up && pnpm run --filter @quack/server test",
"lint": "FORCE_COLOR=true eslint --fix .",
"lint": "FORCE_COLOR=true eslint --fix . && pnpm run --filter @quack/app lint",
"lint:ci": "eslint .",
"test:ci": "pnpm run --filter @quack/server test:ci"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/app/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
env: { browser: true, es2023: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
Expand Down

0 comments on commit acac89f

Please sign in to comment.