Skip to content

Commit

Permalink
chore(deps): update dependency eslint to v9 (#560)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eslint to v9

* migrate config

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Tschinder <[email protected]>
  • Loading branch information
renovate[bot] and danez authored Dec 18, 2024
1 parent 4a63b17 commit 728072f
Show file tree
Hide file tree
Showing 7 changed files with 233 additions and 244 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

48 changes: 0 additions & 48 deletions .eslintrc

This file was deleted.

76 changes: 76 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import globals from 'globals';
import babelParser from '@babel/eslint-parser';
import js from '@eslint/js';
import reactPlugin from 'eslint-plugin-react';
import importPlugin from 'eslint-plugin-import';
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
import prettierRecommended from 'eslint-plugin-prettier/recommended';

export default [
js.configs.recommended,
reactPlugin.configs.flat.recommended,
importPlugin.flatConfigs.recommended,
importPlugin.flatConfigs.react,
jsxA11yPlugin.flatConfigs.recommended,
prettierRecommended,
{
ignores: ['webpack.*', '**/lib', '**/dist', '**/esm'],
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},

parser: babelParser,

parserOptions: {
requireConfigFile: false,
},
},

settings: {
react: {
version: 'detect',
},
},

rules: {
'jsx-a11y/no-static-element-interactions': 'off',

'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/__tests__/**/*',
'examples/src/**/*.js',
'rollup.config.js',
'webpack.config.js',
],

optionalDependencies: false,
},
],

'no-unused-vars': [
'error',
{
ignoreRestSiblings: true,
},
],

'no-console': 'error',
'react/prop-types': 'off',
},
},
{
files: ['**/*-test.js'],

languageOptions: {
globals: {
...globals.jest,
},
},
},
];
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@
"cross-env": "7.0.3",
"css-loader": "7.1.2",
"css-minimizer-webpack-plugin": "^7.0.0",
"eslint": "8.57.1",
"eslint": "9.17.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.37.2",
"globals": "15.13.0",
"hoist-non-react-statics": "3.3.2",
"html-loader": "5.1.0",
"html-webpack-plugin": "5.6.3",
Expand Down
Loading

0 comments on commit 728072f

Please sign in to comment.