Skip to content

Commit

Permalink
feat: support eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Apr 23, 2024
1 parent 54a66a1 commit fc211aa
Show file tree
Hide file tree
Showing 17 changed files with 599 additions and 1,206 deletions.
20 changes: 18 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
module.exports = {
root: true,
extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'],
extends: [
'@webpack-contrib/eslint-config-webpack/rules/possible-errors',
'@webpack-contrib/eslint-config-webpack/rules/best-practices',
'@webpack-contrib/eslint-config-webpack/rules/variables',
'@webpack-contrib/eslint-config-webpack/rules/node',
'@webpack-contrib/eslint-config-webpack/rules/stylistic-issues',
'@webpack-contrib/eslint-config-webpack/rules/es2015',
'prettier',
],
parserOptions: {
ecmaVersion: 2018,
env: {
es6: true,
jest: true,
},
sourceType: 'module',
},
rules: {
strict: 'error',
'global-require': 'off',
'import/no-dynamic-require': 'off',
},
};
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ Specify the path to the cache location. Can be a file or a directory.
- Type:

```ts
type configType = "flat" | "eslintrc";
type configType = 'flat' | 'eslintrc';
```

- Default: `eslintrc`

Specify the type of configuration to use with ESLint.

- `eslintrc` is the classic configuration format available in most ESLint versions.
- `flat` is the new format introduced in ESLint 8.21.0.

Expand Down
Loading

0 comments on commit fc211aa

Please sign in to comment.