-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe7c85e
commit 5af21c9
Showing
11 changed files
with
1,488 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
/* eslint-disable unicorn/prevent-abbreviations */ | ||
/** @type {import('eslint-doc-generator').GenerateOptions} */ | ||
const config = { | ||
// configEmoji: [['recommended', '✅']], | ||
// ignoreConfig: ['all', 'flat/all', 'flat/recommended'], | ||
ignoreDeprecatedRules: true, | ||
// ruleDocNotices: [], | ||
// ruleDocSectionExclude: [], | ||
// ruleDocSectionInclude: [], | ||
ruleDocTitleFormat: 'desc', | ||
ruleListColumns: [ | ||
'name', | ||
'description', | ||
'configsError', | ||
'configsWarn', | ||
'fixable', | ||
'hasSuggestions', | ||
'requiresTypeChecking', | ||
], | ||
// ruleListSplit: [], | ||
// urlConfigs: 'https://github.com/...#preset-configs-eslintconfigjs', | ||
}; | ||
|
||
module.exports = config; | ||
// configEmoji: [['recommended', '✅']], | ||
// ignoreConfig: ['all', 'flat/all', 'flat/recommended'], | ||
ignoreDeprecatedRules: true, | ||
// ruleDocNotices: [], | ||
// ruleDocSectionExclude: [], | ||
// ruleDocSectionInclude: [], | ||
ruleDocTitleFormat: "desc", | ||
ruleListColumns: [ | ||
"name", | ||
"description", | ||
"configsError", | ||
"configsWarn", | ||
"fixable", | ||
"hasSuggestions", | ||
"requiresTypeChecking", | ||
], | ||
// ruleListSplit: [], | ||
// urlConfigs: 'https://github.com/...#preset-configs-eslintconfigjs', | ||
}; | ||
|
||
// eslint-disable-next-line no-undef | ||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import pluginJs from "@eslint/js"; | ||
import importPlugin from "eslint-plugin-import"; | ||
import simpleImportSort from "eslint-plugin-simple-import-sort"; | ||
import eslintPluginUnicorn from "eslint-plugin-unicorn"; | ||
import globals from "globals"; | ||
import tseslint from "typescript-eslint"; | ||
|
||
/** @type {import('eslint').Linter.Config[]} */ | ||
export default [ | ||
{ files: ["**/*.{js,mjs,cjs,ts}"] }, | ||
{ ignores: ["lib/**"] }, | ||
{ languageOptions: { globals: globals.browser } }, | ||
pluginJs.configs.recommended, | ||
...tseslint.configs.recommended, | ||
{ | ||
plugins: { | ||
import: importPlugin, | ||
"simple-import-sort": simpleImportSort, | ||
}, | ||
rules: { | ||
"import/first": "error", | ||
"import/newline-after-import": "error", | ||
"simple-import-sort/imports": "error", | ||
"simple-import-sort/exports": "error", | ||
"@typescript-eslint/array-type": ["error", { default: "generic" }], | ||
}, | ||
}, | ||
eslintPluginUnicorn.configs["flat/recommended"], | ||
{ | ||
rules: { | ||
// Already covered | ||
"unicorn/prefer-module": "off", | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
// eslint-disable-next-line no-undef | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
testMatch: ['**/*.spec.ts'], | ||
}; | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
testMatch: ["**/*.spec.ts"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.