-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: disable lint temporarly * ci: disable npm cache * ci: add pnpm cache * ci: add cache dir * feat: add changesets * fix: wrong version for dep * feat: add linting action task
- Loading branch information
Showing
17 changed files
with
160 additions
and
156 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
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,4 @@ | ||
node_modules/ | ||
CHANGELOG.md | ||
**/node_modules/ | ||
**/CHANGELOG.md |
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
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,11 +1,11 @@ | ||
const automaticCommitPattern = /^chore\(release\):.*\[skip ci]/; | ||
|
||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
/* | ||
This resolves a linting conflict between commitlint's body-max-line-length | ||
due to @semantic-release/git putting release notes in the commit body | ||
https://github.com/semantic-release/git/issues/331 | ||
*/ | ||
ignores: [commitMessage => automaticCommitPattern.test(commitMessage)], | ||
extends: ['@commitlint/config-conventional'], | ||
/* | ||
This resolves a linting conflict between commitlint's body-max-line-length | ||
due to @semantic-release/git putting release notes in the commit body | ||
https://github.com/semantic-release/git/issues/331 | ||
*/ | ||
ignores: [commitMessage => automaticCommitPattern.test(commitMessage)], | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
module.exports = { | ||
// Plugins that provide the processors to parse code for linting | ||
plugins: ['sonarjs', 'prettier'], | ||
extends: [ | ||
'plugin:unicorn/recommended', | ||
'plugin:promise/recommended', | ||
'plugin:sonarjs/recommended', | ||
'plugin:security/recommended', | ||
// Uses the recommended rules from eslint | ||
'eslint:recommended', | ||
/* | ||
Uses the recommended rules from eslint-config-airbnb-base | ||
Note: depends on eslint-plugin-import to work | ||
*/ | ||
'airbnb-base', | ||
/* | ||
Enables eslint-plugin-prettier and displays prettier errors as | ||
ESLint errors. Make sure this is always the last configuration | ||
in the extends array. | ||
https://github.com/prettier/eslint-plugin-prettier#recommended-configuration | ||
*/ | ||
'plugin:prettier/recommended', | ||
], | ||
// @babel/eslint-parser and prettier rules go here | ||
rules: { | ||
// https://github.com/prettier/eslint-config-prettier#max-len | ||
'max-len': [ | ||
'error', | ||
{ | ||
code: 80, | ||
ignoreUrls: true, | ||
}, | ||
// Plugins that provide the processors to parse code for linting | ||
plugins: ['sonarjs', 'prettier'], | ||
extends: [ | ||
'plugin:unicorn/recommended', | ||
'plugin:promise/recommended', | ||
'plugin:sonarjs/recommended', | ||
'plugin:security/recommended', | ||
// Uses the recommended rules from eslint | ||
'eslint:recommended', | ||
/* | ||
Uses the recommended rules from eslint-config-airbnb-base | ||
Note: depends on eslint-plugin-import to work | ||
*/ | ||
'airbnb-base', | ||
/* | ||
Enables eslint-plugin-prettier and displays prettier errors as | ||
ESLint errors. Make sure this is always the last configuration | ||
in the extends array. | ||
https://github.com/prettier/eslint-plugin-prettier#recommended-configuration | ||
*/ | ||
'plugin:prettier/recommended', | ||
], | ||
// https://stackoverflow.com/questions/44939304/eslint-should-be-listed-in-the-projects-dependencies-not-devdependencies | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
devDependencies: true, | ||
}, | ||
], | ||
'unicorn/prefer-module': 0, | ||
}, | ||
// @babel/eslint-parser and prettier rules go here | ||
rules: { | ||
// https://github.com/prettier/eslint-config-prettier#max-len | ||
'max-len': [ | ||
'error', | ||
{ | ||
code: 80, | ||
ignoreUrls: true, | ||
}, | ||
], | ||
// https://stackoverflow.com/questions/44939304/eslint-should-be-listed-in-the-projects-dependencies-not-devdependencies | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
devDependencies: true, | ||
}, | ||
], | ||
'unicorn/prefer-module': 0, | ||
}, | ||
}; |
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,8 +1,8 @@ | ||
module.exports = { | ||
plugins: ['jest', 'jest-dom', 'jest-formatting'], | ||
extends: [ | ||
'plugin:jest/recommended', | ||
'plugin:jest-dom/recommended', | ||
'plugin:jest-formatting/recommended', | ||
], | ||
plugins: ['jest', 'jest-dom', 'jest-formatting'], | ||
extends: [ | ||
'plugin:jest/recommended', | ||
'plugin:jest-dom/recommended', | ||
'plugin:jest-formatting/recommended', | ||
], | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
module.exports = { | ||
// Plugins that provide the processors to parse code for linting | ||
plugins: ['sonarjs', '@typescript-eslint', 'prettier'], | ||
/* | ||
A parser that converts TypeScript into an ESTree-compatible | ||
form so it can be used in ESLint. | ||
*/ | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
'plugin:unicorn/recommended', | ||
'plugin:promise/recommended', | ||
'plugin:sonarjs/recommended', | ||
'plugin:security/recommended', | ||
// Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
'plugin:@typescript-eslint/recommended', | ||
// Plugins that provide the processors to parse code for linting | ||
plugins: ['sonarjs', '@typescript-eslint', 'prettier'], | ||
/* | ||
Uses the recommended rules from eslint-config-airbnb-typescript | ||
depends on @typescript-eslint/eslint-plugin | ||
and eslint-plugin-import to work | ||
A parser that converts TypeScript into an ESTree-compatible | ||
form so it can be used in ESLint. | ||
*/ | ||
'airbnb-typescript/base', | ||
/* | ||
Enables eslint-plugin-prettier and displays prettier errors as | ||
ESLint errors. Make sure this is always the last configuration | ||
in the extends array. | ||
https://github.com/prettier/eslint-plugin-prettier#recommended-configuration | ||
*/ | ||
'plugin:prettier/recommended', | ||
], | ||
// @typescript-eslint/parser and prettier rules go here | ||
rules: { | ||
// https://github.com/prettier/eslint-config-prettier#max-len | ||
'max-len': [ | ||
'error', | ||
{ | ||
code: 80, | ||
ignoreUrls: true, | ||
}, | ||
], | ||
// https://stackoverflow.com/questions/44939304/eslint-should-be-listed-in-the-projects-dependencies-not-devdependencies | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
devDependencies: true, | ||
}, | ||
parser: '@typescript-eslint/parser', | ||
extends: [ | ||
'plugin:unicorn/recommended', | ||
'plugin:promise/recommended', | ||
'plugin:sonarjs/recommended', | ||
'plugin:security/recommended', | ||
// Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
'plugin:@typescript-eslint/recommended', | ||
/* | ||
Uses the recommended rules from eslint-config-airbnb-typescript | ||
depends on @typescript-eslint/eslint-plugin | ||
and eslint-plugin-import to work | ||
*/ | ||
'airbnb-typescript/base', | ||
/* | ||
Enables eslint-plugin-prettier and displays prettier errors as | ||
ESLint errors. Make sure this is always the last configuration | ||
in the extends array. | ||
https://github.com/prettier/eslint-plugin-prettier#recommended-configuration | ||
*/ | ||
'plugin:prettier/recommended', | ||
], | ||
'unicorn/prefer-module': 0, | ||
}, | ||
// @typescript-eslint/parser and prettier rules go here | ||
rules: { | ||
// https://github.com/prettier/eslint-config-prettier#max-len | ||
'max-len': [ | ||
'error', | ||
{ | ||
code: 80, | ||
ignoreUrls: true, | ||
}, | ||
], | ||
// https://stackoverflow.com/questions/44939304/eslint-should-be-listed-in-the-projects-dependencies-not-devdependencies | ||
'import/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
devDependencies: true, | ||
}, | ||
], | ||
'unicorn/prefer-module': 0, | ||
}, | ||
}; |
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,4 @@ | ||
/* eslint-disable sonarjs/no-duplicate-string */ | ||
module.exports = { | ||
'*.{js,jsx,ts,tsx}': ['prettier --cache --write', 'eslint --cache --fix'], | ||
'*.{js,jsx,ts,tsx}': ['prettier --cache --write', 'eslint --cache --fix'], | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
'*.{yml,yaml}': ['prettier --cache --write', 'yamllint --strict .'], | ||
'.github/workflows/*.{yml,yaml}': ['actionlint'], | ||
'*.{yml,yaml}': ['prettier --cache --write', 'yamllint --strict .'], | ||
'.github/workflows/*.{yml,yaml}': ['actionlint'], | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
module.exports = { | ||
endOfLine: 'auto', | ||
// https://prettier.io/docs/en/options.html#print-width | ||
printWidth: 80, | ||
tabWidth: 2, | ||
arrowParens: 'avoid', | ||
singleQuote: true, | ||
semi: true, | ||
trailingComma: 'es5', | ||
bracketSpacing: true, | ||
overrides: [ | ||
{ | ||
files: ['*.html'], | ||
options: { | ||
// disable to prevent conflicts with html-validate | ||
trailingComma: 'none', | ||
// https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting | ||
htmlWhitespaceSensitivity: 'css', | ||
singleAttributePerLine: true, | ||
}, | ||
}, | ||
], | ||
endOfLine: 'auto', | ||
// https://prettier.io/docs/en/options.html#print-width | ||
printWidth: 80, | ||
tabWidth: 2, | ||
arrowParens: 'avoid', | ||
singleQuote: true, | ||
semi: true, | ||
trailingComma: 'es5', | ||
bracketSpacing: true, | ||
overrides: [ | ||
{ | ||
files: ['*.html'], | ||
options: { | ||
// disable to prevent conflicts with html-validate | ||
trailingComma: 'none', | ||
// https://prettier.io/blog/2018/11/07/1.15.0.html#whitespace-sensitive-formatting | ||
htmlWhitespaceSensitivity: 'css', | ||
singleAttributePerLine: 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"rules": [ | ||
{ | ||
"id": "@secretlint/secretlint-rule-preset-recommend" | ||
} | ||
] | ||
"rules": [ | ||
{ | ||
"id": "@secretlint/secretlint-rule-preset-recommend" | ||
} | ||
] | ||
} |
Oops, something went wrong.