Skip to content

Commit

Permalink
chore: update lint-related configurations (#7)
Browse files Browse the repository at this point in the history
* chore: update lint-related configurations

* chore: update lint-related configurations

* chore: update lint-related configurations

* chore: update lint-related configurations

* chore: update lint-related configurations

* chore: add some comments

* chore: add some comments and comment sqlRule code block

* chore: update lint-related configurations

* Update packages/eslint-config/index.js

Co-authored-by: Gao Sun <[email protected]>

Co-authored-by: Gao Sun <[email protected]>
  • Loading branch information
darcyYe and gao-sun authored Dec 16, 2021
1 parent 7a59a36 commit b5e6832
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,20 +251,8 @@ const fpRules = {

/** @type {import('eslint').Linter.RulesRecord} **/
const sqlRules = {
'sql/format': [
2,
{
ignoreExpressions: false,
ignoreInline: true,
ignoreTagless: false,
ignoreStartWithNewLine: true,
},
{
spaces: 2,
},
],
'sql/no-unsafe-query': [
2,
'error', // Warn use of SQL inside of template literals without the sql tag
{
allowLiteral: false,
},
Expand Down Expand Up @@ -322,7 +310,7 @@ module.exports = {
// https://github.com/prettier/eslint-config-prettier#curly
curly: ['error', 'all'],
/**
* eslint-config-xo-typescript disabled this rule by default, need to enable it
* `eslint-config-xo-typescript` disabled this rule by default, need to enable it
* https://github.com/xojs/eslint-config-xo-typescript/blob/main/index.js#L446
*/
'@typescript-eslint/no-non-null-assertion': 'error',
Expand Down

0 comments on commit b5e6832

Please sign in to comment.