Skip to content

Commit

Permalink
Merge branch 'main' into atom-input
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan000 committed Sep 24, 2024
2 parents 7e86a46 + 35bb193 commit 9fe0539
Show file tree
Hide file tree
Showing 18 changed files with 499 additions and 244 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"@babel/preset-react",
"@babel/preset-typescript"
]
}
}
58 changes: 57 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,59 @@
{
"extends": "next/core-web-vitals"
"root": true,
"env": {
"browser": true,
"es2020": true
},
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"next/core-web-vitals",
"plugin:prettier/recommended"
],
"plugins": [
"react-refresh",
"@typescript-eslint",
"react",
"react-hooks",
"prettier"
],
"ignorePatterns": ["dist", ".eslintrc.cjs"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "18.2"
}
},
"rules": {
"react-refresh/only-export-components": [
"warn",
{ "allowConstantExport": true }
],
"capitalized-comments": 1,
"dot-notation": 1,
"prefer-destructuring": ["error", { "object": true, "array": false }],
"quotes": ["error", "single"],
"sort-imports": 1,
"jsx-quotes": ["error", "prefer-double"],
"react/prop-types": "off",
"react/jsx-sort-props": 1,
"react/jsx-filename-extension": [
1,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"react/destructuring-assignment": 1,
"react/no-deprecated": 2,
"react-hooks/exhaustive-deps": "off",
"prettier/prettier": "error"
}
}
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"semi": true,
"trailingComma": "es5",
"jsxSingleQuote": false
}
6 changes: 3 additions & 3 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ services:
app:
build: .
ports:
- "8080:8080"
- '8080:8080'
environment:
NODE_ENV: development
CHOKIDAR_USEPOLLING: "true"
CHOKIDAR_USEPOLLING: 'true'
volumes:
- .:/app
- node_modules:/app/node_modules
stdin_open: true
tty: true
volumes:
node_modules:
node_modules:
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export default {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
setupFilesAfterEnv: ['<rootDir>/tests/jest.setup.cjs'],
collectCoverage: true,
};
};
9 changes: 6 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ const __dirname = path.dirname(__filename);

export default {
webpack: (config) => {
config.resolve.alias['@components'] = path.join(__dirname, 'src/components');
config.resolve.alias['@components'] = path.join(
__dirname,
'src/components'
);
return config;
}
};
},
};
Loading

0 comments on commit 9fe0539

Please sign in to comment.