mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
cc765115b2
* ci: add husky with pre-commit and commit-msg hooks This change includes two new hooks as part of our GitHub workflow with husky: * `pre-commit`: Performs linting with golangci-lint and eslint/prettier * `commit-msg`: Ensures that the commit messages conform to our guidelines and will error and provide context to a user when they do not. The `prepare` command which has been included is executed each time a `yarn install` is executed. * ci: extend @commitlint/config-conventional configuration * fix: lint all dot js files
35 lines
1016 B
JavaScript
35 lines
1016 B
JavaScript
module.exports = {
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
project: "tsconfig.json",
|
|
},
|
|
ignorePatterns: ["build/*", "coverage/*", "!.*.js"],
|
|
settings: {
|
|
"import/resolver": {
|
|
typescript: {},
|
|
},
|
|
},
|
|
extends: ["react-app", "plugin:import/errors", "plugin:import/warnings", "plugin:prettier/recommended", "prettier"],
|
|
rules: {
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
groups: ["builtin", "external", "internal"],
|
|
pathGroups: [
|
|
{
|
|
pattern: "react",
|
|
group: "external",
|
|
position: "before",
|
|
},
|
|
],
|
|
pathGroupsExcludedImportTypes: ["react"],
|
|
"newlines-between": "always",
|
|
alphabetize: {
|
|
order: "asc",
|
|
caseInsensitive: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|