-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
5 changed files
with
70 additions
and
173 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,25 +1,3 @@ | ||
{ | ||
"extends": ["@commitlint/config-conventional"], | ||
"rules": { | ||
"header-max-length": [2, "always", 80], | ||
"subject-case": [2, "always", ["lower-case"]], | ||
"type-enum": [ | ||
2, | ||
"always", | ||
[ | ||
"build", | ||
"chore", | ||
"ci", | ||
"docs", | ||
"feat", | ||
"fix", | ||
"perf", | ||
"refactor", | ||
"revert", | ||
"style", | ||
"test", | ||
"sample" | ||
] | ||
] | ||
} | ||
"extends": ["@hadenlabs/commitlint-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,117 +1,25 @@ | ||
module.exports = { | ||
env: { | ||
node: true, | ||
es2021: true, | ||
}, | ||
extends: [ | ||
'standard', | ||
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:import/errors', | ||
'plugin:import/warnings', | ||
'plugin:import/typescript', | ||
'plugin:promise/recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
'prettier', | ||
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
], | ||
plugins: ['prettier'], | ||
settings: { | ||
react: { | ||
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use | ||
}, | ||
'import/resolver': { | ||
'babel-module': {}, | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: 12, | ||
sourceType: 'module', | ||
}, | ||
env: { | ||
browser: true, | ||
jest: true, | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
'standard', | ||
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:import/errors', | ||
'plugin:import/warnings', | ||
'plugin:import/typescript', | ||
'plugin:promise/recommended', | ||
'plugin:react-hooks/recommended', | ||
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. | ||
'plugin:jsx-a11y/recommended', | ||
'prettier', | ||
'prettier/@typescript-eslint', | ||
], | ||
plugins: ['prettier', 'react-hooks', 'jsx-a11y'], | ||
parserOptions: { | ||
ecmaversion: 2018, | ||
project: './tsconfig.json', | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
'import/resolver': { | ||
'babel-module': {}, | ||
}, | ||
}, | ||
rules: { | ||
'react/react-in-jsx-scope': 0, | ||
'ordered-imports': 0, | ||
quotemark: 0, | ||
'no-console': 0, | ||
semicolon: 0, | ||
'jsx-no-lambda': 0, | ||
camelcase: 0, | ||
'@typescript-eslint/interface-name-prefix': 0, | ||
'@typescript-eslint/naming-convention': [ | ||
'error', | ||
{ | ||
selector: 'default', | ||
format: ['camelCase', 'PascalCase'], | ||
leadingUnderscore: 'forbid', | ||
}, | ||
{ | ||
selector: 'class', | ||
format: ['PascalCase'], | ||
}, | ||
{ | ||
selector: 'property', | ||
modifiers: ['readonly'], | ||
format: ['camelCase', 'UPPER_CASE'], | ||
}, | ||
{ | ||
selector: 'memberLike', | ||
modifiers: ['protected'], | ||
format: ['camelCase'], | ||
leadingUnderscore: 'require', | ||
}, | ||
{ | ||
selector: 'memberLike', | ||
modifiers: ['private'], | ||
format: ['camelCase'], | ||
leadingUnderscore: 'require', | ||
}, | ||
{ | ||
selector: 'variable', | ||
format: ['PascalCase', 'camelCase', 'UPPER_CASE'], | ||
}, | ||
{ | ||
selector: 'interface', | ||
format: ['PascalCase'], | ||
prefix: ['I'], | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.tsx'], | ||
rules: { | ||
'react/prop-types': 'off', | ||
}, | ||
}, | ||
], | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
rules: {}, | ||
} |
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 |
---|---|---|
|
@@ -8,4 +8,6 @@ package-lock.json | |
coverage | ||
.mypy_cache/ | ||
.build | ||
CHANGELOG.tpl.md | ||
.terraform | ||
*.tpl.md | ||
*.enc.yaml |
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
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