Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial setup #2

Merged
merged 9 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# VScode respects this. More info at editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
16 changes: 16 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
public
coverage
db
docs
log
.scripts
.semaphore
test
tmp
.vscode
babel.config.js
webpack.config.js
dist
.eslintrc.js
.prettierrc.js
jsconfig.json
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// eslint-disable-next-line import/extensions
module.exports = require("@bigbinary/neeto-commons-frontend/configs/eslint/index.js");
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# dependencies
/node_modules

# production
/build
/dist

npm-debug.log*
yarn-debug.log*
yarn-error.log*
5 changes: 5 additions & 0 deletions .husky/helpers/lint_staged.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

lint_staged_files() {
npx lint-staged
}
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/helpers/lint_staged.sh"

lint_staged_files
15 changes: 15 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
trailingComma: "es5",
arrowParens: "avoid",
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: true,
quoteProps: "as-needed",
jsxSingleQuote: false,
singleQuote: false,
bracketSpacing: true,
bracketSameLine: false,
proseWrap: "always",
endOfLine: "lf",
};
Amaljith-K marked this conversation as resolved.
Show resolved Hide resolved
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"redhat.vscode-yaml",
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"streetsidesoftware.code-spell-checker",
"eamodio.gitlens"
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"editor.formatOnSave": true,
"yaml.format.enable": true
}
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require("@bigbinary/neeto-commons-frontend/configs/babel.js");
124 changes: 124 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"compilerOptions": {
"target": "ESNext",
"allowSyntheticDefaultImports": true,
"strictNullChecks": true,
"lib": [
"DOM",
"DOM.Iterable",
"ESNext"
],
"module": "ESNext",
"moduleResolution": "NodeNext",
"baseUrl": ".",
"paths": {
anmol-kumar0815 marked this conversation as resolved.
Show resolved Hide resolved
// Don't modify the below paths without consulting with neetoCompliance team
"apis": [
"src/apis"
],
"apis/*": [
"src/apis/*"
],
"assets": [
"src/assets"
],
"assets/*": [
"src/assets/*"
],
"components": [
"src/components"
],
"components/*": [
"src/components/*"
],
"hooks": [
"src/hooks"
],
"hooks/*": [
"src/hooks/*"
],
"reducers": [
"src/reducers"
],
"reducers/*": [
"src/reducers/*"
],
"routes": [
"src/routes"
],
"routes/*": [
"src/routes/*"
],
"translations": [
"src/translations"
],
"translations/*": [
"src/translations/*"
],
"utils": [
"src/utils"
],
"utils/*": [
"src/utils/*"
],
"src": [
"src"
],
"src/*": [
"src/*"
],
"neetoui": [
"node_modules/@bigbinary/neetoui"
],
"neetoui/*": [
"node_modules/@bigbinary/neetoui/*"
],
"neetocommons": [
"node_modules/@bigbinary/neeto-commons-frontend"
],
"neetocommons/*": [
"node_modules/@bigbinary/neeto-commons-frontend/*"
],
"neetoicons": [
"node_modules/@bigbinary/neeto-icons"
],
"neetoicons/*": [
"node_modules/@bigbinary/neeto-icons/*"
],
"neetoteam": [
"node_modules/@bigbinary/neeto-team-members-frontend"
],
"neetoeditor": [
"node_modules/@bigbinary/neeto-editor"
],
"neetofilters": [
"node_modules/@bigbinary/neeto-filters-frontend"
],
"neetomolecules/*": [
"node_modules/@bigbinary/neeto-molecules/types/*"
],
// You can add custom project specific paths below this comment
"common": [
"src/common"
],
"common/*": [
"src/common/*"
]
},
"pretty": true,
"experimentalDecorators": true,
"esModuleInterop": true,
"checkJs": true,
"resolveJsonModule": true,
"jsx": "preserve"
},
"exclude": [
"**/node_modules",
"**/.*/"
],
"include": [
"./**/*.js",
"./**/*.jsx",
"./**/*.d.ts"
]
}
62 changes: 62 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"name": "@bigbinary/neeto-hotkeys",
"version": "1.0.0",
"description": "React hook for handling keyboard shortcuts, offering a customizable and platform-aware solution, supporting global and scoped modes.",
"scripts": {
"prepare": "husky install"
},
"engines": {
"node": ">=18.12"
},
"lint-staged": {
"src/**/*.{js,jsx,json}": [
"prettier --write",
"eslint --fix"
],
"{package.json,.eslintrc.js,.prettierrc.js}": [
"prettier --write",
"eslint --fix"
],
".eslint-rules/**/*": [
"prettier --write",
"eslint --fix"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/bigbinary/neeto-hotkeys.git"
},
"author": "BigBinary",
"license": "ISC",
"bugs": {
"url": "https://github.com/bigbinary/neeto-hotkeys/issues"
},
"homepage": "https://github.com/bigbinary/neeto-hotkeys#readme",
"devDependencies": {
"@babel/eslint-parser": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/preset-react": "^7.23.3",
"@bigbinary/eslint-plugin-neeto": "^1.1.31",
"@bigbinary/neeto-cist": "^1.0.4",
anmol-kumar0815 marked this conversation as resolved.
Show resolved Hide resolved
"@bigbinary/neeto-commons-frontend": "^2.1.38",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jam3": "^0.2.3",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-security": "^1.7.1",
"eslint-plugin-sonarjs": "^0.23.0",
"eslint-plugin-unused-imports": "^3.0.0",
"eslint-plugin-xss": "^0.1.12",
"husky": "^8.0.0",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0"
},
"peerDependencies": {
"@bigbinary/neeto-commons-frontend": "latest"
}
}
Loading