Skip to content

Commit

Permalink
updated to ESLint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 29, 2024
1 parent c51b43a commit 7eacfe1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.js

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/vendor
/composer.lock
/node_modules
/package-lock.json
/tools/create-phar/tracy.phar
21 changes: 21 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import globals from 'globals';
import pluginJs from '@eslint/js';

export default [
pluginJs.configs.recommended,
{
languageOptions: {
ecmaVersion: 6,
globals: globals.browser,
},
rules: {
indent: ['error', 'tab'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'prefer-arrow-callback': ['error'],
'arrow-parens': ['error'],
'arrow-spacing': ['error'],
'no-var': ['error'],
},
},
];
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"devDependencies": {
"@eslint/js": "^9.1.1",
"eslint": "^9.1.1",
"globals": "^15.1.0"
}
}

0 comments on commit 7eacfe1

Please sign in to comment.