https://github.com/paalamugan/es6-nodejs-eslint-without-babel
Convert backend es6 node eslint without babel.
https://github.com/paalamugan/es6-nodejs-eslint-without-babel
Last synced: about 1 month ago
JSON representation
Convert backend es6 node eslint without babel.
- Host: GitHub
- URL: https://github.com/paalamugan/es6-nodejs-eslint-without-babel
- Owner: paalamugan
- License: mit
- Created: 2020-11-15T20:01:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-15T20:15:02.000Z (over 4 years ago)
- Last Synced: 2024-11-19T10:42:39.899Z (3 months ago)
- Language: JavaScript
- Size: 34.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node Version
```node
node - v14.8.0
npm - 6.14.7
```- If node version doesn't exsit automatically Installed specific node version via nvm.
```shell
nvm use
```- Install node_modules dependencies.
```shell
npm install
```## Get Started
- To development mode
```shell
npm run dev
```- To production mode
```shell
npm run prod
```- Watching files changes
```shell
npm run watch
```## Add support for ES6 modules
- Add the line `"type": "module"` to your package.json.
- Add a "start" script in the "scripts" property like:
`"start": "node --es-module-specifier-resolution=node ./bin/www"`### Tips
- Experimental flag
```shell
--es-module-specifier-resolution
```- To configure eslint in node project
```shell
npm install -D eslint && npx eslint --init
```