Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
MAT-1568: Added fieldInfo to generated models
Browse files Browse the repository at this point in the history
Switched from tslint to eslint
Created interface types for the manually created cqm models
Eliminated "any" type usage
  • Loading branch information
Andrew Bird committed Oct 29, 2020
1 parent aaec723 commit 664c7ca
Show file tree
Hide file tree
Showing 980 changed files with 27,246 additions and 2,112 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
dist
node_modules
coverage
.eslintrc.js
56 changes: 56 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"],
},
plugins: ["@typescript-eslint", "eslint-comments", "jest", "promise"],
extends: [
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:eslint-comments/recommended",
"plugin:jest/recommended",
"plugin:promise/recommended",
"prettier",
"prettier/@typescript-eslint",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
env: {
node: true,
browser: true,
jest: true,
},
rules: {
// note you must disable the base rule as it can report incorrect errors
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"no-underscore-dangle": "off",
"lines-between-class-members": ["warn", "always"],
"@typescript-eslint/explicit-function-return-type": ["error"],
"@typescript-eslint/naming-convention": [
"error",
{ selector: "typeLike", format: ["PascalCase"] },
{ selector: "enumMember", format: ["PascalCase"] },
{ selector: "variableLike", format: ["camelCase"] },
{
selector: "interface",
format: ["PascalCase"],
custom: {
regex: "^I[A-Z]",
match: false,
},
},
{
selector: "typeAlias",
format: ["PascalCase"],
custom: {
regex: "^I[A-Z]",
match: false,
},
},
],
"class-methods-use-this": "off",
"jest/no-conditional-expect": "off"
},
};
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
coverage
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ module.exports = {
collectCoverageFrom: [
"src/**/*.ts",
"!**/node_modules/**"
]
],
setupFilesAfterEnv: ["jest-extended"]
};
Loading

0 comments on commit 664c7ca

Please sign in to comment.