Skip to content

Commit

Permalink
fix: update linting configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirsamdarshi committed May 9, 2024
1 parent 5ffee27 commit 5ea4034
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 41 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ node_modules/
README.md
LICENSE
.prettierignore
.eslintrc.js
eslint.config.cjs
.prettierrc.js
stylelint.config.js
.circleci/
.github/
scripts/
.storybook/
.env
build/
/.yarn/
29 changes: 0 additions & 29 deletions .eslintrc.cjs

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc.cjs

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
arrowParens: 'always',
singleQuote: true,
};
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
│   | └── \_\_test\_\_: contains the storybook story and jest tests for the feature.
├── public
├── .storybook: configuration for storybook
├── .eslintrc.cjs: ESlint configuration
├── .prettierrc.cjs: Prettier configuration
├── .eslintrc: ESlint configuration
├── .prettierrc.js: Prettier configuration
├── .stylelint.config.js: StyleLint configurations for Sass Linting

#### Flow for creating new components
Expand Down
17 changes: 17 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const react = require('eslint-plugin-react');

module.exports = [
{
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx}'],
plugins: {
react,
},
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
},
];
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"history": "4.10.1",
"http-proxy-middleware": "^2.0.1",
"jquery": "^3.5.1",
"lodash": "^4.17.11",
"lodash": "^4.17.21",
"popper.js": "^1.16.1",
"prop-types": "15.8.1",
"react": "17.0.1",
Expand Down Expand Up @@ -67,12 +67,13 @@
"@vitest/coverage-v8": "^1.4.0",
"@wojtekmaj/enzyme-adapter-react-17": "0.8.0",
"enzyme": "3.11.0",
"eslint": "^9.1.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react": "^7.34.1",
"jest-canvas-mock": "^2.2.0",
"postcss-normalize": "^10.0.1",
"jsdom": "^24.0.0",
"prettier": "^3.0.0",
"postcss-normalize": "^10.0.1",
"prettier": "^3.2.5",
"react-error-overlay": "^6.0.11",
"sass": "1.70.0",
"storybook": "^8.0.9",
Expand Down
2 changes: 1 addition & 1 deletion stylelint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
export default {
extends: 'stylelint-config-recommended',
};

0 comments on commit 5ea4034

Please sign in to comment.