Skip to content

Commit

Permalink
chore: add lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Zork33 committed Oct 30, 2023
1 parent 9115a69 commit 54f2c3d
Show file tree
Hide file tree
Showing 5 changed files with 9,912 additions and 5,876 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/generated/**
56 changes: 56 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"env": {
"node": true,
"commonjs": true
},
"extends": [
"eslint:recommended",
"airbnb-base",
"airbnb-typescript/base",
"plugin:unicorn/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"unicorn",
"import",
"prefer-arrow-functions"
],
"parserOptions": {
"project": "tsconfig.eslint.json"
},
"rules": {
"@typescript-eslint/lines-between-class-members": "off",
"unicorn/no-array-reduce": "off",
"no-continue": "off",
"no-restricted-syntax": "off",
"unicorn/prefer-node-protocol": "off",
"class-methods-use-this": "off",
"@typescript-eslint/no-unused-vars": "off",
"import/prefer-default-export": "off",
"comma-dangle": ["error", "always-multiline"],
"indent": "off",
"@typescript-eslint/indent": ["error", 4],
"max-len": ["error", 140],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/prefer-optional-chain": "error",
"prefer-arrow-functions/prefer-arrow-functions": ["error"],
"unicorn/prevent-abbreviations": "off",
"newline-after-var": "error",
"newline-before-return": "error",
"no-plusplus": "off",
"unicorn/import-style": "off",
"@typescript-eslint/no-var-requires": "off",
"no-underscore-dangle": ["error", {
"allowAfterThis": true,
"allowAfterSuper": false
}],
"unicorn/no-null": "off",
"import/no-extraneous-dependencies": ["error", {
"devDependencies": true
}],
"import/no-cycle": "off",
"linebreak-style": "off"
}
}
Loading

0 comments on commit 54f2c3d

Please sign in to comment.