Skip to content

Commit

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

* fix: ran yarn dedupe

* fix: added eslint.config

* fix: fixed flatted dependency

* fix: yarn dedupe

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Guilherme Datilio Ribeiro <guilhermedatilio@gmail.com>
  • Loading branch information
renovate[bot] and guidari authored Jun 19, 2024
1 parent 250923e commit 47ef3e4
Show file tree
Hide file tree
Showing 28 changed files with 252 additions and 77 deletions.
47 changes: 0 additions & 47 deletions .eslintignore

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion config/eslint-config-carbon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"provenance": true
},
"peerDependencies": {
"eslint": "^8.0.0"
"eslint": "^9.0.0"
},
"dependencies": {
"@babel/eslint-parser": "^7.19.1",
Expand Down
75 changes: 75 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
export default [
{
languageOptions: {
parser: {
meta: {
name: 'Ignore Without Parsing',
},

// Ignore Paring error
parse: function () {
return {
type: 'Program',
loc: {},
comments: [],
range: [0, 0],
body: [],
tokens: [],
};
},
},
},
},

{
ignores: [
// Build folders
'/build',
'packages/*/build/',
'packages/*/examples/*/build/',
'es',
'lib',
'dist',
'umd',

'node_modules',
'packages/*/examples/*',

// Components
'packages/components/demo/*.css',
'packages/components/demo/*.map',
'packages/components/demo/*.js',
'packages/components/demo/js/prism.js',
'packages/components/demo/hot',
'!packages/components/demo/index.js', // This negation might need manual handling
'packages/components/dist',
'packages/components/tests/a11y-results',
'packages/components/tests/coverage',
'packages/components/es',
'packages/components/umd',
'packages/components/scripts',
'packages/components/css',
'packages/components/scss',
'packages/components/html',
'packages/components/docs/js',
'packages/components/node_modules',
'packages/components/scss/globals/vendor/**',
'packages/components/src/globals/scss/vendor/**',

// Upgrade
'**/__testfixtures__/**',
'packages/upgrade/cli.js',

// React
'**/storybook-static/**',
'packages/react/icons/index.js',
'packages/react/icons/index.esm.js',

// Icons React
'packages/icons-react/next/**',

// Templates
'packages/cli/src/component/templates/**',
],
},
];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"cross-env": "^7.0.0",
"cross-spawn": "^7.0.0",
"doctoc": "^2.0.0",
"eslint": "^8.40.0",
"eslint": "^9.0.0",
"eslint-plugin-playwright": "^1.0.0",
"fs-extra": "^11.0.0",
"glob": "^10.0.0",
Expand Down
Loading

0 comments on commit 47ef3e4

Please sign in to comment.