Compare commits

..

61 Commits

Author SHA1 Message Date
5f32178a27 remove naming convention
All checks were successful
continuous-integration/drone/push Build is passing
2022-10-12 20:48:03 +02:00
ef11b6830f update
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing
2021-12-05 13:48:36 +01:00
c7f615cd65 fix license comment
Some checks failed
continuous-integration/drone/push Build is failing
2021-05-20 12:52:35 +02:00
7c1205e5fa update epp
Some checks failed
continuous-integration/drone/push Build is failing
2021-04-12 07:48:48 +02:00
c3a5819949 union sorting, annotation spacing (1.2)
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-08 09:40:54 +02:00
3c4a47e297 allow config objects to contain camelCase
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-15 21:27:31 +01:00
10fa53b0ea fix
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-11 21:08:18 +01:00
a7aebc6d54 bump version
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-11 21:06:22 +01:00
543b8d50d1 fix
Some checks failed
continuous-integration/drone/push Build is failing
2021-03-11 21:04:33 +01:00
94ff6b5c18 disable id-match
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-11 21:00:03 +01:00
30eb7f5c35 fix naming convention
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-11 20:56:14 +01:00
e623469184 allow any casing in object literals
All checks were successful
continuous-integration/drone/push Build is passing
2021-02-02 14:35:53 +01:00
078b5a02e0 update dependencies
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-26 07:37:03 +01:00
24ebea0ee7 update
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-21 19:15:54 +01:00
20521ce401 update
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-21 19:10:10 +01:00
94e67bba03 update
All checks were successful
continuous-integration/drone/push Build is passing
2020-11-02 19:23:31 +01:00
63835f20b8 bump version
All checks were successful
continuous-integration/drone/push Build is passing
2020-09-11 10:14:58 +02:00
bd25ca99e5 update typescript eslint plugins
Some checks failed
continuous-integration/drone/push Build is failing
2020-09-11 10:14:03 +02:00
2536cef0be update-scanner: automatic update
Some checks failed
continuous-integration/drone/push Build is failing
@typescript-eslint/eslint-plugin: 3.10.1 ==> 4.0.1 major
@typescript-eslint/parser: 3.10.1 ==> 4.0.1 major
eslint: 7.7.0 ==> 7.8.1 minor
eslint-plugin-tsdoc: 0.2.6 ==> 0.2.7 minor
2020-09-07 13:18:11 +02:00
20fe002c32 update-scanner: automatic update
Some checks failed
continuous-integration/drone/push Build is failing
@typescript-eslint/eslint-plugin: 3.9.1 ==> 3.10.1 minor
@typescript-eslint/parser: 3.9.1 ==> 3.10.1 minor
2020-08-30 15:45:20 +02:00
a2130e5f56 update-scanner: automatic update
Some checks failed
continuous-integration/drone/push Build is failing
@typescript-eslint/eslint-plugin: 3.9.0 ==> 3.9.1 minor
@typescript-eslint/parser: 3.9.0 ==> 3.9.1 minor
eslint: 7.6.0 ==> 7.7.0 minor
2020-08-19 08:10:18 +02:00
f5a26666d5 update-scanner: automatic update
Some checks failed
continuous-integration/drone/push Build is failing
@typescript-eslint/eslint-plugin: 3.8.0 ==> 3.9.0 minor
@typescript-eslint/parser: 3.8.0 ==> 3.9.0 minor
2020-08-14 08:02:44 +02:00
9e334fca01 fix drone config
Some checks failed
continuous-integration/drone/push Build is failing
2020-08-07 08:12:21 +02:00
4a7fac62c9 update-scanner: automatic update
Some checks failed
continuous-integration/drone/push Build is failing
@typescript-eslint/eslint-plugin: 3.7.0 ==> 3.8.0 minor
@typescript-eslint/parser: 3.7.0 ==> 3.8.0 minor
eslint: 7.5.0 ==> 7.6.0 minor
2020-08-04 12:40:26 +02:00
4db5c5238d update-scanner: automatic update
All checks were successful
continuous-integration/drone/push Build is passing
@typescript-eslint/eslint-plugin: 3.6.1 ==> 3.7.0 minor
@typescript-eslint/parser: 3.6.1 ==> 3.7.0 minor
2020-07-25 16:46:42 +02:00
c49e732d2c update-scanner: automatic update
All checks were successful
continuous-integration/drone/push Build is passing
@sapphirecode/eslint-config-es6: 1.1.16 ==> 1.1.17 minor
2020-07-19 14:53:10 +02:00
dd1ec2a4ad fix
Some checks failed
continuous-integration/drone/push Build is failing
2020-07-19 14:31:33 +02:00
80a0642323 update-scanner: automatic update
Some checks failed
continuous-integration/drone/push Build is failing
eslint: 7.4.0 ==> 7.5.0 minor
eslint-plugin-tsdoc: 0.2.5 ==> 0.2.6 minor
2020-07-19 11:57:16 +02:00
5b98435154 update-scanner: automatic update
All checks were successful
continuous-integration/drone/push Build is passing
@typescript-eslint/eslint-plugin: 3.6.0 ==> 3.6.1 minor
@typescript-eslint/parser: 3.6.0 ==> 3.6.1 minor
2020-07-16 10:47:05 +02:00
d173b89944 update-scanner: automatic update
All checks were successful
continuous-integration/drone/push Build is passing
@sapphirecode/eslint-config-es6: 1.1.14 ==> 1.1.16 minor
@typescript-eslint/eslint-plugin: 3.5.0 ==> 3.6.0 minor
@typescript-eslint/parser: 3.5.0 ==> 3.6.0 minor
eslint: 7.3.1 ==> 7.4.0 minor
2020-07-10 12:17:49 +02:00
a366c156b2 switch to drone
All checks were successful
continuous-integration/drone/push Build is passing
2020-07-10 08:29:46 +02:00
14a98b68a7 update-scanner: automatic update
@sapphirecode/eslint-config-es6: 1.1.12 ==> 1.1.14 minor
@typescript-eslint/eslint-plugin: 3.4.0 ==> 3.5.0 minor
@typescript-eslint/parser: 3.4.0 ==> 3.5.0 minor
eslint-plugin-import: 2.21.2 ==> 2.22.0 minor
2020-07-01 09:16:26 +02:00
b70eac0b86 update-scanner: automatic update
@sapphirecode/eslint-config-es6: 1.1.11 ==> 1.1.12 minor
2020-06-24 12:36:20 +02:00
653c2ed70c update 2020-06-24 10:24:58 +02:00
b2d853559e update-scanner: automatic update
@sapphirecode/eslint-config-es6: 1.1.9 ==> 1.1.10 minor
eslint: 7.2.0 ==> 7.3.0 minor
2020-06-22 08:06:35 +02:00
06baf2ad8b update-scanner: automatic update
@typescript-eslint/eslint-plugin: 3.2.0 ==> 3.3.0 minor
@typescript-eslint/parser: 3.2.0 ==> 3.3.0 minor
2020-06-19 12:53:51 +02:00
221d372851 update-scanner: automatic update
@sapphirecode/eslint-config-es6: 1.1.8 ==> 1.1.9 minor
@typescript-eslint/eslint-plugin: 3.1.0 ==> 3.2.0 minor
@typescript-eslint/parser: 3.1.0 ==> 3.2.0 minor
eslint: 7.1.0 ==> 7.2.0 minor
eslint-plugin-import: 2.20.2 ==> 2.21.2 minor
2020-06-11 20:13:27 +02:00
1a580ab4af update 2020-06-02 08:27:57 +02:00
6cc7ab36d1 update-scanner: automatic update
@typescript-eslint/eslint-plugin: 3.0.0 ==> 3.0.2 minor
@typescript-eslint/parser: 3.0.0 ==> 3.0.2 minor
2020-05-28 08:43:32 +02:00
4f3466ade6 update-scanner: automatic update
@sapphirecode/eslint-config-es6: 1.1.6 ==> 1.1.7 minor
2020-05-23 18:02:14 +02:00
feb3353be4 update 2020-05-23 17:51:07 +02:00
f2ca1cc9af update-scanner: automatic update
@sapphirecode/eslint-config-es6: 1.1.1 ==> 1.1.6 minor
2020-05-17 19:22:02 +02:00
4c34ae0e78 remove broken package quality 2020-05-17 19:13:29 +02:00
64d767d2d6 license 2020-05-17 19:07:23 +02:00
b324c25a00 update jenkins.js 2020-05-15 13:16:21 +02:00
e43cc4ff4e unix line endings 2020-05-13 21:28:17 +02:00
5b31ea8de7 fix 2020-05-13 21:23:59 +02:00
ccbbe2d914 deactivate node rule 2020-05-13 21:20:17 +02:00
83e2f43fc0 update to eslint 7 2020-05-13 20:57:16 +02:00
037fe41c27 adapt jenkins.js 2020-05-13 16:03:44 +02:00
1b5db88a24 adapt jenkins.js 2020-05-13 15:52:55 +02:00
67f98e5c60 update-scanner: automatic update
@typescript-eslint/eslint-plugin: 2.31.0 ==> 2.33.0 minor
@typescript-eslint/parser: 2.31.0 ==> 2.33.0 minor
eslint: 6.8.0 ==> 7.0.0 major
2020-05-13 11:02:30 +02:00
c271775a30 update-scanner: automatic update
@sapphirecode/eslint-config-es6: 1.0.36 ==> 1.0.37 minor
2020-05-08 13:24:46 +02:00
4d1b379a54 fix 2020-05-07 19:19:38 +02:00
01e5e04e82 tsdoc 2020-05-07 19:16:22 +02:00
1e02ebb94b update-scanner: automatic update
@sapphirecode/eslint-config-es6: 1.0.35 ==> 1.0.36 minor
2020-05-07 10:13:08 +02:00
36147f470c fix 2020-05-06 17:45:29 +02:00
d14a08034b conflicting rule 2020-05-06 15:46:34 +02:00
10a9026442 update 2020-05-06 08:30:28 +02:00
7759147cbc update 2020-05-06 08:27:03 +02:00
8e00f5be8d remove jsdoc 2020-05-06 08:24:45 +02:00
12 changed files with 934 additions and 1033 deletions

14
.drone.yml Normal file
View File

@ -0,0 +1,14 @@
kind: pipeline
name: default
steps:
- name: setup
image: registry:5000/node-build
commands:
- yarn
- curl https://git.scode.ovh/Timo/standard/raw/branch/master/ci.js > ci.js
- name: build
image: registry:5000/node-build
commands:
- node ci.js

View File

@ -1,8 +1,8 @@
/*
* Copyright (C) Sapphirecode - All Rights Reserved
* This file is part of SCode-Eslint-Config which is released under BSD-3-Clause.
* This file is part of eslint-config-ts which is released under MIT.
* See file 'LICENSE' for full license details.
* Created by Timo Hocker <timo@sapphirecode.ovh>, March 2020
* Created by Timo Hocker <timo@scode.ovh>, May 2020
*/
module.exports = {
@ -29,9 +29,9 @@ module.exports = {
'array-bracket-newline': 'off',
'max-len': 'off',
'func-call-spacing': 'off',
'semi': 'off',
'curly': 'off',
'strict': 'off',
semi: 'off',
curly: 'off',
strict: 'off',
'brace-style': 'off',
'no-magic-numbers': 'off'
}

2
.gitignore vendored
View File

@ -1 +1 @@
/node_modules/
/node_modules/

8
.liconfig.json Normal file
View File

@ -0,0 +1,8 @@
{
"has_license": true,
"license": "MIT",
"author": "Timo Hocker",
"company": "Sapphirecode",
"email": "timo@scode.ovh",
"software": "eslint-config-ts"
}

14
CHANGELOG.md Normal file
View File

@ -0,0 +1,14 @@
# Changelog
## 1.2.0
- enforce union sorting
- enforce type annotation spacing
## 1.1.0
update to eslint 7.0
## 1.0.0
initial release

23
Jenkinsfile vendored
View File

@ -1,23 +0,0 @@
pipeline {
agent any
environment {
VERSION = VersionNumber([
versionNumberString:
'${BUILDS_ALL_TIME}',
versionPrefix: '1.0.',
worstResultForIncrement: 'SUCCESS'
])
}
stages {
stage('Building') {
steps {
script {
currentBuild.displayName = env.VERSION
}
sh 'yarn ci ${VERSION}'
}
}
}
}

30
LICENSE
View File

@ -1,29 +1,7 @@
Copyright (c) 2020, Timo Hocker
MIT License Copyright (c) <year> <author>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of scode-eslint-config nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,20 +1,18 @@
# Sapphirecode ESLint configuration
# @sapphirecode/eslint-config-ts
Javascript coding standard used by Sapphirecode
version: 1.2.x
scode eslint configuration for typescript
## Installation
to install this module you have to add the following line to your .npmrc
npm:
```npmrc
@scode:registry=https://npm.scode.ovh
```
> npm i --save-dev @sapphirecode/eslint-config-ts
then install the module and eslint
yarn:
```sh
npm i --save-dev @scode/eslint-ts eslint
```
> yarn add --dev @sapphirecode/eslint-config-ts
then create a file named .eslintrc.js with the following contents.
@ -28,9 +26,11 @@ module.exports = {
node: true
},
extends: [
'@scode/eslint-ts'
'@sapphirecode/eslint-config-ts'
]
}
```
after that you can run eslint.
## License
MIT License © Timo Hocker <timo@scode.ovh>

View File

@ -1,8 +1,8 @@
/*
* Copyright (C) Sapphirecode - All Rights Reserved
* This file is part of SCode-Eslint-Config which is released under BSD-3-Clause.
* This file is part of eslint-config-ts which is released under MIT.
* See file 'LICENSE' for full license details.
* Created by Timo Hocker <timo@sapphirecode.ovh>, March 2020
* Created by Timo Hocker <timo@scode.ovh>, May 2020
*/
module.exports = {
@ -18,7 +18,8 @@ module.exports = {
],
plugins: [
'@typescript-eslint'
'@typescript-eslint',
'eslint-plugin-tsdoc'
],
parserOptions: {
@ -34,34 +35,14 @@ module.exports = {
rules: {
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/naming-convention': ['error',
{ selector: 'default', format: ['snake_case'] },
{ selector: 'typeLike', format: ['PascalCase'] },
{
selector: 'property',
modifiers: ['private'],
format: ['snake_case'],
leadingUnderscore: 'require'
}
],
'id-match': ['error', '^([a-z][a-z0-9_]*|[A-Z][a-zA-Z]*)$', { onlyDeclarations: true }],
'jsdoc/require-param-type': 'off',
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-description': 'off',
'jsdoc/check-alignment': 'off',
'jsdoc/check-param-names': 'off',
'jsdoc/check-tag-names': 'off',
'jsdoc/check-types': 'off',
'jsdoc/implements-on-classes': 'off',
'jsdoc/newline-after-description': 'off',
'jsdoc/no-undefined-types': 'off',
'jsdoc/require-param': 'off',
'jsdoc/require-param-description': 'off',
'jsdoc/require-param-name': 'off',
'jsdoc/require-returns': 'off',
'jsdoc/require-returns-check': 'off',
'jsdoc/require-returns-description': 'off',
'jsdoc/require-returns-type': 'off',
'jsdoc/valid-types': 'off'
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/sort-type-union-intersection-members': 'error',
'tsdoc/syntax': 'error',
// deactivating commonjs rules
'id-match': 'off',
'no-underscore-dangle': 'off',
'node/no-missing-import': 'off'
}
}

View File

@ -1,26 +0,0 @@
/* eslint-disable no-process-exit */
/* eslint-disable no-console */
/* eslint-disable no-sync */
'use strict';
const fs = require ('fs');
const child_process = require ('child_process');
const pkg = JSON.parse (fs.readFileSync ('package.json', 'utf-8'));
[
,, pkg.version
] = process.argv;
fs.writeFileSync ('package.json', JSON.stringify (pkg, null, 2));
child_process.execSync ('yarn lint', { stdio: 'inherit' });
child_process.execSync ('yarn test', { stdio: 'inherit' });
child_process.execSync ('yarn compile', { stdio: 'inherit' });
child_process.exec ('git log -1 | grep \'\\[no publish\\]\'')
.addListener ('exit', (code) => {
if (code === 0) {
console.log ('build not marked for deployment');
process.exit (1);
}
else { child_process.execSync ('yarn publish --access public'); }
});

View File

@ -1,12 +1,11 @@
{
"name": "@sapphirecode/eslint-config-ts",
"version": "1.0.0",
"version": "1.2.2",
"description": "scode eslint typescript configuration",
"main": "index.js",
"scripts": {
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.vue,.mjs",
"test": "echo \"no test\"",
"ci": "yarn --frozen-lockfile && node jenkins.js",
"compile": "tsc --allowJs --declaration --emitDeclarationOnly index.js"
},
"repository": {
@ -14,27 +13,31 @@
"url": "https://git.scode.ovh/timo/eslint-ts.git"
},
"peerDependencies": {
"eslint": ">=6.8.0",
"typescript": ">=3.8.0"
"eslint": ">=8.4.0",
"typescript": ">=4.4.0"
},
"keywords": [
"eslint",
"eslintconfig"
],
"author": "Timo Hocker",
"license": "BSD-3-Clause",
"author": {
"name": "Timo Hocker",
"email": "timo@scode.ovh"
},
"bugs": "https://redmine.scode.ovh/projects/eslint-ts",
"license": "MIT",
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint": "^8.4.0",
"eslint-config-standard": "^16.0.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1"
"eslint-plugin-promise": "^5.1.0"
},
"dependencies": {
"@sapphirecode/eslint-config-es6": "^1.0.1",
"@typescript-eslint/eslint-plugin": "^2.26.0",
"@typescript-eslint/parser": "^2.26.0"
"@sapphirecode/eslint-config-es6": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint-plugin-tsdoc": "^0.2.14"
},
"files": [
"LICENSE",

1740
yarn.lock

File diff suppressed because it is too large Load Diff