Skip to content

Commit 33c3928

Browse files
fix: update linting configurations
1 parent 63dbb9e commit 33c3928

8 files changed

+32
-41
lines changed

.dockerignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ node_modules/
22
README.md
33
LICENSE
44
.prettierignore
5-
.eslintrc.js
5+
eslint.config.cjs
66
.prettierrc.js
7+
stylelint.config.js
78
.circleci/
89
.github/
910
scripts/
1011
.storybook/
1112
.env
1213
build/
14+
/.yarn/

.eslintrc.cjs

-29
This file was deleted.

.prettierrc.cjs

-4
This file was deleted.

.prettierrc.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default {
2+
arrowParens: 'always',
3+
singleQuote: true,
4+
};

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
│   | └── \_\_test\_\_: contains the storybook story and jest tests for the feature.
2424
├── public
2525
├── .storybook: configuration for storybook
26-
├── .eslintrc.cjs: ESlint configuration
27-
├── .prettierrc.cjs: Prettier configuration
26+
├── .eslintrc: ESlint configuration
27+
├── .prettierrc.js: Prettier configuration
2828
├── .stylelint.config.js: StyleLint configurations for Sass Linting
2929

3030
#### Flow for creating new components

eslint.config.cjs

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const react = require('eslint-plugin-react');
2+
3+
module.exports = [
4+
{
5+
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
6+
plugins: {
7+
react,
8+
},
9+
languageOptions: {
10+
parserOptions: {
11+
ecmaFeatures: {
12+
jsx: true,
13+
},
14+
},
15+
},
16+
},
17+
];

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"history": "4.10.1",
1919
"http-proxy-middleware": "^2.0.1",
2020
"jquery": "^3.5.1",
21-
"lodash": "^4.17.11",
21+
"lodash": "^4.17.21",
2222
"popper.js": "^1.16.1",
2323
"prop-types": "15.8.1",
2424
"react": "17.0.1",
@@ -66,12 +66,13 @@
6666
"@vitest/coverage-v8": "^1.4.0",
6767
"@wojtekmaj/enzyme-adapter-react-17": "0.8.0",
6868
"enzyme": "3.11.0",
69+
"eslint": "^9.1.1",
6970
"eslint-config-airbnb": "^19.0.4",
70-
"eslint-plugin-react-hooks": "^4.6.0",
71+
"eslint-plugin-react": "^7.34.1",
7172
"jest-canvas-mock": "^2.2.0",
72-
"postcss-normalize": "^10.0.1",
7373
"jsdom": "^24.0.0",
74-
"prettier": "^3.0.0",
74+
"postcss-normalize": "^10.0.1",
75+
"prettier": "^3.2.5",
7576
"react-error-overlay": "^6.0.11",
7677
"sass": "1.70.0",
7778
"storybook": "^8.0.9",

stylelint.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module.exports = {
1+
export default {
22
extends: 'stylelint-config-recommended',
33
};

0 commit comments

Comments
 (0)