Skip to content

Commit

Permalink
build: eslint update
Browse files Browse the repository at this point in the history
  • Loading branch information
McBen authored and modos189 committed Sep 2, 2024
1 parent e987da7 commit a98436f
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 36 deletions.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

26 changes: 0 additions & 26 deletions .eslintrc.json

This file was deleted.

44 changes: 44 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import prettier from 'eslint-plugin-prettier';
import globals from 'globals';
import eslint from '@eslint/js';
import PrettierRecommended from 'eslint-plugin-prettier/recommended';

export default [
eslint.configs.recommended,
PrettierRecommended,
{
ignores: [
'eslint.config.js',
'core/external/*.js',
'plugins/external/*.js',
'**/node_modules',
'**/build',
'**/mobile',
'**/docs',
'**/json_examples',
'**/external',
],
},
{
plugins: {
prettier,
},

languageOptions: {
globals: {
...globals.browser,
...globals.jquery,
...globals.greasemonkey,
},

ecmaVersion: 2024,
sourceType: 'module',
},

rules: {
eqeqeq: 'error',
'spaced-comment': 'error',
'no-unused-expressions': 'error',
},
},
];
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
"private": true,
"type": "module",
"devDependencies": {
"@eslint/js": "^9.9.1",
"chai": "^4.3.6",
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.9.0",
"mocha": "^9.2.2",
"prettier": "^2.7.1"
"prettier": "^3.3.3"
},
"scripts": {
"build": "npm run build:local",
Expand Down

0 comments on commit a98436f

Please sign in to comment.