Skip to content

Commit

Permalink
feat: migrate to ESLint 9 (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi authored Nov 25, 2024
1 parent 02e6018 commit 7157044
Show file tree
Hide file tree
Showing 26 changed files with 1,101 additions and 940 deletions.
4 changes: 3 additions & 1 deletion .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export default {
const config = {
extends: ['@commitlint/config-conventional'],
rules: {
'footer-max-line-length': [1, 'always', 72],
},
};

export default config;
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc.cjs

This file was deleted.

3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
*
!*.js
!*.cjs
!/configs/**/*
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<div align="center">

# @react-hookz/eslint-config
<!-- eslint-disable-next-line @stylistic/indent -->

@react-hookz/eslint-config

eslint configuration files used in @react-hookz projects

[![NPM Version](https://flat.badgen.net/npm/v/@react-hookz/eslint-config)](https://www.npmjs.com/package/@react-hookz/eslint-config)
[![NPM Downloads](https://flat.badgen.net/npm/dm/@react-hookz/eslint-config)](https://www.npmjs.com/package/@react-hookz/eslint-config)
[![NPM Dependents](https://flat.badgen.net/npm/dependents/@react-hookz/eslint-config)](https://www.npmjs.com/package/@react-hookz/eslint-config)
[![Build](https://img.shields.io/github/actions/workflow/status/react-hookz/eslint-config/CI.yml?branch=master&style=flat-square)](https://github.com/react-hookz/eslint-config/actions)

</div>
233 changes: 0 additions & 233 deletions base.cjs

This file was deleted.

4 changes: 3 additions & 1 deletion .prettierrc.cjs → configs/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
const config = {
printWidth: 100,
tabs: true,
tabWidth: 2,
Expand All @@ -10,3 +10,5 @@ module.exports = {
bracketSameLine: true,
arrowParens: 'always',
};

export default config;
Loading

0 comments on commit 7157044

Please sign in to comment.