Skip to content

Commit

Permalink
Update NPM dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sabberworm committed Nov 19, 2024
1 parent 6321a31 commit e6bcd39
Show file tree
Hide file tree
Showing 6 changed files with 2,182 additions and 6,191 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ aem {

inputs.dir("src/main/frontend")
inputs.file("package-lock.json")
outputs.upToDateWhen { false }
}

val tsc by registering(NpmTask::class) {
Expand Down
59 changes: 59 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import typescriptEslint from '@typescript-eslint/eslint-plugin';
import { fixupPluginRules } from '@eslint/compat';
import globals from 'globals';
import tsParser from '@typescript-eslint/parser';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
{
ignores: ['build/**/*'],
},
...compat.extends('eslint:recommended', 'plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'prettier'),
{
plugins: {
react,
'react-hooks': fixupPluginRules(reactHooks),
'@typescript-eslint': typescriptEslint,
},

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

parser: tsParser,
ecmaVersion: 'latest',
sourceType: 'module',
},

settings: {
react: {
createClass: 'createReactClass',
pragma: 'React',
fragment: 'Fragment',
version: 'detect',
},

componentWrapperFunctions: ['styled'],
},

rules: {
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-unused-vars': 0,
'react/prop-types': 0,
},
},
];
Loading

0 comments on commit e6bcd39

Please sign in to comment.