Skip to content

Commit

Permalink
replaced eslint with standard takitotech format
Browse files Browse the repository at this point in the history
  • Loading branch information
TriStarGod committed Jul 21, 2022
1 parent b4c5b92 commit ad8aae8
Showing 1 changed file with 1 addition and 66 deletions.
67 changes: 1 addition & 66 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,68 +1,3 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2018,
// sourceType: "module",
},
env: {
browser: true,
es6: true,
node: true,
},
extends: [
"eslint:recommended",
// typescript
"plugin:@typescript-eslint/recommended",
// import sort
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
// Prettier plugin and recommended rules
"plugin:prettier/recommended",
],
rules: {
"import/no-named-as-default": 0,
// sort-imports doesn't auto sort by lines
"import/order": [
"error",
{
groups: ["builtin", "external", "internal"],
pathGroups: [
{
pattern: "react",
group: "external",
position: "before",
},
],
pathGroupsExcludedImportTypes: ["react"],
"newlines-between": "never",
alphabetize: {
order: "asc",
caseInsensitive: true,
},
},
],
"import/prefer-default-export": 0,
// "@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/ban-ts-comment": [
2,
{
// use instead of @ts-ignore and provide explanation
"ts-expect-error": "allow-with-description",
minimumDescriptionLength: 2,
},
],
// ignore _vars or _args since its intended
"@typescript-eslint/no-unused-vars": [
"error",
{ varsIgnorePattern: "^_", argsIgnorePattern: "^_" },
],
// "@typescript-eslint/explicit-module-boundary-types": 0, // export modules must have explicit return types
// illogical since typescript already warns and you add bangs ! only if you are sure
"@typescript-eslint/no-non-null-assertion": 0,
// ------ Revert when possible -----------
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
},
extends: ["eslint-config-takitotech/package-node"],
};

0 comments on commit ad8aae8

Please sign in to comment.