-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#187454781 Configure eslint and git pre-commit #9
Conversation
1303b99
to
b26977a
Compare
9f79022
to
36c9fd1
Compare
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected '}'.
}, | ||
{ | ||
files: ["*.ts", "*.js"], | ||
...tseslint.configs.disableTypeChecked, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ')' and instead saw 'tseslint'.
Expected '}' to match '{' from line 18 and instead saw '...'.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
Unrecoverable syntax error. (38% scanned).
ignores: ["**/__test__", "**/*.json"], | ||
}, | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'spread/rest operator' is only available in ES6 (use 'esversion: 6').
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); | |||
const tseslint = require("typescript-eslint"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
@@ -0,0 +1,51 @@ | |||
const eslint = require("@eslint/js"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
36c9fd1
to
f9dbcb8
Compare
f9dbcb8
to
630f573
Compare
}); | ||
}, | ||
async up(queryInterface, Sequelize) { | ||
await queryInterface.createTable("users", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
}); | ||
}, | ||
async up(queryInterface, Sequelize) { | ||
await queryInterface.createTable("users", { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected an assignment or function call and instead saw an expression.
Missing semicolon.
10bb473
to
74adf58
Compare
allowNull: false, | ||
type: Sequelize.DATE, | ||
}, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrecoverable syntax error. (88% scanned).
}, | ||
}); | ||
}, | ||
async up(queryInterface, Sequelize) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ':' and instead saw 'up'.
Expected '}' to match '{' from line 5 and instead saw '{'.
Missing semicolon.
allowNull: false, | ||
type: Sequelize.DATE, | ||
}, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrecoverable syntax error. (88% scanned).
}, | ||
}); | ||
}, | ||
async up(queryInterface, Sequelize) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ':' and instead saw 'up'.
Expected '}' to match '{' from line 5 and instead saw '{'.
Missing semicolon.
}, | ||
], | ||
{}, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ')' and instead saw ';'.
Expected an identifier and instead saw ')'.
Missing semicolon.
Unexpected ')'.
Unrecoverable syntax error. (78% scanned).
async down(queryInterface, Sequelize) { | ||
await queryInterface.bulkDelete("users", null, {}); | ||
}, | ||
async up(queryInterface, Sequelize) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected ':' and instead saw 'up'.
Expected '}' to match '{' from line 3 and instead saw '{'.
Missing semicolon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 19755 lines exceeds the maximum allowed for the inline comments feature.
Code Climate has analyzed commit 74adf58 and detected 2 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 30.7% (60% is the threshold). This pull request will bring the total coverage in the repository to 52.5% (0.0% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Job @GarrixA !
What I did is:
What does this do
Here is how you can check it
Run
npm install
to install all the packagesRun
npm run check
to format your codesRun
npm run lint
to check linting errorsAfter knowing how it works you can add commit
Pivotracker ID
#187454781