Skip to content

Commit

Permalink
chore: upgrade eslint version
Browse files Browse the repository at this point in the history
Signed-off-by: Oleh Astappiev <[email protected]>
  • Loading branch information
astappiev committed Oct 23, 2024
1 parent 591c9ef commit d262924
Show file tree
Hide file tree
Showing 8 changed files with 955 additions and 2,091 deletions.
33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import globals from 'globals';
import js from "@eslint/js";
import compat from "eslint-plugin-compat";

export default [
js.configs.recommended,
compat.configs["flat/recommended"],
{
languageOptions: {
globals: {
...globals.browser,
...globals.jquery,
PF: 'readonly',
PrimeFaces: 'readonly',
},
},

rules: {
'no-unused-vars': 'off',

'no-use-before-define': ['error', {
functions: false,
classes: false,
variables: true,
}],

'no-alert': 'warn',
'max-len': ['warn', {
code: 150,
}],
},
},
];
Loading

0 comments on commit d262924

Please sign in to comment.