{"_id":"@em-and-ai/eslint-config-server","_rev":"8-9365973e001baf5633f9db3af934dc7e","name":"@em-and-ai/eslint-config-server","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@em-and-ai/eslint-config-server","version":"1.0.0","keywords":["eslint","airbnb-base","eslint-config-expressjs","eslint-config-airbnb-base-extended","Eslint ExpressJs"],"author":"","license":"ISC","_id":"@em-and-ai/eslint-config-server@1.0.0","maintainers":[{"name":"hung.hoang_emandai.net","email":"hung.hoang@emandai.net"},{"name":"truong.nguyen2k","email":"truong.nguyen@emandai.net"},{"name":"hoang.le_emandai.net","email":"hoang.le@emandai.net"}],"dist":{"shasum":"fe16a27ab9a7ad579a3e3f42562fa1076205da83","tarball":"https://registry.npmjs.org/@em-and-ai/eslint-config-server/-/eslint-config-server-1.0.0.tgz","fileCount":4,"integrity":"sha512-onKGAv286wCWIEm1P8tn1bs0CcpG1Q126x4Ci2bw8dBFDx6BOd6l4TgDakHx2QQ3708eLrxLivPRhpc80sjmwQ==","signatures":[{"sig":"MEYCIQCob4aX55a/iYjmf+0w9rPIuSdYrXS2cBQnFPNMb7N40AIhAKIrPFS9GxGliADy5BX3Z2BnSMxHLLa5c/+qBFo/LykL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6090,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPMdCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/jA/+NLVSqSSTAjG/w2RyfxPz8z8Lx1BW9pcfnIp4amYgRB8jAAwf\r\n+Wkvf9fdoOBYh2v8fY8CsPdjSe0hxBZdqLpd6/E7bm32oKtX47hgcRcSJ8rb\r\ndgMuNVskBqfrdGGtD3Q3NxliSzki8i2Xcf+rt8oK9ziZgbNIRbZXLWv5B8W/\r\nD0HMe9rlIQVkbhkmRH6anY6myR6PWvXgquhkhkZ97Vp6pgZWgGhj8RVPUYc6\r\nAIkZ/G5UbanajGOVXstQFmdvTrawXDv5gFkgtu6ubmmEUWaUzYpOFzQpiwvo\r\nJwwKgpMv9PdFj+EKk3GyskeLEKMKSEjvjBad709KomLPkVMNrw7yyTJb1YRy\r\n7U+eHK/BeURHW3IcAm6MlEur2Y5arLxLyPOGALgVABueecnx45FV1vvXDX+5\r\n01hrDtjNan0SPm9B1a07e81yTcvvRYj+pOZxfY4xfyY0jNp/j8MAIAIOd47i\r\niMuoEKLGW34TVXGaC3e4zaCuoF4eiGTfH+2Oet3jfPROh7NNxUUr2I5OIOD+\r\nkphZ4dcwm6tL/srmVQ3Zso2GHJ57PGNIIkp8KWWOPb3LcapF48p9ENy59R9N\r\nw6BNMTVNaUWIy1fN3sC+3HxJGRR9ibWZdTHOB5ysT6hPhzUPJ9USAc6Hwi0p\r\ntxnTT5y+o/46t8fEgmDtL+RPI2PsNhYMntk=\r\n=l0mW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"hung.hoang_emandai.net","email":"hung.hoang@emandai.net"},"_npmVersion":"6.14.17","description":"This package extends Airbnb's base JS .eslintrc (without React plugins) as an extensible shared config. ## Installation ```bash npm install --save-dev @em-and-ai/eslint-config-server ```","directories":{},"_nodeVersion":"14.21.2","eslintConfig":{"extends":"./index.js"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.37.0"},"peerDependencies":{"eslint":"^6 || ^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-server_1.0.0_1681704770367_0.2907454628406789","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@em-and-ai/eslint-config-server","version":"1.0.1","keywords":["eslint","airbnb-base","eslint-config-expressjs","eslint-config-airbnb-base-extended","Eslint ExpressJs"],"author":"","license":"ISC","_id":"@em-and-ai/eslint-config-server@1.0.1","maintainers":[{"name":"hung.hoang_emandai.net","email":"hung.hoang@emandai.net"},{"name":"truong.nguyen2k","email":"truong.nguyen@emandai.net"},{"name":"hoang.le_emandai.net","email":"hoang.le@emandai.net"}],"dist":{"shasum":"aed669ee8a60607ee85af437176995a91f0400c4","tarball":"https://registry.npmjs.org/@em-and-ai/eslint-config-server/-/eslint-config-server-1.0.1.tgz","fileCount":4,"integrity":"sha512-PWcI81/gjzTur/AhpfHbxAOPq2nKC6BO9c/dB7EB4za8POEqDM/VhBZrzEqiIunR7q1K1Er7S1KV6nFMmGm81g==","signatures":[{"sig":"MEQCIGt9eLT8p9uGuNwIFJxrmSc9WjKyF4oS0nJhLk01vQVEAiAhO6sJxJ01dGc5J7TVF+w5RBu21JZojKO/AGx/pc1O5A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6603,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPgklACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDkQ//aSsSTZBCPNXiUgUACSJzcORZhshK4n4iueHeb/W6PH2NN84k\r\nUUzRPmUlVhNZGqPLi3CP2BDSDV7p7QGgXPcn+a8PlbhgkTcsavL8AEEb+u3g\r\nqVL7kO+94syuTs6dwJlUlcRXS3FoSx2tyclvHuENrF5hi5gYSfNt4+VPfAkd\r\nnB7RBVPYFyh7FwOHdE+tpcpFjRjNL0we9M7nDfrKajy2bHoUmCHnaP8iLThe\r\nmbzgNW/igsIfb5aLuEUwGv2rBQwSh0g0RPDDFDqtCOkwHahW5yj+HCO1GBWP\r\n9OWKz7QPQC6MNE/fP5B932R/gOY4vdqnphGNyRmS60Xyb+J2y8APOLF6rt00\r\n8mYVyJiy/ibmiehYEb+Y3EChCmsW7q/w6W90v2kcDrJQObfTDSKrGfb6qdZE\r\nLNPA0q/RIH+W1SVjIysQ1ngZ7NAPfPPFbHm9c/R+eJ6aq/qvB1TEj0nC+OT0\r\nyHo+NHAkcOAX6VlMK1ynPfQF7w6r5D7qlgNhCcQI/yzqXfw1XV341ua1WID1\r\nEps6eRmnB/mgtIItp6IN/qqwBzrTbqiFfebgLa9Qq8dUAiHj3EP0/XupdQpJ\r\nORTxrNqL543hriXev7oV+BU9KE9Uk8MBE4gnnKiRrBlVe7gEL+ACIFZsiBS3\r\nSzpdEt0hP0FT2o7H3utyuHmBTFKInPBOBuc=\r\n=vQgG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"hung.hoang_emandai.net","email":"hung.hoang@emandai.net"},"_npmVersion":"6.14.17","description":"This package extends Airbnb's base JS .eslintrc (without React plugins) as an extensible shared config. ## Installation ```bash npm install --save-dev @em-and-ai/eslint-config-server ```","directories":{},"_nodeVersion":"14.21.2","eslintConfig":{"extends":"./index.js"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.37.0"},"peerDependencies":{"eslint":"^6 || ^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-config-server_1.0.1_1681787172942_0.5954931655085287","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-04-17T04:12:50.314Z","modified":"2025-05-16T04:02:04.883Z","1.0.0":"2023-04-17T04:12:50.522Z","1.0.1":"2023-04-18T03:06:13.111Z"},"license":"ISC","keywords":["eslint","airbnb-base","eslint-config-expressjs","eslint-config-airbnb-base-extended","Eslint ExpressJs"],"description":"This package extends Airbnb's base JS .eslintrc (without React plugins) as an extensible shared config. ## Installation ```bash npm install --save-dev @em-and-ai/eslint-config-server ```","maintainers":[{"email":"quan.tran@emandai.net","name":"emandaijsc"}],"readme":"# Eslint configuration for ExpressJs\nThis package extends Airbnb's base JS .eslintrc (without React plugins) as an extensible shared configuration.\n## Installation\n```bash\nnpm install --save-dev @em-and-ai/eslint-config-server\n```\n\n## Usage\n- First of all, you need to install **Eslint**:\n```bash\nnpm install --save-dev eslint\n```\n- Next step, you need to install **Airbnb-base** and **Import Plugin**:\n```bash\nnpm install --save-dev eslint-config-airbnb-base\nnpm install --save-dev eslint-plugin-import@latest\n```\n- Create eslint configuration file (.eslintrc) by yourself or by the following command:\n```bash\nnpm init @eslint/config\n```\n- Because this package base on **Airbnb-base**, so you need to extend **Airbnb-base** first and then extend this package:\n```json\n    \"extends\": [\n        \"airbnb-base\",\n        \"@em-and-ai/server\"\n    ]\n```\n- To check eslint, you need to add line in your package.json:\n```json\n  \"scripts\": {\n    \"lint\": \"eslint --ext .js .\"\n  }\n```\n- If you want to add more script to auto fix. You need to add ``` --fix ``` flag like this:\n```json\n  \"scripts\": {\n    \"lint\": \"eslint --ext .js .\",\n    \"lint:fix\": \"eslint --fix --ext .js .\"\n  }\n```\n## Integration\nYou can integrate this ESLint configuration with Husky.\n- First of all, enable Git hooks:\n```bash\nnpx husky install\n```\n- Then, you can create a hook to check Eslint before commit:\n```bash\nnpx husky add .husky/pre-commit \"npm run lint\"\n```","readmeFilename":"README.md"}