Skip to content

Commit

Permalink
Apply eslint-config-airbnb
Browse files Browse the repository at this point in the history
  • Loading branch information
youngkiu committed Sep 25, 2022
1 parent 4e4a04c commit e66279c
Show file tree
Hide file tree
Showing 11 changed files with 812 additions and 99 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"extends": "airbnb",
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"import/prefer-default-export": "off",
"import/extensions": [
"off"
],
"no-console": [
"error", { "allow": ["warn", "error"] }
]
}
}
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
[![Node.js CI](https://github.com/youngkiu/schema-to-erd/actions/workflows/node.js.yml/badge.svg)](https://github.com/youngkiu/schema-to-erd/actions/workflows/node.js.yml)
[![Node.js Package](https://github.com/youngkiu/schema-to-erd/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/youngkiu/schema-to-erd/actions/workflows/npm-publish.yml)

[![npm version](https://badge.fury.io/js/schema-to-erd.svg)](https://badge.fury.io/js/schema-to-erd)
[![NPM downloads](http://img.shields.io/npm/dm/schema-to-erd.svg?style=flat-square)](http://www.npmtrends.com/schema-to-erd)

# schema-to-erd
Generate ERD UML file from Schema DDL file

Expand All @@ -21,7 +24,7 @@ const { schemaToErd } = require('schema-to-erd');
schemaToErd('./schema_samples/sakila-schema.sql');
```

### Sample Schema file
### Sample Schema files

1. [Sakila Sample Database](https://dev.mysql.com/doc/index-other.html)
2. [Employees Sample Database](https://dev.mysql.com/doc/employee/en/) - https://github.com/datacharmer/test_db
Expand Down
16 changes: 8 additions & 8 deletions dist/main.cjs

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions dist/main.mjs

Large diffs are not rendered by default.

Loading

0 comments on commit e66279c

Please sign in to comment.