Skip to content

Commit

Permalink
Merge pull request #3 from mmRoshani/feature/improvements
Browse files Browse the repository at this point in the history
feat: implemented linting
  • Loading branch information
mmRoshani authored Jul 27, 2022
2 parents 5d42233 + 7271f1b commit 81a391a
Show file tree
Hide file tree
Showing 24 changed files with 5,791 additions and 1,705 deletions.
100 changes: 100 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"env": {
"node": true,
"es2021": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import",
"prettier"
],
"extends": [
"standard",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-interface": "off",
"arrow-parens": [
"error",
"as-needed"
],
"import/extensions": [
2,
{
"ts": "never",
"js": "always",
"json": "always"
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.test.ts",
"webpack.config.js",
"jest.config.ts",
"example"
],
"optionalDependencies": [
"**/*.test.ts"
],
"peerDependencies": [
"**/*.test.ts"
]
}
],
"max-len": [
"error",
{
"code": 80,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreTemplateLiterals": true,
"ignoreTrailingComments": true,
"ignoreStrings": true,
"ignoreUrls": true
}
],
"newline-before-return": "error",
"object-curly-spacing": [
"error",
"always"
],
"object-shorthand": [
"error",
"always"
],
"prefer-const": "error",
"prettier/prettier": [
"error",
{
"arrowParens": "avoid",
"bracketSpacing": true,
"printWidth": 80,
"quoteProps": "as-needed",
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none"
}
],
"radix": [
"error",
"as-needed"
],
"spaced-comment": [
"error",
"always"
],
"curly": [
"error",
"multi"
]
}
}
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ src/

.git/


node_modules/

typings
Expand Down
6 changes: 3 additions & 3 deletions example/.sequelizerc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const path = require("path");
const path = require("path")

module.exports = {
config: path.resolve("db", "config.json"),
"migrations-path": path.resolve("db", "migrations"),
"models-path": path.resolve("db", "models"),
"seeders-path": path.resolve("db", "seeders"),
};
"seeders-path": path.resolve("db", "seeders")
}
Loading

0 comments on commit 81a391a

Please sign in to comment.