Skip to content

Commit

Permalink
feat(config): migrate files for commonjs compatibility (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamalston authored Dec 3, 2023
1 parent 02e3836 commit e66afa5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module.exports = {
extends: 'react-app',
rules: {
eqeqeq: 'error',
'no-console': 'error',
},
ignorePatterns: ['!*.cjs'],
};
2 changes: 1 addition & 1 deletion lint-staged.config.js → .lintstagedrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
'*.{js,jsx,ts,tsx}': [
'*.{cjs,js,jsx,ts,tsx}': [
'eslint --cache --fix --max-warnings 0',
'prettier --cache --write',
],
Expand Down
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

5 changes: 5 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import("prettier").Config} */
module.exports = {
arrowParens: 'always',
singleQuote: true,
};

0 comments on commit e66afa5

Please sign in to comment.