mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-03 20:12:51 +00:00
fix: build
This commit is contained in:
@@ -13,12 +13,11 @@ module.exports = {
|
||||
},
|
||||
extends: [
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'plugin:prettier/recommended',
|
||||
'plugin:prettier/recommended',
|
||||
'plugin:jsdoc/recommended',
|
||||
'plugin:unicorn/recommended',
|
||||
'prettier'
|
||||
],
|
||||
plugins: ['eslint-plugin-unicorn', 'eslint-plugin-jsdoc', 'prettier'],
|
||||
plugins: ['eslint-plugin-unicorn', 'eslint-plugin-jsdoc'],
|
||||
settings: {
|
||||
jsdoc: {
|
||||
mode: 'typescript',
|
||||
@@ -43,6 +42,9 @@ module.exports = {
|
||||
],
|
||||
'unicorn/no-nested-ternary': 'off',
|
||||
'unicorn/better-regex': 'off',
|
||||
'unicorn/no-typeof-undefined': 'off',
|
||||
'unicorn/no-non-null-assertion': 'off',
|
||||
'unicorn/prefer-array-some': 'off',
|
||||
|
||||
'jsdoc/no-types': 'error',
|
||||
'jsdoc/require-param': 'off',
|
||||
@@ -82,22 +84,6 @@ module.exports = {
|
||||
'@typescript-eslint/lines-between-class-members': ['error', 'always'],
|
||||
'@typescript-eslint/no-explicit-any': 'error',
|
||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||
|
||||
'prettier/prettier': [
|
||||
'error',
|
||||
{
|
||||
tabWidth: 2,
|
||||
printWidth: 110,
|
||||
useTabs: false,
|
||||
semi: true,
|
||||
singleQuote: true,
|
||||
quoteProps: 'consistent',
|
||||
trailingComma: 'all',
|
||||
bracketSpacing: false,
|
||||
arrowParens: 'avoid',
|
||||
endOfLine: 'lf',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
2652
configuration/eslint-config/package-lock.json
generated
2652
configuration/eslint-config/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,47 +1,42 @@
|
||||
{
|
||||
"name": "@openstapps/eslint-config",
|
||||
"version": "1.1.0",
|
||||
"main": "index.js",
|
||||
"description": "A collection of configuration base files for StApps projects.",
|
||||
"scripts": {
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
|
||||
"test": "eslint -c index.js test/test-file.ts",
|
||||
"prepublishOnly": "npm ci && npm test",
|
||||
"postversion": "npm run changelog",
|
||||
"preversion": "npm run prepublishOnly",
|
||||
"push": "git push && git push origin \"v$npm_package_version\""
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@gitlab.com:openstapps/eslint-config.git"
|
||||
},
|
||||
"version": "2.1.0",
|
||||
"license": "GPL-3.0-only",
|
||||
"repository": "git@gitlab.com:openstapps/eslint-config.git",
|
||||
"author": "Thea Schöbl",
|
||||
"contributors": [
|
||||
"Rainer Killinger <mail-openstapps@killinger.co>"
|
||||
],
|
||||
"license": "GPL-3.0-only",
|
||||
"dependencies": {},
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
|
||||
"postversion": "npm run changelog",
|
||||
"prepublishOnly": "npm ci && npm test",
|
||||
"preversion": "npm run prepublishOnly",
|
||||
"push": "git push && git push origin \"v$npm_package_version\"",
|
||||
"test": "eslint -c index.js test/test-file.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openstapps/configuration": "0.31.0",
|
||||
"@typescript-eslint/eslint-plugin": ">=5.29.0",
|
||||
"@typescript-eslint/parser": ">=5.29.0",
|
||||
"@typescript-eslint/eslint-plugin": "5.49.0",
|
||||
"@typescript-eslint/parser": "5.49.0",
|
||||
"conventional-changelog-cli": "2.2.2",
|
||||
"eslint": ">=8.18.0",
|
||||
"eslint-config-prettier": ">=8.5.0",
|
||||
"eslint-plugin-jsdoc": ">=39.3.3",
|
||||
"eslint-plugin-prettier": ">=4.0.0",
|
||||
"eslint-plugin-unicorn": ">=42.0.0",
|
||||
"prettier": ">=2.7.1",
|
||||
"eslint": "8.33.0",
|
||||
"eslint-config-prettier": "8.6.0",
|
||||
"eslint-plugin-jsdoc": "39.7.4",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"eslint-plugin-unicorn": "45.0.2",
|
||||
"prettier": "2.8.3",
|
||||
"typescript": "4.4.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@typescript-eslint/eslint-plugin": ">=5.29.0",
|
||||
"@typescript-eslint/parser": ">=5.29.0",
|
||||
"eslint": ">=8.18.0",
|
||||
"eslint-config-prettier": ">=8.5.0",
|
||||
"eslint-plugin-jsdoc": ">=39.3.3",
|
||||
"eslint-plugin-prettier": ">=4.0.0",
|
||||
"eslint-plugin-unicorn": ">=41.0.1",
|
||||
"prettier": ">=2.7.1"
|
||||
"@typescript-eslint/eslint-plugin": "5.49.0",
|
||||
"@typescript-eslint/parser": "5.49.0",
|
||||
"eslint": "8.33.0",
|
||||
"eslint-config-prettier": "8.6.0",
|
||||
"eslint-plugin-jsdoc": "39.7.4",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"eslint-plugin-unicorn": "45.0.2",
|
||||
"prettier": "2.8.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* Simple TS source file to get linted
|
||||
* Can be used to verify new/changed rule behavior
|
||||
*/
|
||||
function addNumbers(a: number, b: number) {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
const sum: number = addNumbers(10, 15);
|
||||
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('Sum of the two numbers is: ' + sum);
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "./node_modules/@openstapps/configuration/tsconfig.json"
|
||||
}
|
||||
Reference in New Issue
Block a user