Skip to content

Commit

Permalink
[TASK] Migrate ESLint config file
Browse files Browse the repository at this point in the history
  • Loading branch information
eliashaeussler committed Apr 11, 2024
1 parent 5a09f83 commit df85d7f
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 183 deletions.
1 change: 0 additions & 1 deletion Resources/Private/Frontend/.eslintignore

This file was deleted.

27 changes: 0 additions & 27 deletions Resources/Private/Frontend/.eslintrc

This file was deleted.

51 changes: 51 additions & 0 deletions Resources/Private/Frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
'use strict'

/*
* This file is part of the TYPO3 CMS extension "solver".
*
* Copyright (C) 2024 Elias Häußler <elias@haeussler.dev>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

const eslint = require('@eslint/js');
const tseslint = require('typescript-eslint');

module.exports = [
eslint.configs.recommended,
...tseslint.configs.recommended,
{
ignores: [
'webpack.config.js',
],
languageOptions: {
globals: {
browser: true,
es2021: true,
node: true,
},
parserOptions: {
ecmaFeatures: {
impliedStrict: true,
},
ecmaVersion: 2021,
sourceType: 'module',
},
},
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
},
];
Loading

0 comments on commit df85d7f

Please sign in to comment.